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

    Walk speed

    you mean something like this? command /speedcheck <text> <player>: trigger: if arg 1 is "walking": message "%walking speed of arg 2%" if arg 1 is "flying": message "%flying speed of arg 2%"
  2. M

    Solved how to swap inventory item to hand?

    I got it to work on tool break: set {_tool} to id of event-item wait 1 tick if player's tool is empty: loop items in player's inventory: if loop-item's id is {_tool}: set tool to the loop-item clear the loop-item...
  3. M

    Solved how to swap inventory item to hand?

    If the code is before the "set tool to the loop-item", it's removed before it replaces it. If it's after it replaces it, then removes the replacement and leaves the original. It might be different for you due to the skquerry.
  4. M

    Solved how to swap inventory item to hand?

    I've already tried adding in the "remove loop-item from player's inventory" before the "set tool to the loop-item". It removes the item before it's copied. When I do it after, It removes the item from the active slot.
  5. M

    Solved how to swap inventory item to hand?

    Just copying your code give me the "Can't understand this expression: 'player's current hotbar slot' (new.sk, line 7: set {_slot} to player's current hotbar slot')" error. So far I have it mostly working. I just need to get it to remove the old item. on tool break: set {_tool} to id of...
  6. M

    Solved how to swap inventory item to hand?

    I should have mentioned I'm only using the latest version of Skript. With your code I get: Can't understand this expression: 'player's current hotbar slot' (new.sk, line 7: set {_slot} to player's current hotbar slot') I'm trying to get the item to move to the active slot and not remove and...
  7. M

    Solved how to swap inventory item to hand?

    I've tried many different ways to achieve this and seem to not be able to get anything to work. What I'm trying to do, is replace a broken tool from the players inventory into the active tools slot or main hand item. Where I keep getting stuck is moving the item to the active tool bar slot. What...
  8. M

    Horse Colors

    Is it possible to specify a horse color using the latest version of Skript only? Using this as a example: on damage: attacker is a player if victim is a horse: Could I specify a chestnut horse? If so how? Thanks for your time.