Hi, I'm making a book that by right clicking adds +200 durability to the tool in slot 0. The problem is that if the object in slot 0 has no durability (example: book, stone, wood etc ... ) Erases it. So I want to do something similar to (example) "if slot 0 is a sword or pickaxe:"
Like this:
Please help me
[doublepost=1487042751,1487036065][/doublepost]Resolved.
Like this:
code_language.skript:
on rightclick holding book:
if slot 0 is a sword or pickaxe: #This not work
if lore of player's tool contains "&7&l* &7Habilidad: &6Reparación I":
if food level is greater than 2:
repair slot 0 of player by 200
add -8.0 to hunger bar of player
send "&e&l(!) &eHas añadido &l+200&e de durabilidad en el slot 1."
stop
else:
send "&c&l(!) &c¡No tienes suficiente comida!"
Please help me
[doublepost=1487042751,1487036065][/doublepost]Resolved.