14 lines
802 B
Mcfunction
14 lines
802 B
Mcfunction
# Desc: Creates the Merger
|
|
# Called by: ench_merger:merger/check_combine
|
|
# Datapack made by FieryHammer
|
|
|
|
execute align xyz run summon minecraft:armor_stand ~0.5 ~-0.40 ~0.5 {NoGravity:1b, Invisible:1b, DisabledSlots:2039583, ArmorItems:[{},{},{},{id:"minecraft:anvil", Count: 1b}], Tags:["fh_merger"]}
|
|
setblock ~ ~ ~ dropper[facing=up]{CustomName: '{"text":"Enchantment Merger","color":"dark_purple"}'}
|
|
|
|
playsound minecraft:block.anvil.place block @a ~ ~0.5 ~ 0.5 0.45
|
|
playsound minecraft:block.portal.ambient block @a ~ ~0.5 ~ 0.45 1.5
|
|
|
|
kill @e[type=item, limit=1, nbt={Item:{id:"minecraft:enchanting_table"}}, distance=..1]
|
|
kill @e[type=item, limit=1, nbt={Item:{id:"minecraft:anvil"}}, distance=..1]
|
|
kill @e[type=item, limit=1, nbt={Item:{id:"minecraft:crafting_table"}}, distance=..1]
|