minecraft-datapacks/datapacks/enchantment merger/data/ench_merger/functions/merger/destroy.mcfunction

11 lines
558 B
Mcfunction

# Desc: Kills the Merger armor stand and drops the build items
# Called by: ench_merger:merger/check_destroy
# Datapack made by FieryHammer
kill @e[tag=fh_merger, distance=..1]
summon item ~0.1 ~0.2 ~0.2 {Item:{id:"minecraft:anvil", Count: 1b}, Tags:["fh_dropped"]}
summon item ~-0.1 ~0.3 ~-0.1 {Item:{id:"minecraft:enchanting_table", Count: 1b}, Tags:["fh_dropped"]}
summon item ~0.3 ~0.3 ~-0.2 {Item:{id:"minecraft:crafting_table", Count: 1b}, Tags:["fh_dropped"]}
kill @e[type=item, limit=1, nbt={Item:{id:"minecraft:dropper"}}, sort=nearest]