on right click:
if player's tool is diamond sword:
if player's inventory contains book with lore "&7Poison":
add "&7Poison" to lore of player's tool
If lore of the player's tool contains "&7Poison":
remove "&7Poison" from the lore of player's tool
made with Skript Plugin