Hello! I need help blacklisting named items from getting duped in a shulker box, for example:
Error: Can't understand this condition: '"%{_items}%" contains "enchanted_golden_apple" or "red_dye" named ""heart""'
Code:
command /dupe:
trigger:
if player's held item is any shulker box:
set {_items} to tag "BlockEntityTag;Items" of nbt compound of player's held item
if "%{_items}%" contains "enchanted_golden_apple" or "red_dye" named ""heart"":
send "&cYou're not allowed to dupe this item!" to player
else:
give player's held item to player
else:
give player's held item to player
Error: Can't understand this condition: '"%{_items}%" contains "enchanted_golden_apple" or "red_dye" named ""heart""'