minecraft-datapacks/datapacks/enchantment merger/data/ench_merger/functions/merge/merge_shield.mcfunction

17 lines
664 B
Mcfunction

# Desc: Merges the two shields
# Called by: ench_merger:merge/check_shield
# Datapack made by FieryHammer
# Summon new basic item
execute at @e[tag=fh_merger_active, sort=nearest] run summon minecraft:item ~ ~2 ~ {Item:{id:"minecraft:shield", Count: 1b}, Tags:["new_item"], PickupDelay:60, NoGravity:1b}
execute at @e[tag=fh_merger_active, sort=nearest] run function ench_merger:merge/setup
# Run enchantments check for item
function ench_merger:recipes/unbreaking
function ench_merger:recipes/mending
function ench_merger:recipes/vanishing_curse
# Finish
execute at @e[tag=fh_merger_active, sort=nearest] run function ench_merger:merge/finish