so i want to make a item that cant be dropped or put in a chest or anything else, so its always in the players inventory and the only way for you to move it around in your inv is when you click e and open it up not in a chest all i have is this code that isn't working for me.
on inventory click:
if inventory type of player's current inventory is "CHEST":
if item is enchanted with curse of vanishing:
cancel event
wait 1 tick
close player's inventory
send "You can not put items enchanted with &6Curse of Vanishing&r into chests" to player
on inventory click:
if inventory type of player's current inventory is "CHEST":
if item is enchanted with curse of vanishing:
cancel event
wait 1 tick
close player's inventory
send "You can not put items enchanted with &6Curse of Vanishing&r into chests" to player