/summon FallingSand ~ ~1 ~ {Block:command_block,Data:1,TileEntityData:{Command:gamerule commandBlockOutput false},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:fill ~1 ~-1 ~3 ~-2 ~7 ~13 stained_glass 10 hollow},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:fill ~1 ~6 ~3 ~-2 ~6 ~13 air},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:fill ~1 ~-3 ~3 ~-2 ~-3 ~13 purpur_slab 8},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:/summon FallingSand ~ ~-2 ~11 {Block:chain_command_block,Data:0,TileEntityData:{Command:/summon FallingSand ~-1 ~1 ~-7 {Block:repeating_command_block,Data:1,TileEntityData:{Command:gamerule },Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:execute @a ~ ~ ~ testforblock ~ ~-1 ~ dispenser 1 {Items:[0:{Slot:0b,id:"minecraft:daylight_detector",Count:1b,Damage:0s},1:{Slot:1b,id:"minecraft:hopper",Count:1b,Damage:0s},2:{Slot:2b,id:"minecraft:daylight_detector",Count:1b,Damage:0s},3:{Slot:3b,id:"minecraft:redstone_block",Count:3b,Damage:0s},4:{Slot:4b,id:"minecraft:chest",Count:2b,Damage:0s},5:{Slot:5b,id:"minecraft:redstone_block",Count:3b,Damage:0s},6:{Slot:6b,id:"minecraft:iron_block",Count:1b,Damage:0s},7:{Slot:7b,id:"minecraft:diamond_pickaxe",Count:1b,Damage:0s},8:{Slot:8b,id:"minecraft:iron_block",Count:1b,Damage:0s}],id:"Trap",Lock:""}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:9,TileEntityData:{Command:execute @a ~ ~ ~ detect ~ ~-1 ~ dispenser 1 summon Item ~ ~-1 ~ {CustomName:"Quarry",CustomNameVisible:1,Item:{id:spawn_egg,Damage:0,Count:1,tag:{EntityTag:{id:Enderman},HideFlags:1,display:{Name:"Quarry"},ench:[{id:35,lvl:0}]}}}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:9,TileEntityData:{Command:execute @a ~ ~ ~ detect ~ ~-1 ~ dispenser 1 setblock ~ ~-1 ~ air},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:execute @e[type=Enderman,name=Quarry] ~ ~ ~ setblock ~ ~ ~ minecraft:dispenser 0 replace {CustomName:▶ ▶ ▶ ▶ ▶ ▶ ▶ ▶ Quarry ◀ ◀ ◀ ◀ ◀ ◀ ◀ ◀}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:execute @e[type=Enderman,name=Quarry] ~ ~ ~ summon ArmorStand ~ ~-1 ~ {CustomName:"ASQ1",Invisible:1,Invulnerable:1,NoGravity:1,PersistenceRequired:1,DisabledSlots:2039583}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:5,TileEntityData:{Command:execute @e[type=Enderman,name=Quarry] ~ ~ ~ summon ArmorStand ~ ~ ~ {CustomName:"ASQP",Invisible:1,Invulnerable:1,NoGravity:1,PersistenceRequired:1,DisabledSlots:2039583}},Time:1,DropItem:0}]}]}]}]}]}]}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:/summon FallingSand ~ ~ ~-7 {Block:chain_command_block,Data:3,TileEntityData:{Command:execute @e[name=ASQP] ~ ~ ~ particle endRod ~5 ~.5 ~ 3 0 0 0 1 force},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:execute @e[name=ASQP] ~ ~ ~ particle endRod ~5 ~.5 ~11 3 0 0 0 1 force},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:execute @e[name=ASQP] ~ ~ ~ particle endRod ~11 ~.5 ~5 0 0 3 0 1 force},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:execute @e[name=ASQP] ~ ~ ~ particle endRod ~ ~.5 ~5 0 0 3 0 1 force},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:execute @e[name=ASQ1] ~ ~ ~ detect ~ ~1 ~ air -1 kill @e[name=ASQ1,r=0]},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:execute @e[name=ASQ1] ~ ~ ~ detect ~ ~1 ~ air -1 summon Item ~ ~1 ~ {CustomName:"Quarry",CustomNameVisible:1,Item:{id:spawn_egg,Damage:0,Count:1,tag:{EntityTag:{id:Enderman},HideFlags:1,display:{Name:"Quarry"},ench:[{id:35,lvl:0}]}}}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:tp @e[type=Enderman,name=Quarry] ~ ~-400 ~},Time:1,DropItem:0}]}]}]}]}]}]}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:/summon FallingSand ~ ~-1 ~-6 {Block:chain_command_block,Data:1,TileEntityData:{Command:execute @e[name=ASQP] ~ ~ ~ testforblock ~ ~ ~ dispenser 0 {CustomName:"▶ ▶ ▶ ▶ ▶ ▶ ▶ ▶ Quarry ◀ ◀ ◀ ◀ ◀ ◀ ◀ ◀",Items:[0:{Slot:1b,id:"minecraft:coal",Count:16b,Damage:0s},1:{Slot:3b,id:"minecraft:carpet",Count:21b,Damage:4s},2:{Slot:4b,id:"minecraft:iron_bars",Count:22b,Damage:0s},3:{Slot:5b,id:"minecraft:carpet",Count:22b,Damage:15s},4:{Slot:7b,id:"minecraft:coal",Count:16b,Damage:0s}],id:"Trap",Lock:""}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:9,TileEntityData:{Command:execute @e[name=ASQP] ~ ~ ~ detect ~ ~ ~ dispenser 0 playsound block.anvil.use block @a ~ ~ ~ 10 1},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:9,TileEntityData:{Command:execute @e[name=ASQ1] ~ ~ ~ detect ~ ~1 ~ dispenser 0 summon ArmorStand ~1 ~1 ~ {CustomName:"ASQ2",Invisible:1,NoGravity:1,PersistenceRequired:1,DisabledSlots:2039583}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:9,TileEntityData:{Command:execute @e[name=ASQ1] ~ ~1 ~ detect ~ ~ ~ dispenser 0 kill @e[name=ASQP,r=0]},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:9,TileEntityData:{Command:execute @e[name=ASQ1] ~ ~ ~ detect ~ ~1 ~ dispenser 0 setblock ~ ~1 ~ end_bricks},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:scoreboard objectives add qwrTm2 dummy},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:4,TileEntityData:{Command:scoreboard objectives add qwrTm1 dummy},Time:1,DropItem:0}]}]}]}]}]}]}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:/summon FallingSand ~-1 ~-2 ~-6 {Block:chain_command_block,Data:3,TileEntityData:{Command:execute @e[name=ASQ2] ~ ~ ~ detect ~-1 ~ ~ carpet 15 setblock ~ ~ ~ carpet 4},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:execute @e[name=ASQ2,score_qwrTm1_min=1,score_qwrTm1=1] ~ ~ ~ setblock ~ ~ ~ carpet 15},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:tp @e[name=ASQ2,score_qwrTm1_min=34,score_qwrTm1=44] ~ ~ ~-1},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:tp @e[name=ASQ2,score_qwrTm1_min=23,score_qwrTm1=33] ~-1 ~ ~},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:tp @e[name=ASQ2,score_qwrTm1_min=12,score_qwrTm1=22] ~ ~ ~1},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:tp @e[name=ASQ2,score_qwrTm1_min=2,score_qwrTm1=11] ~1 ~ ~},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:scoreboard players add @e[name=ASQ2] qwrTm1 1},Time:1,DropItem:0}]}]}]}]}]}]}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:/summon FallingSand ~-1 ~-3 ~-5 {Block:chain_command_block,Data:1,TileEntityData:{Command:execute @e[name=ASQ2] ~ ~ ~ detect ~-1 ~ ~ carpet 4 setblock ~ ~ ~ carpet 15},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:execute @e[name=ASQ2] ~ ~ ~ detect ~ ~ ~-1 carpet 15 setblock ~ ~ ~ carpet 4},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:execute @e[name=ASQ2] ~ ~ ~ detect ~ ~ ~-1 carpet 4 setblock ~ ~ ~ carpet 15},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:execute @e[name=ASQ2] ~ ~ ~ detect ~1 ~ ~ carpet 15 setblock ~ ~ ~ carpet 4},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:execute @e[name=ASQ2] ~ ~ ~ detect ~1 ~ ~ carpet 4 setblock ~ ~ ~ carpet 15},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:execute @e[name=ASQ2] ~ ~ ~ detect ~ ~ ~1 carpet 15 setblock ~ ~ ~ carpet 4},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:5,TileEntityData:{Command:execute @e[name=ASQ2] ~ ~ ~ detect ~ ~ ~1 carpet 4 setblock ~ ~ ~ carpet 15},Time:1,DropItem:0}]}]}]}]}]}]}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:command_block,Data:0,TileEntityData:{Command:/summon FallingSand ~ ~-4 ~-5 {Block:chain_command_block,Data:3,TileEntityData:{Command:execute @e[name=ASQP1] ~ ~ ~ fill ~9 ~ ~ ~ ~ ~ iron_bars},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:execute @e[name=ASQP1] ~ ~ ~ fill ~9 ~ ~9 ~-9 ~1 ~-9 air 0 replace iron_bars},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:execute @e[name=ASQP] ~ ~ ~ detect ~ ~ ~ air 0 kill @e[name=ASQP,r=0]},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:kill @e[name=ASQ2,score_qwrTm1_min=43]},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:execute @e[name=ASQ2,score_qwrTm1_min=43] ~ ~ ~ summon ArmorStand ~1 ~ ~ {CustomName:"ASQP3",Invisible:1,NoGravity:1,PersistenceRequired:1,DisabledSlots:2039583}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:execute @e[name=ASQ2,score_qwrTm1_min=43] ~ ~ ~ summon ArmorStand ~1 ~1 ~ {CustomName:"ASQP2",Invisible:1,NoGravity:1,PersistenceRequired:1,DisabledSlots:2039583}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:execute @e[name=ASQ2,score_qwrTm1_min=43] ~ ~ ~ summon ArmorStand ~1 ~1 ~ {CustomName:"ASQP1",Invisible:1,NoGravity:1,PersistenceRequired:1,DisabledSlots:2039583}},Time:1,DropItem:0}]}]}]}]}]}]}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:redstone_block,Data:0,Time:1,DropItem:0}]}]}]}]}]}]}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:/summon FallingSand ~-1 ~-3 ~11 {Block:chain_command_block,Data:0,TileEntityData:{Command:/summon FallingSand ~1 ~1 ~-4 {Block:chain_command_block,Data:1,TileEntityData:{Command:execute @e[name=ASQP2] ~ ~ ~ fill ~ ~ ~9 ~ ~ ~ iron_bars},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:execute @e[name=ASQP3] ~ ~ ~ fill ~9 ~ ~9 ~-9 ~-1 ~-9 air 0 replace iron_bars},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:execute @e[name=ASQP3] ~ ~ ~ setblock ~ ~ ~ iron_bars},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:execute @e[name=ASQ1] ~ ~ ~ detect ~ ~2 ~ daylight_detector -1 scoreboard players set @e[name=ASQ1,r=0] qwrTm1 2},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:setblock ~-1 ~ ~-5 minecraft:wall_sign 2 replace {Text1:"{\\\\\\\\\\\\\\\"text\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"[Item Recipes]\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"color\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"dark_green\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"bold\\\\\\\\\\\\\\\":true}",Text2:"{\\\\\\\\\\\\\\\"text\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"Right-click\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"clickEvent\\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\\"action\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"run_command\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"  /playsound entity.villager.yes neutral @a ~ ~ ~ 10 1\\\\\\\\\\\\\\\"}}",Text3:"{\\\\\\\\\\\\\\\"text\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"this sign\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"clickEvent\\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\\"action\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"run_command\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"/fill ~1 ~1 ~1 ~ ~-3 ~1 stained_glass 9\\\\\\\\\\\\\\\"}}",Text4:"{\\\\\\\\\\\\\\\"text\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"for info\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"clickEvent\\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\\"action\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"run_command\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\" /say - Quarry: insert the following items in a dispenser facing up while you're stepping on it: Daylight sensor, Hopper, Daylight sensor, 3x Redstone block, 2x Chest, 3x Redstone block, Iron block, Diamond pickaxe, Iron block. When you have finally placed the quarry, you have to insert 16x coal in the upper-central slot, 21x yellow carpets in the left-middle slot, 22x iron bars in the middle-central slot, 22x  black carpets in the middle-right slot and 16x coal in the bottom-middle slot. After that place a daylight detector on top of the quarry to power it. Right-click the daylight detector to activate-deactivate the quarry at any time.\\\\\\\\\\\\\\\"}}"}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:scoreboard objectives add qwrTm3 dummy},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:4,TileEntityData:{Command:execute @e[name=ASQ1,score_qwrTm1_min=2] ~1 ~1 ~1 scoreboard players add @e[name=ASQP3,dx=9,dy=-250,dz=9] qwrTm1 1},Time:1,DropItem:0}]}]}]}]}]}]}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:/summon FallingSand ~ ~ ~-4 {Block:chain_command_block,Data:3,TileEntityData:{Command:tp @e[name=ASQP3,score_qwrTm2_min=10] ~1 ~ ~-10},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:scoreboard players add @e[name=ASQP3,score_qwrTm2_min=10] qwrTm3 1},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:scoreboard players reset @e[name=ASQP3,score_qwrTm1_min=10] qwrTm1},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:scoreboard players remove @e[name=ASQ1,score_qwrTm1_min=1] qwrTm1 1},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:execute @e[name=ASQP3,score_qwrTm1_min=10] ~ ~ ~ tp @e[name=ASQP1,c=1] ~ ~ ~1},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:tp @e[name=ASQP3,score_qwrTm1_min=10] ~ ~ ~1},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:scoreboard players add @e[name=ASQP3,score_qwrTm1_min=10] qwrTm2 1},Time:1,DropItem:0}]}]}]}]}]}]}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:/summon FallingSand ~ ~-1 ~-3 {Block:chain_command_block,Data:1,TileEntityData:{Command:execute @e[name=ASQP3,score_qwrTm2_min=10] ~ ~ ~ tp @e[name=ASQP1,c=1] ~ ~ ~-10},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:execute @e[name=ASQP3,score_qwrTm2_min=10] ~ ~ ~ tp @e[name=ASQP2,c=1] ~1 ~ ~},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:scoreboard players reset @e[name=ASQP3,score_qwrTm2_min=10] qwrTm2},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:tp @e[name=ASQP3,score_qwrTm3_min=10] ~-10 ~-1 ~},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:execute @e[name=ASQP3,score_qwrTm3_min=10] ~ ~ ~ tp @e[name=ASQP1,c=1] ~ ~-1 ~},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:execute @e[name=ASQP3,score_qwrTm3_min=10] ~ ~ ~ tp @e[name=ASQP2,c=1] ~-10 ~-1 ~},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:5,TileEntityData:{Command:scoreboard players reset @e[name=ASQP3,score_qwrTm3_min=10] qwrTm3},Time:1,DropItem:0}]}]}]}]}]}]}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:/summon FallingSand ~1 ~-2 ~-3 {Block:chain_command_block,Data:3,TileEntityData:{Command:execute @e[]},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:execute @e[name=ASQ1] ~ ~1 ~ kill @e[type=Item,score_qwrTm1_min=1,score_qwrTm1=1,r=1]},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:execute @e[name=ASQ1] ~ ~1 ~ execute @e[type=Item,score_qwrTm1_min=1,score_qwrTm1=1,r=1] ~ ~ ~ summon Item ~ ~ ~ {Item:{id:bucket,Count:1}}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:execute @e[type=Item,score_qwrTm1_min=1,score_qwrTm1=1] ~ ~-1 ~ execute @e[name=ASQ1,r=1,c=1] ~1 ~-1 ~1 scoreboard players set @e[name=ASQP3,c=1] qwrPwr 1},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:execute @e[name=ASQ1] ~ ~1 ~ execute @e[type=Item,score_qwrTm1_min=1,score_qwrTm1=1,r=1] ~ ~ ~ playsound entity.generic.drink neutral @a ~ ~ ~ 10 1},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:scoreboard players set @e[type=Item] qwrTm1 1 {OnGround:1b,Item:{id:"minecraft:lava_bucket"}}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:execute @e[name=ASQP3] ~ ~ ~ setblock ~ ~-1 ~ air 0 destroy},Time:1,DropItem:0}]}]}]}]}]}]}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:/summon FallingSand ~1 ~-3 ~-2 {Block:chain_command_block,Data:1,TileEntityData:{Command:scoreboard objectives add qwrPwr dummy},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:scoreboard players set @e[name=ASQP3,score_qwrPwr_min=1,score_qwrTm1_min=2,score_qwrTm1=2] qwrTm1 6},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:execute @e[name=ASQP3] ~ ~ ~ fill ~1 ~-1 ~1 ~-1 ~-1 ~-1 air 0 replace lava},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:execute @e[name=ASQP3] ~ ~ ~ fill ~-1 ~-1 ~-1 ~1 ~-1 ~1 air 0 replace water},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:execute @e[name=ASQP3] ~ ~-1 ~ tp @e[type=Item,r=1] @e[name=ASQTP,c=1]},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:execute @e[type=ArmorStand] ~ ~ ~ detect ~ ~ ~ hopper -1 entitydata @e[type=ArmorStand,r=0] {CustomName:"ASQTP",Invisible:1,Invulnerable:1,NoGravity:1,PersistenceRequired:1,DisabledSlots:2039583,Marker:1b}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:4,TileEntityData:{Command:execute @e[name=ASQTP] ~ ~ ~ particle barrier ~ ~ ~ 0 0 0 0 1 force},Time:1,DropItem:0}]}]}]}]}]}]}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:command_block,Data:0,TileEntityData:{Command:/summon FallingSand ~ ~-4 ~-2 {Block:chain_command_block,Data:3,TileEntityData:{Command:execute @e[name=ASQP3] ~ ~ ~ detect ~ ~-2 ~ bedrock 0 scoreboard players set @e[name=ASQP3,c=1] qwrPwr 3},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:execute @e[name=ASQP3] ~ ~ ~ detect ~ ~-2 ~ bedrock 0 scoreboard players set @e[name=ASQP2,c=1] qwrPwr 3},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:execute @e[name=ASQP3] ~ ~ ~ detect ~ ~-2 ~ bedrock 0 scoreboard players set @e[name=ASQP1,c=1] qwrPwr 3},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:execute @e[name=ASQP3] ~ ~-1 ~ tp @e[type=XPOrb,r=1] @e[name=ASQTP,c=1]},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:execute @e[name=ASQ1,score_qwrTm1_min=1] ~ ~ ~ playsound block.piston.extend block @a ~ ~ ~ .02 1},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:execute @e[name=ASQ1] ~ ~1 ~ particle cloud ~ ~ ~ .2 .4 .2 .1 1 force},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:execute @e[name=ASQTP] ~ ~ ~ detect ~ ~ ~ air 0 entitydata @e[name=ASQTP,r=0] {Invisible:0,Marker:0,Invulnerable:0,CustomName:"Armor Stand",NoGravity:0}},Time:1,DropItem:0}]}]}]}]}]}]}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:redstone_block,Data:0,Time:1,DropItem:0}]}]}]}]}]}]}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:/summon FallingSand ~ ~4 ~12 {Block:chain_command_block,Data:0,TileEntityData:{Command:},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:tellraw @p ["",{"text":"\n\n\n'Buildcraft Quarry' in Minecraft [1.9] ","color":"gold","bold":true},{"text":"by ","color":"none","bold":false},{"text":"TheRedEngineer","color":"red","bold":true},{"text":"\n                   youtube.com/c/TheRedEng\n\n","color":"gold","clickEvent":{"action":"open_url","value":"https://www.youtube.com/c/TheRedEng"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"click to open link ⤴","color":"dark_blue"}]}},"bold":false},{"text":"Credit TheRedEngineer if you are using this creation\nDon't re-upload this command: provide my website link!!\n\n\n","color":"red"}]},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:fill ~ ~-3 ~-2 ~ ~3 ~-2 chain_command_block 6},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:command_block,Data:0,TileEntityData:{Command:/summon FallingSand ~-1 ~-3 ~-2 {Block:chain_command_block,Data:1,TileEntityData:{Command:execute @e[name=ASQP3] ~ ~ ~ detect ~ ~-2 ~ bedrock 0 execute @e[name=ASQ1,c=1] ~ ~ ~ setblock ~ ~2 ~ daylight_detector_inverted},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:execute @e[name=ASQP3] ~ ~ ~ detect ~ ~-2 ~ bedrock 0 fill ~9 ~4 ~9 ~-9 ~-4 ~-9 air 0 replace iron_bars},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:execute @e[name=ASQP3] ~ ~ ~ detect ~ ~-2 ~ bedrock 0 execute @e[name=ASQTP,c=1] ~ ~ ~ summon Item ~ ~1 ~ {Item:{id:iron_bars,Count:22}}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:kill @e[type=ArmorStand,score_qwrPwr_min=3]},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:setblock ~1 ~ ~-8 minecraft:wall_sign 2 replace {Text1:"{\\\\\\\\\\\\\\\"text\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"[Cmd 15w45a]\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"color\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"dark_red\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"bold\\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\\"clickEvent\\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\\"action\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"run_command\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"/fill ~1 ~3 ~ ~-2 ~-5 ~12 air\\\\\\\\\\\\\\\"}}",Text2:"{\\\\\\\\\\\\\\\"text\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"Quarry\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"underlined\\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\\"clickEvent\\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\\"action\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"run_command\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"/playsound entity.generic.explode block @a ~ ~ ~ 10 1\\\\\\\\\\\\\\\"}}",Text3:"{\\\\\\\\\\\\\\\"text\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"by\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"clickEvent\\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\\"action\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"run_command\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"/say [TheRedEngineer] Thanks for playing with my command!\\\\\\\\\\\\\\\"}}",Text4:"{\\\\\\\\\\\\\\\"text\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"TheRedEngineer\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"color\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"red\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"clickEvent\\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\\"action\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"run_command\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"/particle hugeexplosion ~ ~ ~4 1 1 1 1 20 force\\\\\\\\\\\\\\\"}}"}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:setblock ~ ~-3 ~-8 minecraft:wall_sign 2 replace {Text1:"{\\\\\\\\\\\\\\\"text\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"[Deactivate]\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"color\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"red\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"bold\\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\\"clickEvent\\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\\"action\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"run_command\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"/playsound block.piston.extend block @a ~ ~ ~ 10 1\\\\\\\\\\\\\\\"}}",Text2:"{\\\\\\\\\\\\\\\"text\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"Right-click\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"clickEvent\\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\\"action\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"run_command\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"/fill ~2 ~4 ~1 ~-1 ~-2 ~11 stained_glass 15 replace stained_glass\\\\\\\\\\\\\\\"}}",Text3:"{\\\\\\\\\\\\\\\"text\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"this sign to\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"clickEvent\\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\\"action\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"run_command\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"/setblock ~ ~-2 ~2 minecraft:repeating_command_block 1 replace {auto:0b,TrackOutput:0}\\\\\\\\\\\\\\\"}}",Text4:"{\\\\\\\\\\\\\\\"text\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"deactivate machine\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"clickEvent\\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\\"action\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"run_command\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"say 'Quarry' machine deactivated!\\\\\\\\\\\\\\\"}}"}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:5,TileEntityData:{Command:setblock ~1 ~-4 ~-8 minecraft:wall_sign 2 replace {Text1:"{\\\\\\\\\\\\\\\"text\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"[Activate]\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"color\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"green\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"bold\\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\\"clickEvent\\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\\"action\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"run_command\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"/playsound block.piston.contract block @a ~ ~ ~ 10 1\\\\\\\\\\\\\\\"}}",Text2:"{\\\\\\\\\\\\\\\"text\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"Right-click\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"clickEvent\\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\\"action\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"run_command\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"/fill ~1 ~4 ~1 ~-2 ~-2 ~10 stained_glass 10 replace stained_glass\\\\\\\\\\\\\\\"}}",Text3:"{\\\\\\\\\\\\\\\"text\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"this sign to\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"clickEvent\\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\\"action\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"run_command\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"setblock ~-1 ~-2 ~2 minecraft:repeating_command_block 1 replace {auto:1b,TrackOutput:0}\\\\\\\\\\\\\\\"}}",Text4:"{\\\\\\\\\\\\\\\"text\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"activate machine\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"clickEvent\\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\\"action\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"run_command\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"/say 'Quarry' machine activated!\\\\\\\\\\\\\\\"}}"}},Time:1,DropItem:0}]}]}]}]}]}]}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:redstone_block,Data:0,Time:1,DropItem:0}]}]}]}]}]}]}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:/summon FallingSand ~-1 ~10 ~12 {Block:chain_command_block,Data:0,TileEntityData:{Command:},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:fill ~-1 ~4 ~-9 ~2 ~4 ~1 purpur_slab},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:setblock ~ ~-4 ~-8 minecraft:repeating_command_block 1 replace {auto:1b,powered:0b,TrackOutput:0}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:command_block,Data:0,TileEntityData:{Command:fill ~1 ~1 ~ ~ ~1 ~-1 end_bricks},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:redstone_block,Data:0,Time:1,DropItem:0}]}]}]}]}]}]}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:fill ~ ~3 ~ ~ ~-9 ~ air},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:stained_hardened_clay,Data:9,Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:command_block,Data:0,TileEntityData:{Command:/setblock ~ ~-10 ~ minecraft:repeating_command_block 1 replace {auto:1b,powered:0b,Command:"/gamerule commandBlockOutput false",TrackOutput:0}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:redstone_block,Data:0,Time:1,DropItem:0}]}]}]}]}]}]}]}]}]}]}]} 

15w45a+ (1.9)