#Item signing

1 messages · Page 1 of 1 (latest)

dense vine
#

if you have skbee you could use an nbt tag to store whether or not the item's been signed

foggy rapids
#
command /sign:
  trigger:
    if player is holding an item:
      add lore "Signed by: %player%" to player's tool

NOTE: this is from the top of my head, do check if everything is correct

#

@plain locust

wanton agate
#

should be. however, that sets it and nothing else. you'd also need to check if the lore contains "Signed by:" before adding it.

kindred saddle
#

could loop the lore of the player's tool then check if loop-value contains "Signed by:" prob

#

or not even loop it and just do if lore of player's held item contains "Signed by:":

rose grotto
#

Here. Ig that is what you wanted.

    permission: sign.use
    permission message: No permission
    trigger:
        if arg 1 is not set:
            if tool of player is not air:
                if lore of player's tool is not set:
                    set lore of player's tool to "Signed by %player% &7at %now%"
                    send "You signed the item."
                    stop
                else:
                    send "The item is already signed."
                    stop
            else:
                send "You have to hold an item"
                stop
        else:
            if tool of player is not air:
                if lore of player's tool is not set:
                    set lore of player's tool to "&7%colored arg 1%" and "Signed by %player% &7at %now%"
                    send "You signed the item."
                    stop
                else:
                    send "The item is already signed."
                    stop
            else:
                send "You have to hold an item"
                stop
            
command /unsign:
    permission: sign.use
    permission message: No permission
    trigger:
        if tool of player is not air:
            if lore of player's tool is set:
                delete lore of player's tool
                send "You removed the sign from the item."
            else:
                send "This item is not signed."
        else:
            send "You have to hold an item"
            stop```
#

@plain locust