im trying to make when you have 2 of the same lore in a anvil (Treasure Huter I + Treasure Huter I will become Treasure Huter II)
on anvil prepare:
if slot 0 of event-inventory is a netherite shovel:
if lore of slot 0 of event-inventory contains "&eTreasure Hunter I":
if slot 1 of event-inventory is a netherite shovel:
if lore of slot 1 of event-inventory contains "&eTreasure Hunter I":
if slot 2 of event-inventory is a netherite shovel:
if lore of slot 2 of event-inventory contains "&eTreasure Hunter I":
set {_itemlore} to slot 2 of event-inventory
set lore at line 1 of {_itemlore} to "TEXT"
play sound "entity.experience_orb.pickup" at volume 1 at pitch 1 at location(721, 83, 1090)
on anvil prepare:
if slot 0 of event-inventory is a netherite shovel:
if lore of slot 0 of event-inventory contains "&eTreasure Hunter I":
if slot 1 of event-inventory is a netherite shovel:
if lore of slot 1 of event-inventory contains "&eTreasure Hunter I":
if slot 2 of event-inventory is a netherite shovel:
if lore of slot 2 of event-inventory contains "&eTreasure Hunter I":
set {_itemlore} to slot 2 of event-inventory
set lore at line 1 of {_itemlore} to "TEXT"
play sound "entity.experience_orb.pickup" at volume 1 at pitch 1 at location(721, 83, 1090)