Leather color

Discussion in 'Skript' started by Ciasnyelo, Jun 28, 2021.

  1. How to check if a player is wearing blue leather armor?
     
  2. Impossible, you would need a custom plugin for that.
     
  3. don't say impossible so early

    you can use SkBee addon and get the NBT of the item that is responsible for armor color and check the color that way
     
  4. I am sorry, this message was meant for other thread, idk how it ended up here.
     
  5. Can you explain to me exactly how to do this?
     
  6. take colored leather armor piece in your hand
    enable effect commands
    type !send "%item nbt of player's tool%"
    find color
    set {_tag} to tag "the;tag;for;color;here" of item nbt of player's tool
    if {_tag} is ...:
    #do something
     
  7. its its possible when you hold it in inventory and loops all the items in inventory and add it to a variable
    then loop variable and give loop-value to player ; )