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

18 lines
708 B
Mcfunction
Raw Normal View History

# Desc: Merges the two elytras
# Called by: ench_merger:merge/check_elytra
# 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:elytra", 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/binding_curse
function ench_merger:recipes/vanishing_curse
# Finish
execute at @e[tag=fh_merger_active, sort=nearest] run function ench_merger:merge/finish