Search results

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  1. M

    Skript Help - Stripping a Variable

    Yes.. I know.. He wanted to parse it as number, isnt he? EDIT: Your code will cause that variable be "Chance: 13" And he said: "So i only have the 13 in a variable."
  2. M

    Skript Help - Stripping a Variable

    Yes, but he can use this too: set {_list::*} to split "blalfdk dsjds||Chance: 13||wsj1ldsjk" by "||" loop {_list::*}: if "%loop-value% " contains "Chance": set {_1} to loop-value replace all "Chance: " in {_1} :emoji_wink::emoji_joy:
  3. M

    Skript Help - Stripping a Variable

    @TPGamesNL not at all because he may have more lines and more "||"s so it wouldnt work properly..
  4. M

    Skript Help - Stripping a Variable

    set {_list::*} to split "blalfdk dsjds||Chance: 13||wsj1ldsjk" by "||" loop {_list::*}: if "%loop-value% " contains "Chance": set {_1} to loop-value replace all "Chance: " in {_1}
  5. M

    Solved Cannot get this to work at all.

    No problem.. @BrettPlayMC I could not sleep because i have knowen that code which i posted is not working properly when version type is like "x.xx".. so i made new one.. this should work better but it doesnt support versions like "x-devxx" or "x-alphax".. just versions with more numbers and its...
  6. M

    Solved Block Breaking

    what should I tell you?
  7. M

    Solved Block Breaking

    I dont know then.. its not working properly for me.. but I already found working way..
  8. M

    Solved Cannot get this to work at all.

    function updateCheckerCmd(p: player): set {dversion} to "3.0" set {_dv} to line 1 from url "https://api.spigotmc.org/legacy/update.php?resource=25750/" set {_v1} to {dversion} set {_v2} to {_dv} if length of {_v1} is 3: set {_v1} to "%{_v1}%.0.0" else if length of...
  9. M

    My gui won't work

    just add this: on inventory click: if name of current inventory of player is "&2&lVagt Shop": if clicked slot is 4: execute console command "/say you clicked"
  10. M

    Solved Cannot get this to work at all.

    function updateCheckerCmd(p: player): set {dversion} to "2.1" set {_dv} to line 1 from url "https://api.spigotmc.org/legacy/update.php?resource=25750/" set {_v1} to {dversion} set {_v2} to {_dv} replace all "." in {_v1} with "" replace all "." in {_v2} with "" wait 1...
  11. M

    Solved Block Breaking

    Its OK.. I already made it.. Because Im working on prison.. and i have shovel with efficiency 40 and there is visible difference between canceling event and not canceling.. also its visible because You break block > Skript will cancel event and set it back into broken block > You set that block...
  12. M

    Solved How can remove colorcode?

    No problem too!
  13. M

    Solved Block Breaking

    Hello! Can anyone help me? Probably not because 1. I have questions with impossible answers or 2. As ususal, unluck... But Im trying luck... So.. How to break block without dropping any items? I dont want to loop nearby entities, because i can see that dropped item before it will get killed.. I...
  14. M

    Skript Issue - Cursor Slot Expressions

    on inventory click: send "You clicked on slot: %clicked slot%, %clicked item%" to player on click: send "You clicked on slot: %current hotbar slot of player%, %tool of player%" to player I have no clue what else you want.. Your issue is "But the code does not registrer im clicking...
  15. M

    Solved How can remove colorcode?

    ok.. sorry for replying and helping..
  16. M

    Client side Entity

    Hello! I want to know how to make client side for example armor stad.. I need it for xp system.. so if player break block, armor stand would be spawned.. i would add to it/him(idk) invisibility, invicriticability... and i need it shows only for one certain player.. is it possible? or should i...
  17. M

    Skript Issue - Cursor Slot Expressions

    on inventory click: send "%clicked slot%" to player if clicked item is nether_star: send "1"
  18. M

    Solved How can remove colorcode?

    This should work but for me not.. try it yourself: command /test <text>: trigger: set {_msg} to uncoloured arg-1 send "%{_msg}%" to player Unless, try this, but you will need TUSKE addon: command /test <text>: trigger: set {_msg} to arg-1 regex replace...
  19. M

    Solved On portal execute a command and teleport to spawn not working

    1. Teleportation not working because you are using local variable and you do not have it set.. 2. Messages are in console because you executing command by console and message are sending to executor... So try this: on portal enter: execute console command "admin %player% compass open"...
  20. M

    How to register a furnace recipe?

    try this: register furnace recipe with [result] %item stack% for [source] %item stack% register furnace recipe with [result] %item stack% for [source] %item stack% with data %number% Example: on load: register furnace recipe with result stone named "Super Stone" for source stone Addon...