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

21 lines
823 B
Mcfunction

# Desc: Merges the two tridents
# Called by: ench_merger:merge/check_trident
# 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:trident", 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/loyalty
function ench_merger:recipes/channeling
function ench_merger:recipes/riptide
function ench_merger:recipes/impaling
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