Hi, I'm trying to make my own enchantment ss. When I enchant an item I add it to the list of enchanted items. However, when the item's durability list changes, it is no longer visible and it no longer performs its assigned task. How can I fix that? My code:
1. enchanting the item
2. using the enchantment
1. enchanting the item
Code:
set {_enchtel} to enchanted book
set name of {_enchtel} to "&eEnchanted Book"
set lore of {_enchtel} to "&9Tools" and "&7Telepathy I"
if player's held item is tool:
if player's inventory contains {_enchtel}:
remove {_enchtel} from player's inventory
set {_nameitem} to name of player's held item
set {_geench} to player's held item
remove player's held item from player's inventory
set name of {_geench} to "&b%{_nameitem}%"
set lore of {_geench} to "&7Telepathy I"
add {_geench} to {sce.telepathy::*}
give {_geench} to player
Code:
on break:
if {sce.telepathy::*} contains tool of player:
clear drops
give event-block to the player