minecraft-datapacks/datapacks/enchantment merger/data/ench_merger/functions/recipes/binding_curse.mcfunction

12 lines
870 B
Mcfunction

# Desc: Merge instructions for binding_curse
# Called by: ench_merge:merge/merge_*
# Datapack made by FieryHammer
# Checking left item
execute if entity @e[tag=left_item, nbt={Item:{tag:{Enchantments:[{id:"minecraft:binding_curse", lvl:1s}]}}}] if entity @e[tag=right_item, nbt=!{Item:{tag:{Enchantments:[{id:"minecraft:binding_curse", lvl:1s}]}}}] run data modify entity @e[tag=new_item, limit=1] Item.tag.Enchantments append value {id:"minecraft:binding_curse", lvl:1s}
# Checking level matching
# Checking right item
execute if entity @e[tag=right_item, nbt={Item:{tag:{Enchantments:[{id:"minecraft:binding_curse", lvl:1s}]}}}] if entity @e[tag=new_item, nbt=!{Item:{tag:{Enchantments:[{id:"minecraft:binding_curse", lvl:1s}]}}}] run data modify entity @e[tag=new_item, limit=1] Item.tag.Enchantments append value {id:"minecraft:binding_curse", lvl:1s}