20 lines
792 B
Mcfunction
20 lines
792 B
Mcfunction
# Desc: Merges the two crossbows
|
|
# Called by: ench_merger:merge/check_crossbow
|
|
# 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:crossbow", 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/quick_charge
|
|
function ench_merger:recipes/multishot
|
|
function ench_merger:recipes/piercing
|
|
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
|