Extra utilites in minecraft with functions. 8 new items are added. By TheDabingLama (command #1: https://pastebin.com/DsRKrPSw command #2: https://pastebin.com/1sjzdaPM)
/give @a[tag=items] minecraft:enchanted_book 1 0 {display:{Name:"BlockBreaker"},HideFlags:63,ench:[{id:0,lvl:0}]}
/give @a[tag=items] minecraft:enchanted_book 1 0 {display:{Name:"MagnumTorch"},HideFlags:63,ench:[{id:0,lvl:0}]}
/give @a[tag=items] minecraft:enchanted_book 1 0 {display:{Name:"InstHouse"},HideFlags:63,ench:[{id:0,lvl:0}]}
/give @a[tag=items] minecraft:enchanted_book 1 0 {display:{Name:"TrashCan"},HideFlags:63,ench:[{id:0,lvl:0}]}
/give @a[tag=items] minecraft:enchanted_book 1 0 {display:{Name:"OreCrafter"},HideFlags:63,ench:[{id:0,lvl:0}]}
/give @a[tag=items] minecraft:enchanted_book 1 0 {display:{Name:"Pulveriser"},HideFlags:63,ench:[{id:0,lvl:0}]}
/give @a[tag=items] minecraft:enchanted_book 1 0 {display:{Name:"EnderQuarry"},HideFlags:63,ench:[{id:0,lvl:0}]}
/give @a[tag=items] minecraft:enchanted_book 1 0 {display:{Name:"MiniChest"},HideFlags:63,ench:[{id:0,lvl:0}]}
/scoreboard players tag @a remove items
/tellraw @a[tag=crafts] ["",{"text":"Crafts:","color":"green"},{"text":"\n"},{"text":" Block Breaker:","color":"dark_aqua"},{"text":"\n "},{"text":"Iron Pickaxe\n Stone\n ","color":"yellow"},{"text":"Trash Can:\n ","color":"dark_aqua"},{"text":"Lava Bucket\n Iron Block\n ","color":"yellow"},{"text":"Ore Crafter:\n ","color":"dark_aqua"},{"text":"Iron Ore\n Stone","color":"yellow"},{"text":"\n "},{"text":"Magnum Torch:","color":"dark_aqua"},{"text":"\n"},{"text":" Torch\n Redstone Torch\n ","color":"yellow"},{"text":"InstHouse:\n ","color":"dark_aqua"},{"text":"HouseController\n Log\n ","color":"yellow"},{"text":"House Controller:\n ","color":"dark_aqua"},{"text":"CraftyChest\n Smelted Ender Chest\n ","color":"yellow"},{"text":"Crafty Chest:","color":"dark_aqua"},{"text":"\n "},{"text":"Crafting Table\n Chest","color":"yellow"},{"text":"\n "},{"text":"Smelted Ender Chest:\n ","color":"dark_aqua"},{"text":"Ender Chest","color":"yellow"},{"text":"\n"},{"text":" Furnace\n ","color":"yellow"},{"text":"Pulveriser:\n ","color":"dark_aqua"},{"text":"Iron Block\n Golden Pickaxe\n ","color":"yellow"},{"text":"Ender Quarry:\n ","color":"dark_aqua"},{"text":"Hopper\n Obsidian","color":"yellow"},{"text":"\n"},{"text":" Diamond Pickaxe","color":"yellow"},{"text":"\n"},{"text":" Mini Chest X3:\n ","color":"dark_aqua"},{"text":"Chest\n Hopper","color":"yellow"},{"text":"\n "}]
/scoreboard players tag @a remove crafts
scoreboard players tag @e[type=item] add blockbreaker {Item:{id:"minecraft:enchanted_book",Count:1b,tag:{display:{Name:"BlockBreaker"}}},OnGround:1b}
execute @e[type=Item,tag=blockbreaker] ~ ~ ~ /summon minecraft:Leash_Knot ~ ~ ~ {Tags:[blockbreaker]}
kill @e[type=item,tag=blockbreaker]
execute @e[type=leash_knot,tag=blockbreaker] ~ ~ ~ /summon armor_stand ~ ~1.5 ~ {Invisible:1b,Invulnerable:1b,NoGravity:1b,Marker:1b,CustomName:"breaker"}
execute @e[type=leash_knot,tag=blockbreaker] ~ ~ ~ setblock ~ ~ ~ gold_block 1
execute @e[type=armor_stand,name=breaker] ~ ~ ~ detect ~ ~-2 ~ air 0 /kill @e[type=item,r=2,c=1]
execute @e[type=armor_stand,name=breaker] ~ ~ ~ detect ~ ~-2 ~ air 0 /summon minecraft:item ~ ~-2 ~ {Item:{id:"minecraft:stone",Count:1b}}
execute @e[type=armor_stand,name=breaker] ~ ~ ~ detect ~ ~-2 ~ air 0 /summon minecraft:item ~ ~-2 ~ {Item:{id:"minecraft:iron_pickaxe",Count:1b}}
execute @e[type=armor_stand,name=breaker] ~ ~ ~ detect ~ ~-2 ~ air 0 /kill @e[type=armor_stand,name=breaker,c=1]
kill @e[tag=blockbreaker]
execute @e[name=breaker] ~ ~ ~ /setblock ~ ~-1 ~ minecraft:air 0 destroy
execute @e[name=breaker] ~ ~ ~ /setblock ~ ~ ~ minecraft:air 0 destroy
execute @e[type=armor_stand,name=breaker] ~ ~ ~ /particle spell ~ ~-1 ~ 0 1 0 11 1
scoreboard players set @e[type=Item] test 1 {Item:{id:"minecraft:stone"}}
scoreboard players set @e[type=Item] test 2 {Item:{id:"minecraft:iron_pickaxe"}}
execute @e[score_test_min=1,score_test=1] ~ ~ ~ execute @e[r=1,score_test_min=2,score_test=2] ~ ~ ~ /give @p minecraft:enchanted_book 1 0 {display:{Name:"BlockBreaker"},HideFlags:63,ench:[{id:0,lvl:0}]}
execute @e[score_test_min=1,score_test=1] ~ ~ ~ execute @e[r=1,score_test_min=2,score_test=2] ~ ~ ~ kill @e[type=Item,r=5,score_test=1,score_test=2]
scoreboard objectives add test dummy
execute @e[type=armor_stand,name=trashcan] ~ ~ ~ /blockdata ~ ~-2 ~ {CustomName:"Trash Can",Items:[],id:"minecraft:dropper",Lock:""}
scoreboard players tag @e[type=item] add trashcan {Item:{id:"minecraft:enchanted_book",Count:1b,tag:{display:{Name:"TrashCan"}}},OnGround:1b}
execute @e[type=Item,tag=trashcan] ~ ~ ~ /summon minecraft:Leash_Knot ~ ~ ~ {Tags:[trashcan]}
kill @e[type=item,tag=trashcan]
execute @e[type=leash_knot,tag=trashcan] ~ ~ ~ /summon armor_stand ~ ~1.5 ~ {Invisible:1b,Invulnerable:1b,NoGravity:1b,Marker:1b,CustomName:"trashcan"}
execute @e[type=leash_knot,tag=trashcan] ~ ~ ~ setblock ~ ~ ~ dropper 1
execute @e[type=armor_stand,name=trashcan] ~ ~ ~ detect ~ ~-2 ~ air 0 /kill @e[type=item,r=2,c=2]
execute @e[type=armor_stand,name=trashcan] ~ ~ ~ detect ~ ~-2 ~ air 0 /summon minecraft:item ~ ~-2 ~ {Item:{id:"minecraft:lava_bucket",Count:1b}}
execute @e[type=armor_stand,name=trashcan] ~ ~ ~ detect ~ ~-2 ~ air 0 /summon minecraft:item ~ ~-2 ~ {Item:{id:"minecraft:iron_block",Count:1b}}
execute @e[type=armor_stand,name=trashcan] ~ ~ ~ detect ~ ~-2 ~ air 0 /kill @e[type=armor_stand,name=trashcan]
kill @e[tag=trashcan]
scoreboard players set @e[type=Item] test 3 {Item:{id:"minecraft:lava_bucket"}}
scoreboard players set @e[type=Item] test 4 {Item:{id:"minecraft:iron_block"}}
execute @e[score_test_min=3,score_test=3] ~ ~ ~ execute @e[r=1,score_test_min=4,score_test=4] ~ ~ ~ /give @p minecraft:enchanted_book 1 0 {display:{Name:"TrashCan"},HideFlags:63,ench:[{id:0,lvl:0}]}
execute @e[score_test_min=4,score_test=4] ~ ~ ~ execute @e[r=1,score_test_min=3,score_test=3] ~ ~ ~ kill @e[type=Item,r=5,score_test=3,score_test=4]
scoreboard objectives add statcraft dummy
scoreboard players tag @e[type=item] add orecrafter {Item:{id:"minecraft:enchanted_book",Count:1b,tag:{display:{Name:"OreCrafter"}}},OnGround:1b}
execute @e[type=Item,tag=orecrafter] ~ ~ ~ /summon minecraft:Leash_Knot ~ ~ ~ {Tags:[orecrafter]}
kill @e[type=item,tag=orecrafter]
execute @e[type=leash_knot,tag=orecrafter] ~ ~ ~ /summon armor_stand ~ ~1.5 ~ {Invisible:1b,Invulnerable:1b,NoGravity:1b,Marker:1b,CustomName:"orecrafter"}
execute @e[type=leash_knot,tag=orecrafter] ~ ~ ~ setblock ~ ~ ~ dropper 1 replace {CustomName:OreCrafter}
execute @e[type=armor_stand,name=orecrafter] ~ ~ ~ detect ~ ~-2 ~ air 0 /kill @e[type=item,r=2,c=2]
execute @e[type=armor_stand,name=orecrafter] ~ ~ ~ detect ~ ~-2 ~ air 0 /summon minecraft:item ~ ~-2 ~ {Item:{id:"minecraft:stone",Count:1b}}
execute @e[type=armor_stand,name=orecrafter] ~ ~ ~ detect ~ ~-2 ~ air 0 /summon minecraft:item ~ ~-2 ~ {Item:{id:"minecraft:iron_ore",Count:1b}}
execute @e[type=armor_stand,name=orecrafter] ~ ~ ~ detect ~ ~-2 ~ air 0 /kill @e[type=armor_stand,name=orecrafter,c=1]
kill @e[tag=orecrafter]
scoreboard players set @e[name=orecrafter] statcraft 0
execute @e[name=orecrafter] ~ ~ ~ /stats entity @e[name=orecrafter,c=1] set SuccessCount @e[name=orecrafter,c=1] statcraft
execute @e[name=orecrafter] ~ ~ ~ /testforblock ~ ~-2 ~ dropper -1 {Items:[{Slot:0b,Count:1b,id:"minecraft:stone"},{Slot:1b,Count:1b,id:"minecraft:iron_ingot"}]}
execute @e[name=orecrafter,score_statcraft_min=1] ~ ~ ~ /blockdata ~ ~-2 ~ {Items:[{Slot:0b,id:"minecraft:iron_ore",Count:1b}]}
execute @e[name=orecrafter] ~ ~ ~ /testforblock ~ ~-2 ~ dropper -1 {Items:[{Slot:0b,Count:1b,id:"minecraft:stone"},{Slot:1b,Count:1b,id:"minecraft:diamond"}]}
execute @e[name=orecrafter,score_statcraft_min=1] ~ ~ ~ /blockdata ~ ~-2 ~ {Items:[{Slot:0b,id:"minecraft:diamond_ore",Count:1b}]}
execute @e[name=orecrafter] ~ ~ ~ /testforblock ~ ~-2 ~ dropper -1 {Items:[{Slot:0b,Count:1b,id:"minecraft:stone"},{Slot:1b,Count:1b,id:"minecraft:gold_ingot"}]}
execute @e[name=orecrafter,score_statcraft_min=1] ~ ~ ~ /blockdata ~ ~-2 ~ {Items:[{Slot:0b,id:"minecraft:gold_ore",Count:1b}]}
execute @e[name=orecrafter] ~ ~ ~ /testforblock ~ ~-2 ~ dropper -1 {Items:[{Slot:0b,Count:1b,id:"minecraft:stone"},{Slot:1b,Count:1b,id:"minecraft:emerald"}]}
execute @e[name=orecrafter,score_statcraft_min=1] ~ ~ ~ /blockdata ~ ~-2 ~ {Items:[{Slot:0b,id:"minecraft:emerald_ore",Count:1b}]}
execute @e[name=orecrafter] ~ ~ ~ /testforblock ~ ~-2 ~ dropper -1 {Items:[{Slot:0b,Count:1b,id:"minecraft:stone"},{Slot:1b,Count:1b,id:"minecraft:quartz"}]}
execute @e[name=orecrafter,score_statcraft_min=1] ~ ~ ~ /blockdata ~ ~-2 ~ {Items:[{Slot:0b,id:"minecraft:quartz_ore",Count:1b}]}
execute @e[name=orecrafter] ~ ~ ~ /testforblock ~ ~-2 ~ dropper -1 {Items:[{Slot:0b,Count:1b,id:"minecraft:stone"},{Slot:1b,Count:1b,id:"minecraft:coal"}]}
execute @e[name=orecrafter,score_statcraft_min=1] ~ ~ ~ /blockdata ~ ~-2 ~ {Items:[{Slot:0b,id:"minecraft:coal_ore",Count:1b}]}
execute @e[name=orecrafter] ~ ~ ~ /testforblock ~ ~-2 ~ dropper -1 {Items:[{Slot:0b,Count:1b,id:"minecraft:stone"},{Slot:1b,Count:1b,id:"minecraft:redstone"}]}
execute @e[name=orecrafter,score_statcraft_min=1] ~ ~ ~ /blockdata ~ ~-2 ~ {Items:[{Slot:0b,id:"minecraft:redstone_ore",Count:1b}]}
scoreboard players set @e[name=orecrafter] statcraft 0
scoreboard players set @e[type=Item] test 5 {Item:{id:"minecraft:stone"}}
scoreboard players set @e[type=Item] test 6 {Item:{id:"minecraft:iron_ore"}}
execute @e[score_test_min=5,score_test=5] ~ ~ ~ execute @e[r=1,score_test_min=6,score_test=6] ~ ~ ~ /give @p minecraft:enchanted_book 1 0 {display:{Name:"OreCrafter"},HideFlags:63,ench:[{id:0,lvl:0}]}
execute @e[score_test_min=5,score_test=5] ~ ~ ~ execute @e[r=1,score_test_min=6,score_test=6] ~ ~ ~ kill @e[type=Item,r=5,score_test=5,score_test=6]
scoreboard players tag @e[type=item] add magnumtorch {Item:{id:"minecraft:enchanted_book",Count:1b,tag:{display:{Name:"MagnumTorch"}}},OnGround:1b}
execute @e[type=Item,tag=magnumtorch] ~ ~ ~ /summon minecraft:Leash_Knot ~ ~ ~ {Tags:[magnumtorch]}
kill @e[type=item,tag=magnumtorch]
execute @e[type=leash_knot,tag=magnumtorch] ~ ~ ~ /summon armor_stand ~ ~1.5 ~ {Invisible:1b,Invulnerable:1b,NoGravity:1b,Marker:1b,CustomName:"magnumtorch"}
execute @e[type=leash_knot,tag=magnumtorch] ~ ~ ~ /summon armor_stand ~4 ~ ~ {Invisible:1b,Invulnerable:1b,NoGravity:1b,Marker:1b,CustomName:"magnumtorch1"}
execute @e[type=leash_knot,tag=magnumtorch] ~ ~ ~ /summon armor_stand ~-4 ~ ~ {Invisible:1b,Invulnerable:1b,NoGravity:1b,Marker:1b,CustomName:"magnumtorch2"}
execute @e[type=leash_knot,tag=magnumtorch] ~ ~ ~ /summon armor_stand ~ ~ ~4 {Invisible:1b,Invulnerable:1b,NoGravity:1b,Marker:1b,CustomName:"magnumtorch3"}
execute @e[type=leash_knot,tag=magnumtorch] ~ ~ ~ /summon armor_stand ~ ~ ~-4 {Invisible:1b,Invulnerable:1b,NoGravity:1b,Marker:1b,CustomName:"magnumtorch4"}
execute @e[type=leash_knot,tag=magnumtorch] ~ ~ ~ setblock ~ ~ ~ redstone_torch 0
execute @e[type=armor_stand,name=magnumtorch] ~ ~ ~ detect ~ ~-2 ~ air 0 /kill @e[type=item,r=2,c=1]
execute @e[type=armor_stand,name=magnumtorch] ~ ~ ~ detect ~ ~-2 ~ air 0 /summon minecraft:item ~ ~-2 ~ {Item:{id:"minecraft:torch",Count:3b}}
execute @e[type=armor_stand,name=magnumtorch] ~ ~ ~ detect ~ ~-2 ~ air 0 /summon minecraft:item ~ ~-2 ~ {Item:{id:"minecraft:redstone_torch",Count:1b}}
kill @e[tag=magnumtorch]
execute @e[type=armor_stand,name=magnumtorch] ~ ~ ~ detect ~ ~-2 ~ air 0 /kill @e[type=armor_stand,name=magnumtorch1,c=1]
execute @e[type=armor_stand,name=magnumtorch] ~ ~ ~ detect ~ ~-2 ~ air 0 /kill @e[type=armor_stand,name=magnumtorch2,c=1]
execute @e[type=armor_stand,name=magnumtorch] ~ ~ ~ detect ~ ~-2 ~ air 0 /kill @e[type=armor_stand,name=magnumtorch3,c=1]
execute @e[type=armor_stand,name=magnumtorch] ~ ~ ~ detect ~ ~-2 ~ air 0 /kill @e[type=armor_stand,name=magnumtorch4,c=1]
execute @e[type=armor_stand,name=magnumtorch] ~ ~ ~ detect ~ ~-2 ~ air 0 /setblock ~ ~-2 ~4 air
execute @e[type=armor_stand,name=magnumtorch] ~ ~ ~ detect ~ ~-2 ~ air 0 /setblock ~ ~-2 ~-4 air
execute @e[type=armor_stand,name=magnumtorch] ~ ~ ~ detect ~ ~-2 ~ air 0 /setblock ~4 ~-2 ~ air
execute @e[type=armor_stand,name=magnumtorch] ~ ~ ~ detect ~ ~-2 ~ air 0 /setblock ~-4 ~-2 ~ air
execute @e[type=armor_stand,name=magnumtorch] ~ ~ ~ detect ~ ~-2 ~ air 0 /kill @e[type=armor_stand,name=magnumtorch,c=1]
execute @e[type=armor_stand,name=magnumtorch] ~ ~ ~ detect ~ ~-2 ~ air 0 /kill @e[type=armor_stand,name=magnumtorch,c=1]
execute @e[type=armor_stand,name=magnumtorch1] ~ ~ ~ setblock ~ ~ ~ torch 0
execute @e[type=armor_stand,name=magnumtorch1] ~ ~ ~ detect ~ ~ ~ air 0 /kill @e[type=item,r=2,c=1]
execute @e[type=armor_stand,name=magnumtorch2] ~ ~ ~ setblock ~ ~ ~ torch 0
execute @e[type=armor_stand,name=magnumtorch2] ~ ~ ~ detect ~ ~ ~ air 0 /kill @e[type=item,r=2,c=1]
execute @e[type=armor_stand,name=magnumtorch3] ~ ~ ~ setblock ~ ~ ~ torch 0
execute @e[type=armor_stand,name=magnumtorch3] ~ ~ ~ detect ~ ~ ~ air 0 /kill @e[type=item,r=2,c=1]
execute @e[type=armor_stand,name=magnumtorch4] ~ ~ ~ setblock ~ ~ ~ torch 0
execute @e[type=armor_stand,name=magnumtorch4] ~ ~ ~ detect ~ ~ ~ air 0 /kill @e[type=item,r=2,c=1]
scoreboard players set @e[type=Item] test 7 {Item:{id:"minecraft:torch"}}
scoreboard players set @e[type=Item] test 8 {Item:{id:"minecraft:redstone_torch"}}
execute @e[score_test_min=7,score_test=7] ~ ~ ~ execute @e[r=1,score_test_min=8,score_test=8] ~ ~ ~ /give @p minecraft:enchanted_book 1 0 {display:{Name:"MagnumTorch"},HideFlags:63,ench:[{id:0,lvl:0}]}
execute @e[score_test_min=7,score_test=7] ~ ~ ~ execute @e[r=1,score_test_min=8,score_test=8] ~ ~ ~ /kill @e[type=Item,r=5,score_test=7,score_test=8]
scoreboard players tag @e[type=item] add insthouse {Item:{id:"minecraft:enchanted_book",Count:1b,tag:{display:{Name:"InstHouse"}}},OnGround:1b}
execute @e[type=Item,tag=insthouse] ~ ~ ~ /summon minecraft:Leash_Knot ~ ~ ~ {Tags:[insthouse]}
kill @e[type=item,tag=insthouse]
execute @e[type=leash_knot,tag=insthouse] ~ ~ ~ /fill ~ ~ ~ ~5 ~5 ~5 minecraft:planks 0 hollow
execute @e[type=leash_knot,tag=insthouse] ~ ~ ~ /setblock ~ ~1 ~3 minecraft:wooden_door
execute @e[type=leash_knot,tag=insthouse] ~ ~ ~ /setblock ~ ~2 ~3 minecraft:wooden_door 8
execute @e[type=leash_knot,tag=insthouse] ~ ~ ~ /setblock ~-1 ~0 ~3 minecraft:oak_stairs 0
execute @e[type=leash_knot,tag=insthouse] ~ ~ ~ /setblock ~4 ~1 ~4 minecraft:crafting_table
execute @e[type=leash_knot,tag=insthouse] ~ ~ ~ /setblock ~4 ~1 ~1 minecraft:crafting_table
execute @e[type=leash_knot,tag=insthouse] ~ ~ ~ /fill ~4 ~1 ~3 ~4 ~1 ~2 minecraft:furnace 4
execute @e[type=leash_knot,tag=insthouse] ~ ~ ~ /fill ~4 ~2 ~3 ~4 ~2 ~2 minecraft:chest 4
execute @e[type=leash_knot,tag=insthouse] ~ ~ ~ /setblock ~1 ~1 ~1 minecraft:ender_chest 3
kill @e[tag=insthouse]
scoreboard players set @e[type=Item] test 1 {Item:{id:"minecraft:log"}}
scoreboard players set @e[type=Item] test 14 {Item:{id:"minecraft:trapped_chest",tag:{display:{Name:"SmeltedEnderChest",Lore:["An ingredient to craft an insthouse!"]}}}}
scoreboard players set @e[type=Item] test 15 {Item:{id:"minecraft:trapped_chest",tag:{display:{Name:"CraftyChest",Lore:["An ingredient to craft an insthouse!"]},ench:[{id:1,lvl:0}],HideFlags:63}}}
scoreboard players set @e[type=Item] test 16 {Item:{id:"minecraft:log"}}
scoreboard players set @e[type=Item] test 17 {Item:{id:"minecraft:iron_block",tag:{display:{Name:"HouseController",Lore:["An ingredient to craft an insthouse!"]},ench:[{id:1,lvl:0}],HideFlags:63}}}
scoreboard players set @e[type=Item] test 10 {Item:{id:"minecraft:chest"}}
scoreboard players set @e[type=Item] test 13 {Item:{id:"minecraft:ender_chest"}}
scoreboard players set @e[type=Item] test 12 {Item:{id:"minecraft:furnace"}}
scoreboard players set @e[type=Item] test 11 {Item:{id:"minecraft:crafting_table"}}
execute @e[score_test_min=12,score_test=12] ~ ~ ~ execute @e[r=1,score_test_min=13,score_test=13] ~ ~ ~ give @p minecraft:trapped_chest 1 0 {display:{Name:"SmeltedEnderChest",Lore:["An ingredient to craft an insthouse!"]},ench:[{id:1,lvl:0}],HideFlags:63}
execute @e[score_test_min=10,score_test=10] ~ ~ ~ execute @e[r=1,score_test_min=11,score_test=11] ~ ~ ~ /give @p minecraft:trapped_chest 1 0 {display:{Name:"CraftyChest",Lore:["An ingredient to craft an insthouse!"]},ench:[{id:1,lvl:0}],HideFlags:63}
execute @e[score_test_min=14,score_test=14] ~ ~ ~ execute @e[r=1,score_test_min=15,score_test=15] ~ ~ ~ /give @p minecraft:iron_block 1 0 {display:{Name:"HouseController",Lore:["An ingredient to craft an insthouse!"]},ench:[{id:1,lvl:0}],HideFlags:63}
execute @e[score_test_min=16,score_test=16] ~ ~ ~ execute @e[r=1,score_test_min=17,score_test=17] ~ ~ ~ /give @p minecraft:enchanted_book 1 0 {display:{Name:"InstHouse"},HideFlags:63,ench:[{id:0,lvl:0}]}
execute @e[score_test_min=10,score_test=10] ~ ~ ~ execute @e[r=1,score_test_min=11,score_test=11] ~ ~ ~ /kill @e[type=Item,r=5,score_test=10,score_test=11]
execute @e[score_test_min=12,score_test=12] ~ ~ ~ execute @e[r=1,score_test_min=13,score_test=13] ~ ~ ~ /kill @e[type=Item,r=5,score_test=12,score_test=13]
execute @e[score_test_min=14,score_test=14] ~ ~ ~ execute @e[r=1,score_test_min=15,score_test=15] ~ ~ ~ /kill @e[type=Item,r=5,score_test=14,score_test=15]
execute @e[score_test_min=16,score_test=16] ~ ~ ~ execute @e[r=1,score_test_min=17,score_test=17] ~ ~ ~ /kill @e[type=Item,r=5,score_test=16,score_test=17]
scoreboard objectives add statcraft2 dummy
scoreboard players tag @e[type=item] add pulveriser {Item:{id:"minecraft:enchanted_book",Count:1b,tag:{display:{Name:"Pulveriser"}}},OnGround:1b}
execute @e[type=Item,tag=pulveriser] ~ ~ ~ /summon minecraft:Leash_Knot ~ ~ ~ {Tags:[pulveriser]}
kill @e[type=item,tag=pulveriser]
execute @e[type=leash_knot,tag=pulveriser] ~ ~ ~ /summon armor_stand ~ ~1.5 ~ {Invisible:1b,Invulnerable:1b,NoGravity:1b,Marker:1b,CustomName:"pulveriser"}
execute @e[type=leash_knot,tag=pulveriser] ~ ~ ~ setblock ~ ~ ~ dropper 1 replace {CustomName:Pulveriser}
execute @e[type=armor_stand,name=pulveriser] ~ ~ ~ detect ~ ~-2 ~ air 0 /kill @e[type=item,r=2,c=2]
execute @e[type=armor_stand,name=pulveriser] ~ ~ ~ detect ~ ~-2 ~ air 0 /summon minecraft:item ~ ~-2 ~ {Item:{id:"minecraft:iron_block",Count:1b}}
execute @e[type=armor_stand,name=pulveriser] ~ ~ ~ detect ~ ~-2 ~ air 0 /summon minecraft:item ~ ~-2 ~ {Item:{id:"minecraft:golden_pickaxe",Count:1b}}
execute @e[type=armor_stand,name=pulveriser] ~ ~ ~ detect ~ ~-2 ~ air 0 /kill @e[type=armor_stand,name=pulveriser,c=1]
kill @e[tag=pulveriser]
scoreboard players set @e[name=pulveriser] statcraft2 0
execute @e[name=pulveriser] ~ ~ ~ /stats entity @e[name=pulveriser,c=1] set SuccessCount @e[name=pulveriser,c=1] statcraft2
execute @e[name=pulveriser] ~ ~ ~ /testforblock ~ ~-2 ~ dropper -1 {Items:[{Slot:0b,id:"minecraft:iron_bars",Count:1b},{Slot:1b,id:"minecraft:iron_bars",Count:1b},{Slot:2b,id:"minecraft:iron_bars",Count:1b},{Slot:4b,id:"minecraft:iron_ore",Count:1b},{Slot:6b,id:"minecraft:iron_bars",Count:1b},{Slot:7b,id:"minecraft:iron_bars",Count:1b},{Slot:8b,id:"minecraft:iron_bars",Count:1b}]}
execute @e[name=pulveriser,score_statcraft2_min=1] ~ ~ ~ /blockdata ~ ~-2 ~ {Items:[{Slot:0b,id:"minecraft:iron_bars",Count:1b},{Slot:1b,id:"minecraft:iron_bars",Count:1b},{Slot:2b,id:"minecraft:iron_bars",Count:1b},{Slot:6b,id:"minecraft:iron_bars",Count:1b},{Slot:7b,id:"minecraft:iron_bars",Count:1b},{Slot:8b,id:"minecraft:iron_bars",Count:1b},{Slot:4b,id:"minecraft:iron_ingot",Count:2b}]}
execute @e[name=pulveriser] ~ ~ ~ /testforblock ~ ~-2 ~ dropper -1 {Items:[{Slot:0b,id:"minecraft:iron_bars",Count:1b},{Slot:1b,id:"minecraft:iron_bars",Count:1b},{Slot:2b,id:"minecraft:iron_bars",Count:1b},{Slot:4b,id:"minecraft:gold_ore",Count:1b},{Slot:6b,id:"minecraft:iron_bars",Count:1b},{Slot:7b,id:"minecraft:iron_bars",Count:1b},{Slot:8b,id:"minecraft:iron_bars",Count:1b}]}
execute @e[name=pulveriser,score_statcraft2_min=1] ~ ~ ~ /blockdata ~ ~-2 ~ {Items:[{Slot:0b,id:"minecraft:iron_bars",Count:1b},{Slot:1b,id:"minecraft:iron_bars",Count:1b},{Slot:2b,id:"minecraft:iron_bars",Count:1b},{Slot:6b,id:"minecraft:iron_bars",Count:1b},{Slot:7b,id:"minecraft:iron_bars",Count:1b},{Slot:8b,id:"minecraft:iron_bars",Count:1b},{Slot:4b,id:"minecraft:gold_ingot",Count:2b}]}
execute @e[name=pulveriser] ~ ~ ~ /testforblock ~ ~-2 ~ dropper -1 {Items:[{Slot:0b,id:"minecraft:iron_bars",Count:1b},{Slot:1b,id:"minecraft:iron_bars",Count:1b},{Slot:2b,id:"minecraft:iron_bars",Count:1b},{Slot:4b,id:"minecraft:iron_ore",Count:1b},{Slot:6b,id:"minecraft:diamond_ore",Count:1b},{Slot:7b,id:"minecraft:iron_bars",Count:1b},{Slot:8b,id:"minecraft:iron_bars",Count:1b}]}
execute @e[name=pulveriser,score_statcraft2_min=1] ~ ~ ~ /blockdata ~ ~-2 ~ {Items:[{Slot:0b,id:"minecraft:iron_bars",Count:1b},{Slot:1b,id:"minecraft:iron_bars",Count:1b},{Slot:2b,id:"minecraft:iron_bars",Count:1b},{Slot:6b,id:"minecraft:iron_bars",Count:1b},{Slot:7b,id:"minecraft:iron_bars",Count:1b},{Slot:8b,id:"minecraft:iron_bars",Count:1b},{Slot:4b,id:"minecraft:diamond",Count:2b}]}
execute @e[name=pulveriser] ~ ~ ~ /testforblock ~ ~-2 ~ dropper -1 {Items:[{Slot:0b,id:"minecraft:iron_bars",Count:1b},{Slot:1b,id:"minecraft:iron_bars",Count:1b},{Slot:2b,id:"minecraft:iron_bars",Count:1b},{Slot:4b,id:"minecraft:emerald_ore",Count:1b},{Slot:6b,id:"minecraft:iron_bars",Count:1b},{Slot:7b,id:"minecraft:iron_bars",Count:1b},{Slot:8b,id:"minecraft:iron_bars",Count:1b}]}
execute @e[name=pulveriser,score_statcraft2_min=1] ~ ~ ~ /blockdata ~ ~-2 ~ {Items:[{Slot:0b,id:"minecraft:iron_bars",Count:1b},{Slot:1b,id:"minecraft:iron_bars",Count:1b},{Slot:2b,id:"minecraft:iron_bars",Count:1b},{Slot:6b,id:"minecraft:iron_bars",Count:1b},{Slot:7b,id:"minecraft:iron_bars",Count:1b},{Slot:8b,id:"minecraft:iron_bars",Count:1b},{Slot:4b,id:"minecraft:emerald",Count:2b}]}
execute @e[name=pulveriser] ~ ~ ~ /testforblock ~ ~-2 ~ dropper -1 {Items:[{Slot:0b,id:"minecraft:iron_bars",Count:1b},{Slot:1b,id:"minecraft:iron_bars",Count:1b},{Slot:2b,id:"minecraft:iron_bars",Count:1b},{Slot:4b,id:"minecraft:coal_ore",Count:1b},{Slot:6b,id:"minecraft:iron_bars",Count:1b},{Slot:7b,id:"minecraft:iron_bars",Count:1b},{Slot:8b,id:"minecraft:iron_bars",Count:1b}]}
execute @e[name=pulveriser,score_statcraft2_min=1] ~ ~ ~ /blockdata ~ ~-2 ~ {Items:[{Slot:0b,id:"minecraft:iron_bars",Count:1b},{Slot:1b,id:"minecraft:iron_bars",Count:1b},{Slot:2b,id:"minecraft:iron_bars",Count:1b},{Slot:6b,id:"minecraft:iron_bars",Count:1b},{Slot:7b,id:"minecraft:iron_bars",Count:1b},{Slot:8b,id:"minecraft:iron_bars",Count:1b},{Slot:4b,id:"minecraft:coal",Count:2b}]}
execute @e[name=pulveriser] ~ ~ ~ /testforblock ~ ~-2 ~ dropper -1 {Items:[{Slot:0b,id:"minecraft:iron_bars",Count:1b},{Slot:1b,id:"minecraft:iron_bars",Count:1b},{Slot:2b,id:"minecraft:iron_bars",Count:1b},{Slot:4b,id:"minecraft:redstone_ore",Count:1b},{Slot:6b,id:"minecraft:iron_bars",Count:1b},{Slot:7b,id:"minecraft:iron_bars",Count:1b},{Slot:8b,id:"minecraft:iron_bars",Count:1b}]}
execute @e[name=pulveriser,score_statcraft2_min=1] ~ ~ ~ /blockdata ~ ~-2 ~ {Items:[{Slot:0b,id:"minecraft:iron_bars",Count:1b},{Slot:1b,id:"minecraft:iron_bars",Count:1b},{Slot:2b,id:"minecraft:iron_bars",Count:1b},{Slot:6b,id:"minecraft:iron_bars",Count:1b},{Slot:7b,id:"minecraft:iron_bars",Count:1b},{Slot:8b,id:"minecraft:iron_bars",Count:1b},{Slot:4b,id:"minecraft:redstone",Count:2b}]}
execute @e[name=pulveriser] ~ ~ ~ /testforblock ~ ~-2 ~ dropper -1 {Items:[{Slot:0b,id:"minecraft:iron_bars",Count:1b},{Slot:1b,id:"minecraft:iron_bars",Count:1b},{Slot:2b,id:"minecraft:iron_bars",Count:1b},{Slot:4b,id:"minecraft:diamond_ore",Count:1b},{Slot:6b,id:"minecraft:iron_bars",Count:1b},{Slot:7b,id:"minecraft:iron_bars",Count:1b},{Slot:8b,id:"minecraft:iron_bars",Count:1b}]}
execute @e[name=pulveriser,score_statcraft2_min=1] ~ ~ ~ /blockdata ~ ~-2 ~ {Items:[{Slot:0b,id:"minecraft:iron_bars",Count:1b},{Slot:1b,id:"minecraft:iron_bars",Count:1b},{Slot:2b,id:"minecraft:iron_bars",Count:1b},{Slot:6b,id:"minecraft:iron_bars",Count:1b},{Slot:7b,id:"minecraft:iron_bars",Count:1b},{Slot:8b,id:"minecraft:iron_bars",Count:1b},{Slot:4b,id:"minecraft:diamond",Count:2b}]}
scoreboard players set @e[name=pulveriser] statcraft2 0
scoreboard players set @e[type=Item] test 18 {Item:{id:"minecraft:golden_pickaxe"}}
scoreboard players set @e[type=Item] test 19 {Item:{id:"minecraft:iron_block"}}
execute @e[score_test_min=18,score_test=18] ~ ~ ~ execute @e[r=1,score_test_min=19,score_test=19] ~ ~ ~ /give @p minecraft:enchanted_book 1 0 {display:{Name:"Pulveriser"},HideFlags:63,ench:[{id:0,lvl:0}]}
execute @e[score_test_min=18,score_test=18] ~ ~ ~ execute @e[r=1,score_test_min=19,score_test=19] ~ ~ ~ /kill @e[type=Item,r=5,score_test=18,score_test=19]
scoreboard objectives add QuarryTimer dummy
scoreboard players tag @e[type=item] add enderquarry {Item:{id:"minecraft:enchanted_book",Count:1b,tag:{display:{Name:"EnderQuarry"}}},OnGround:1b}
execute @e[type=Item,tag=enderquarry] ~ ~ ~ /summon minecraft:Leash_Knot ~ ~ ~ {Tags:[enderquarry]}
kill @e[type=item,tag=enderquarry]
execute @e[type=leash_knot,tag=enderquarry] ~ ~ ~ /summon armor_stand ~ ~0.5 ~ {Invisible:1b,Invulnerable:1b,NoGravity:1b,Marker:1b,CustomName:"enderquarry"}
execute @e[type=leash_knot,tag=enderquarry] ~ ~ ~ /summon armor_stand ~ ~0.5 ~ {Invisible:1b,Invulnerable:1b,NoGravity:1b,Marker:1b,CustomName:"enderquarrymine"}
execute @e[type=leash_knot,tag=enderquarry] ~ ~ ~ /summon armor_stand ~ ~2.5 ~ {Invisible:1b,Invulnerable:1b,NoGravity:1b,Marker:1b,CustomName:"enderquarryitems"}
execute @e[type=leash_knot,tag=enderquarry] ~ ~ ~ /summon hopper_minecart ~ ~1 ~ {CustomName:"EnderQuarryOutput",CustomDisplayTile:1,DisplayTile:"minecraft:obsidian"}
execute @e[type=leash_knot,tag=enderquarry] ~ ~ ~ setblock ~ ~2 ~ hopper 0 replace {CustomName:EnderQuarryOutput}
execute @e[type=leash_knot,tag=enderquarry] ~ ~ ~ setblock ~ ~ ~ obsidian 1
execute @e[type=armor_stand,name=enderquarry] ~ ~ ~ detect ~ ~-1 ~ air 0 /kill @e[type=item,r=2,c=1]
execute @e[type=armor_stand,name=enderquarry] ~ ~ ~ detect ~ ~-1 ~ air 0 /summon minecraft:item ~ ~-1 ~ {Item:{id:"minecraft:obsidian",Count:1b}}
execute @e[type=armor_stand,name=enderquarry] ~ ~ ~ detect ~ ~-1 ~ air 0 /summon minecraft:item ~ ~-1 ~ {Item:{id:"minecraft:diamond_pickaxe",Count:1b}}
execute @e[type=armor_stand,name=enderquarry] ~ ~ ~ detect ~ ~-1 ~ air 0 /kill @e[type=armor_stand,name=enderquarrymine,c=1]
execute @e[type=armor_stand,name=enderquarry] ~ ~ ~ detect ~ ~-1 ~ air 0 /fill ~ ~ ~ ~ ~1 ~ air 0
execute @e[type=armor_stand,name=enderquarry] ~ ~ ~ detect ~ ~-1 ~ air 0 /kill @e[type=hopper_minecart,name=EnderQuarryOutput,c=1]
kill @e[tag=enderquarry]
execute @e[type=armor_stand,name=enderquarry] ~ ~ ~ detect ~ ~-1 ~ air 0 /kill @e[type=armor_stand,name=enderquarryitems,c=1]
execute @e[type=armor_stand,name=enderquarry] ~ ~ ~ detect ~ ~-1 ~ air 0 /kill @e[type=armor_stand,name=enderquarry,c=1]
execute @e[type=armor_stand,name=enderquarry] ~ ~1 ~ /particle enchantmenttable ~ ~-1 ~ 0 0 0 1 11
scoreboard players add @e[name=enderquarrymine] QuarryTimer 1
scoreboard players tag @e[name=enderquarrymine,score_QuarryTimer_min=200] add enderquarryready
execute @e[tag=enderquarryready] ~ ~ ~ fill ~5 ~-2 ~5 ~-5 ~-2 ~-5 minecraft:air 0 destroy
execute @e[tag=enderquarryready] ~ ~ ~ teleport @e[tag=enderquarryready,c=1] ~ ~-1 ~
execute @e[name=enderquarry] ~ ~ ~ tp @e[type=item,r=10] @e[name=enderquarryitems,c=1]
scoreboard players tag @e[tag=enderquarryready,score_QuarryTimer_min=1,score_QuarryTimer=199] remove enderquarryready
scoreboard players set @e[name=enderquarrymine,score_QuarryTimer_min=200] QuarryTimer 0
scoreboard players set @e[type=Item] test 20 {Item:{id:"minecraft:diamond_pickaxe"}}
scoreboard players set @e[type=Item] test 21 {Item:{id:"minecraft:obsidian"}}
scoreboard players set @e[type=Item] test 22 {Item:{id:"minecraft:hopper"}}
execute @e[score_test_min=21,score_test=21] ~ ~ ~ execute @e[r=1,score_test_min=20,score_test=20] ~ ~ ~ execute @e[r=1,score_test_min=22,score_test=22] ~ ~ ~ /give @p minecraft:enchanted_book 1 0 {display:{Name:"EnderQuarry"},HideFlags:63,ench:[{id:0,lvl:0}]}
execute @e[score_test_min=21,score_test=21] ~ ~ ~ execute @e[r=1,score_test_min=20,score_test=20] ~ ~ ~ execute @e[r=1,score_test_min=22,score_test=22] ~ ~ ~ /kill @e[type=Item,r=5,score_test=20,score_test=22]
scoreboard players tag @e[type=item] add minichest {Item:{id:"minecraft:enchanted_book",Count:1b,tag:{display:{Name:"MiniChest"}}},OnGround:1b}
execute @e[type=Item,tag=minichest] ~ ~ ~ /summon minecraft:Leash_Knot ~ ~ ~ {Tags:[minichest]}
kill @e[type=item,tag=minichest]
execute @e[type=leash_knot,tag=minichest] ~ ~ ~ /summon armor_stand ~ ~1.5 ~ {Invisible:1b,Invulnerable:1b,NoGravity:1b,Marker:1b,CustomName:"minichest"}
execute @e[type=leash_knot,tag=minichest] ~ ~ ~ setblock ~ ~ ~ hopper 0 replace {CustomName:MiniChest}
execute @e[type=armor_stand,name=minichest] ~ ~ ~ detect ~ ~-2 ~ air 0 /kill @e[type=item,r=2,c=1]
execute @e[type=armor_stand,name=minichest] ~ ~ ~ detect ~ ~-2 ~ air 0 /summon item ~ ~-2 ~ {Tags:["minichestgive"],Item:{id:"minecraft:chest",Count:1b},PickupDelay:1000}
execute @e[type=armor_stand,name=minichest] ~ ~ ~ detect ~ ~-2 ~ air 0 /kill @e[type=armor_stand,name=minichest,c=1]
kill @e[tag=minichest]
execute @e[tag=minichestgive] ~ ~ ~ give @p minecraft:enchanted_book 1 0 {display:{Name:"MiniChest"},HideFlags:63,ench:[{id:0,lvl:0}]}
execute @e[tag=minichestgive] ~ ~ ~ kill @e[tag=minichestgive,c=1]
scoreboard players set @e[type=Item] test 23 {Item:{id:"minecraft:chest"}}
scoreboard players set @e[type=Item] test 24 {Item:{id:"minecraft:hopper"}}
execute @e[score_test_min=23,score_test=23] ~ ~ ~ execute @e[r=1,score_test_min=24,score_
summon command #1: https://pastebin.com/DsRKrPSw command #2: https://pastebin.com/1sjzdaPM