21 lines
607 B
Mcfunction
21 lines
607 B
Mcfunction
# Desc: Runs after all merging, plays sound, makes effects, reduces exp level
|
|
# Called by: ench_merger:merge/check_*
|
|
# Datapack made by FieryHammer
|
|
|
|
# Reduce levels
|
|
experience add @p -15 levels
|
|
|
|
# Kill dummy Items
|
|
kill @e[tag=left_item]
|
|
kill @e[tag=right_item]
|
|
|
|
# Empty merger
|
|
data merge block ~ ~1 ~ {Items:[]}
|
|
|
|
particle minecraft:cloud ~ ~2.2 ~ 0.1 0.1 0.1 0.01 20
|
|
playsound minecraft:item.trident.thunder block @p ~ ~ ~ 1 2
|
|
playsound minecraft:block.enchantment_table.use block @p ~ ~ ~ 1 1.5
|
|
|
|
tag @e[tag=fh_merger_active] remove fh_merger_active
|
|
tag @e[tag=new_item] remove new_item
|