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. G

    Item break on cactus

    I know that. But that is not what i want.
  2. G

    Item break on cactus

    How to prevent item break on cactus? I tried this: on damage of a entity: if "%victim%" is "dropped item": if "%damage type%" is "cactus": cancel event No error, but doesn't work. Help :D
  3. G

    Solved Piston extend in region

    Works, thanks!
  4. G

    Solved Piston extend in region

    Heyo, I can't seem to get this to work. Anyone that can help? :) on piston extend: set {_l} to location of event if {_l} is in region "spawn": cancel event
  5. G

    Player voting

    Hello, Should this code work? - It doesn't give any errors, but just want to make sure it does pick the user with the most votes. I wasn't able to troubleshoot it. {_voteplayer} should be the most voted player, when the loop is done. set {_no} to 0 loop {VoteList::*}...
  6. G

    Making my skript smaller

    Anyone can make this skript less lines? Just want to see what people could come up with. I can't think of a way to make it less lines. :emoji_alien: on right click: if player is sneaking: set {_item} to player's held item if {_item} is any chestplate or elytra...
  7. G

    Set Slot - Execute command not working

    Thanks for the help. But this is not what I am looking for. :)
  8. G

    Set Slot - Execute command not working

    I have never done it like that before in the past? Is this something new and changed to skript? I have always done it in one set slot/format slot line, in the past. I sadly don't have any of my old skripts laying around.
  9. G

    Set Slot - Execute command not working

    Sorry, I think you misunderstood me. I've done this many times a long time ago, just came back and started doing skript, have to freshen up my memory a bit. I may have done this with format slot perhaps? I'm trying to make a GUI. command /gui: trigger: open chest with 6 rows...
  10. G

    Set Slot - Execute command not working

    Hello, I'm trying to execute a player command when clicking on a item in a GUI. My code: set slot 20 of player's current inventory to spawner named "&6Spawner" with lore "&a" then execute player command "/test" It won't accept this, nor with "then run command", or "then run...
  11. G

    Skript Help - Stripping a Variable

    Hello all. How do i strip a text variable like this,, from everyelse than the numbers after chance? {_1} = "blalfdk dsjds||Chance: 13||wsj1ldsjk" So i only have the 13 in a variable. Thanks in advance.
  12. G

    Skript Issue - Cursor Slot Expressions

    I already have explained it for LimeGlass, he confirms it's a skript issue, and i should create a thread here about it. But to explain more about what the whole skript is about i was makeing. You are clicking with a item onto another item. Like: on inventory click: if player's cursor slot...
  13. G

    Skript Issue - Cursor Slot Expressions

    This is not what i'm trying to do with the skript. And this is a skript issue, that's why i posted it here.
  14. G

    Skript Issue - Cursor Slot Expressions

    Hello all. Following is a issue with skripts cursor slot expression: on inventory click: if player's cursor slot is nether_star: send "1" if the lore of player's cursor slot contains coloured "&7whatever": if clicked item is iron pickaxe: It returns "cursor...
  15. G

    Number Format

    command /a: trigger: set {_bal} to 5200 set {_1} to the first 3 characters of {_bal} set {_2} to the last 2 characters of {_1} set {_1} to the first character of {_bal} send "%{_1}%,%{_2}%" Anyone knows why this returns <none>,<none>?
  16. G

    Clicking an item with another item

    Ive tried to solve this for a while now. Is there any to do following: Player goes into inventory pickups an unbreaking 3 book and clicks an diamond sword with the book. The book gets removed and the swords gets enchanted with unbreaking3.
  17. G

    Enchanting Items

    Hello. Is it possible to when you are clicking an diamond sword with an enchanted unbreaking 1 book, the diamondsword gets enchanted with unbreaking 1 and the book gets removed? I came up with this, but no luckc: On inventory click: set {_item2} to cursor item if {_item2} is enchanted...
  18. G

    Solved Variable with case sensitive usernames.

    You know when you set an variable to an players name, ex. "JackyChase" but in the variable it shows "jackychase". How do you make sure that the variable is with uppercase the right places in the name? How to make an username case sensitive in an variable? /Thanks/GToTheG
  19. G

    skq-geometry download link?

    Hello anyone have an download for skq-geometry addon??
  20. G

    Tool name

    on right click: name of player's tool is "&ahi": send "hi" else: send "nope" Why does this keeps sending nope when im haveing a item called &ahi