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 comminuty!

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

  1. A

    Function

    Hi. I'm only now starting on functions, could anyone help me with why this doesn't work? Thank you! function gui(title: text): wait 1 tick open chest with 5 rows named "%{_title}%" to player wait 2 tick set {_slot} to 0 loop 24 times: if {_slot} is 10...
  2. A

    Solved Crafting table with custom name

    I'm creating a script where I would like to give a crafting table a custom name (In the GUI) and I can't seem to make it work. Any suggestions? (P.S. In older version you could just give a crafting table a name but in 1.16 I can't make it work) This is my solution so far, but I'm not quite...
  3. A

    Loop blocks in sphere around player

    I need to loop blocks in a sphere around the player, but I do not want to loop the blocks inside the sphere, as it causes too much lag.
  4. A

    Solved How do I get location of targeted block without XYZ

    This will be used to summon a mob using a console command, but for that i need the location without "X:, Y:, Z:" command /value [<text>]: trigger: message "%location of targeted block%" set {_target} to location of targeted block message "%{_target} parsed as...
  5. A

    Can't set items in a player's slot to variable

    open chest with 3 rows named "&6&lKøb" to player wait 1 tick format slot 0 of player with green wool named "&a&l+" to run [set {crypto.%player%.amount} to {crypto.%player%.amount}+1]->[format slot 1 of player with black wool named "&7&l%{crypto.%player%.amount}%" to...
  6. A

    Removing item from list

    remove {shop.sign.%location of event-block%} from {shop.signs::*} This does not work. How do I remove a specific thing from a list?
  7. A

    Is there anyway better to do this?

    Here's all my code. It's for a custom sign shop. on rightclick on sign: if {sign.%player%} is "true": if {%2nd line of event-block%} is not set: set {%2nd line of event-block%} to 2nd line of event-block set {%2nd line of event-block%} to 2nd line of...
  8. A

    Solved Sign shop with dynamic price not working

    on rightclick on sign: if {sign.%player%} is "true": set {%2nd line of event-block%} to 2nd line of event-block add {%2nd line of event-block%} to {shop.signs::*} set {%2nd line of event-block%.high} to 3rd line of event-block set {%2nd line of...
  9. A

    Solved Problems with signs

    How do I message the first line of a sign?