If I have 2 bottle o' enchanting in player's tool this only count one.
Obs.: I already tried to change player's tool to event-item but don't work
Obs.: I already tried to change player's tool to event-item but don't work
code_language.skript:
on rightclick holding bottle o' Enchanting:
if name of player's tool is "&9&lPOTE DE &a&lXP":
cancel event
set {_XpLore} to line 2 of lore of player's tool
replace "&7Quantidade: &r" in {_XpLore} with ""
set {_AdicionarXp} to {_XpLore} parsed as number
add {_AdicionarXp} to xp of player
remove player's tool from player's inventory