Hi people! i have a issue with inventory/custom name, i want people use a "cookie" for keep inventory and xp and consume the cookie with specific name and lore oh and of course dont consume while eating. i did it in while the cookie was in hand, but i want to be in any part of the inventory.
i cant do it with the specific name and lore
i tried lot of things but i know i missing smn, can u help me?
My code:
i cant do it with the specific name and lore
My code:
Code:
on death:
if player's inventory contains "&a&lGalleta de la fortuna":
keep inventory and experiences
clear drops
remove 1 cookie named "&a&lGalleta de la fortuna" from player's inventory
on consume:
if player's held item with lore contains "Galleta que te permite guardar tu inventario":
cancel event
Last edited: