I Wanna make a skript that makes it so you can't put the mace into an anvil and I don't know the code to do it
What I have rn
on anvil prepare:
if (event-item is named mace):
cancel event
send "&cYou cannot use the Mace in the anvil!" to player
And when I do it I get this error
What I have rn
on anvil prepare:
if (event-item is named mace):
cancel event
send "&cYou cannot use the Mace in the anvil!" to player
And when I do it I get this error