#Anvil repair

1 messages · Page 1 of 1 (latest)

tidal kestrel
#
on right click:
  if event-block is anvil:
    cancel event
    if player has 2 gold ingot:
      remove 2 gold ingot from player's inventory
      repair tool of player
    else:
      send "&8⎟ &c&lRedstone&4&lPvP &7» &cYou need +2 gold to repair" to player

how i can make the anvil repair only tools not my hand and golden apple

river spear
#

Check if player's tool is any tool

tidal kestrel
river spear
#

Basically literally what I wrote

tidal kestrel
#

But i want to add message like you can't repair your hand

river spear
#

Yeah just check if it's any tool, and if it isn't send an error message

tidal kestrel
#

It does not work

river spear
#

Well what's the issue
What's the code you're using
You have to explain things instead of just hoping I somehow know what your problem is

pseudo ledge