Ender Drill
Ender Drill by benfah11011738    0
The Ender Drill! Let the Ender Drill dig down for you. You can break Drills/Excavators with a Redstone Block.
Minecraft 1.9
16717 characters
More by benfah
How to install
Comments
Show source commands
/summon FallingSand ~ ~1 ~ {Block:stone,Time:1,Passengers:[{id:FallingSand,Block:redstone_block,Time:1,Passengers:[{id:FallingSand,Block:activator_rail,Time:1,Passengers:[{id:MinecartCommandBlock,Command:gamerule commandBlockOutput false},{id:MinecartCommandBlock,Command:"fill ~2 ~-3 ~-2 ~8 ~2 ~2 stained_hardened_clay 5 hollow"},{id:MinecartCommandBlock,Command:"fill ~2 ~-2 ~-2 ~8 ~1 ~2 stained_glass 5 replace stained_hardened_clay"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add eeC2 dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add eeC dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add eeIngP dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add eeIngD dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add eeOG dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add excavatorCool dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add eeIngH dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add isExc dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add eeIngR dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add eeIng dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add onBedrock dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add eeC3 dummy"},{id:MinecartCommandBlock,Command:setblock ~1 ~ ~ wall_sign 4 replace {Text1:"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"/tellraw @p [\\\\\\\"\\\\\\\",{\\\\\\\"text\\\\\\\":\\\\\\\"Excavator Tier 1: \\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"green\\\\\\\",\\\\\\\"bold\\\\\\\":true},{\\\\\\\"text\\\\\\\":\\\\\\\"Drop a Diamond Pickaxe on the floor together with one Redstone Block. \\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"none\\\\\\\",\\\\\\\"bold\\\\\\\":false},{\\\\\\\"text\\\\\\\":\\\\\\\"Excavator Item Collector: \\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"green\\\\\\\",\\\\\\\"bold\\\\\\\":true},{\\\\\\\"text\\\\\\\":\\\\\\\"Drop a Hopper and a Dropper together on a floor. \\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"none\\\\\\\",\\\\\\\"bold\\\\\\\":false},{\\\\\\\"text\\\\\\\":\\\\\\\"Excavator Tier 2: \\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"green\\\\\\\",\\\\\\\"bold\\\\\\\":true},{\\\\\\\"text\\\\\\\":\\\\\\\"Drop an Excavator Tier 1 together with a Diamond on a floor\\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"none\\\\\\\",\\\\\\\"bold\\\\\\\":false}]\\\"}}",Text2:"{\\\"text\\\":\\\"Show Recipes\\\",\\\"color\\\":\\\"dark_purple\\\",\\\"bold\\\":true,\\\"underlined\\\":true}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~1 ~-1 chain_command_block 4 replace {auto:1,Command:"/execute @e[tag=excavator,score_excavatorCool_min=1,score_excavatorCool=1] ~ ~-1 ~ /particle portal ~ ~ ~ 0.01 0.01 0.01 0.3 100"}},{id:MinecartCommandBlock,Command:setblock ~7 ~1 ~ chain_command_block 2 replace {auto:1,Command:"/execute @e[tag=excavator,score_excavatorCool_min=19] ~ ~ ~ /playsound minecraft:entity.endermen.teleport @a[r=16] ~ ~ ~ 0.1"}},{id:MinecartCommandBlock,Command:setblock ~6 ~1 ~ chain_command_block 5 replace {auto:1,Command:"/execute @e[type=Item,score_eeIngR_min=1] ~ ~ ~ execute @e[tag=excavator,name=excavatort2] ~ ~ ~ /kill @e[tag=excavator,r=1]"}},{id:MinecartCommandBlock,Command:setblock ~5 ~1 ~ chain_command_block 5 replace {auto:1,Command:"/execute @e[type=Item,score_eeIngR_min=1] ~ ~ ~ execute @e[tag=excavator,name=excavatort2] ~ ~ ~ /summon Item ~ ~ ~ {Item:{id:minecraft:spawn_egg,Count:1b,tag:{ench:[],display:{Name:\\\"Excavator Tier 2\\\"},EntityTag:{id:\\\"Squid\\\",CustomName:\\\"ExcavatorT2\\\",Tags:[\\\"E2\\\"]}}}}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~1 ~ chain_command_block 5 replace {auto:1,Command:"/scoreboard players tag @e[type=Item] add eeR {Item:{id:\\\"minecraft:redstone_block\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~3 ~1 ~ chain_command_block 5 replace {auto:1,Command:"/execute @e[name=excavatort2,score_onBedrock_min=1] ~ ~ ~ kill @e[type=ArmorStand,tag=excavator,r=1]"}},{id:MinecartCommandBlock,Command:setblock ~3 ~1 ~1 chain_command_block 2 replace {auto:1,Command:"/execute @e[name=excavatort2,score_onBedrock_min=1] ~ ~ ~ execute @e[name=excavatoric,c=1] ~ ~ ~ /summon Item ~ ~ ~ {Item:{id:minecraft:spawn_egg,Count:1b,tag:{ench:[],display:{Name:\\\"Excavator Tier 2\\\"},EntityTag:{id:\\\"Squid\\\",CustomName:\\\"ExcavatorT2\\\",Tags:[\\\"E2\\\"]}}}}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~1 ~1 chain_command_block 4 replace {auto:1,Command:"/scoreboard players tag @e[name=excavatort2] add excavator"}},{id:MinecartCommandBlock,Command:setblock ~5 ~1 ~1 chain_command_block 4 replace {auto:1,Command:"/scoreboard players tag @e[name=excavatorhelper] add excavator"}},{id:MinecartCommandBlock,Command:setblock ~6 ~1 ~1 chain_command_block 4 replace {auto:1,Command:"/scoreboard players tag @e[name=excavator] add excavator"}},{id:MinecartCommandBlock,Command:setblock ~7 ~1 ~1 chain_command_block 4 replace {auto:1,Command:"/kill @e[name=ExcavatorT2]"}},{id:MinecartCommandBlock,Command:setblock ~7 ~ ~1 chain_command_block 1 replace {auto:1,Command:"/execute @e[type=Squid,name=ExcavatorT2] ~ ~ ~ /summon ArmorStand ~ ~ ~ {Small:1b,CustomName:\\\"excavatort2\\\",Invisible:1b,Invulnerable:1b,PersistenceRequired:1b,NoBasePlate:1b,ArmorItems:[{},{},{},{id:\\\"skull\\\",Count:1b,Damage:3b,tag:{SkullOwner:{Id:54b9179d-9f40-475b-900e-5262eaea96a7,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNGUzNWFhZGU4MTI5MmU2ZmY0Y2QzM2RjMGVhNmExMzI2ZDA0NTk3YzBlNTI5ZGVmNDE4MmIxZDE1NDhjZmUxIn19fQ==}]}}}}],HandItems:[{},{}],Pose:{Head:[0f,0f,0f]}}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~ ~1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=Squid,name=ExcavatorT2] ~ ~ ~ /summon ArmorStand ~ ~ ~-1 {CustomName:\\\"excavatorhelper\\\",Invisible:1b,Invulnerable:1b,PersistenceRequired:1b}"}},{id:MinecartCommandBlock,Command:setblock ~5 ~ ~1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=Squid,name=ExcavatorT2] ~ ~ ~ /summon ArmorStand ~ ~ ~1 {CustomName:\\\"excavatorhelper\\\",Invisible:1b,Invulnerable:1b,PersistenceRequired:1b}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~ ~1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=Squid,name=ExcavatorT2] ~ ~ ~ /summon ArmorStand ~-1 ~ ~ {CustomName:\\\"excavatorhelper\\\",Invisible:1b,Invulnerable:1b,PersistenceRequired:1b}"}},{id:MinecartCommandBlock,Command:setblock ~3 ~ ~1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=Squid,name=ExcavatorT2] ~ ~ ~ /summon ArmorStand ~1 ~ ~ {CustomName:\\\"excavatorhelper\\\",Invisible:1b,Invulnerable:1b,PersistenceRequired:1b}"}},{id:MinecartCommandBlock,Command:setblock ~3 ~ ~ chain_command_block 3 replace {auto:1,Command:"/execute @e[name=excavator,score_onBedrock_min=1] ~ ~ ~ execute @e[name=excavatoric,c=1] ~ ~ ~ /kill @e[type=ArmorStand,name=excavator,score_onBedrock_min=1]"}},{id:MinecartCommandBlock,Command:setblock ~4 ~ ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[name=excavator,score_onBedrock_min=1] ~ ~ ~ execute @e[name=excavatoric,c=1] ~ ~ ~ /summon Item ~ ~ ~ {Item:{id:minecraft:spawn_egg,Count:1b,tag:{ench:[],display:{Name:\\\"Excavator Tier 1\\\"},EntityTag:{id:\\\"Squid\\\",CustomName:\\\"ExcavatorT1\\\",Tags:[\\\"E1\\\"]}}}}"}},{id:MinecartCommandBlock,Command:setblock ~5 ~ ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[score_eeIngR_min=1] ~ ~ ~ /execute @e[name=excavator,r=1] ~ ~ ~ /kill @e[name=excavator,r=1]"}},{id:MinecartCommandBlock,Command:setblock ~6 ~ ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[score_eeIngR_min=1] ~ ~ ~ /execute @e[name=excavator,r=1] ~ ~ ~ /summon Item ~ ~ ~ {Item:{id:minecraft:spawn_egg,Count:1b,tag:{ench:[],display:{Name:\\\"Excavator Tier 1\\\"},EntityTag:{id:\\\"Squid\\\",CustomName:\\\"ExcavatorT1\\\",Tags:[\\\"E1\\\"]}}}}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~ ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[score_eeIngR_min=1] ~ ~ ~ /execute @e[name=excavatoric,r=1] ~ ~ ~ /kill @e[name=excavatoric,r=1]"}},{id:MinecartCommandBlock,Command:setblock ~7 ~ ~-1 chain_command_block 3 replace {auto:1,Command:"/execute @e[score_eeIngR_min=1] ~ ~ ~ /execute @e[name=excavatoric,r=1] ~ ~ ~ /summon Item ~ ~ ~ {Item:{id:minecraft:spawn_egg,Count:1b,tag:{ench:[],display:{Name:\\\"Excavator Item Collector\\\"},EntityTag:{id:\\\"Squid\\\",CustomName:\\\"ExcavatorIC\\\",Tags:[\\\"EIC\\\"]}}}}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~ ~-1 chain_command_block 5 replace {auto:1,Command:"/kill @e[type=Squid,name=ExcavatorIC]"}},{id:MinecartCommandBlock,Command:setblock ~5 ~ ~-1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=Squid,name=ExcavatorIC] ~ ~ ~ /summon ArmorStand ~ ~ ~ {Small:1b,CustomName:\\\"excavatoric\\\",Invisible:1b,Invulnerable:0b,PersistenceRequired:1b,NoBasePlate:1b,ArmorItems:[{},{},{},{id:\\\"skull\\\",Count:1b,Damage:3b,tag:{SkullOwner:{Id:e9d40407-460c-416a-a0f8-08e4670b0888,Properties:{textures:[{Value:e3RleHR1cmVzOntTS0lOOnt1cmw6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMjVlOTE1MmVmZDg5MmY2MGQ3ZTBkN2U1MzM2OWUwNDc3OWVkMzExMWUyZmIyNzUyYjZmNGMyNmRmNTQwYWVkYyJ9fX0=}]}}}}],HandItems:[{},{}],DisabledSlots:2039583}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~ ~-1 chain_command_block 5 replace {auto:1,Command:"/kill @e[type=Squid,name=ExcavatorT1]"}},{id:MinecartCommandBlock,Command:setblock ~3 ~ ~-1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=Squid,name=ExcavatorT1] ~ ~ ~ /summon ArmorStand ~ ~ ~ {Small:1b,CustomName:\\\"excavator\\\",Invisible:1b,Invulnerable:1b,PersistenceRequired:1b,NoBasePlate:1b,ArmorItems:[{},{},{},{id:\\\"skull\\\",Count:1b,Damage:3b,tag:{SkullOwner:{Id:54b9179d-9f40-475b-900e-5262eaea96a7,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNGUzNWFhZGU4MTI5MmU2ZmY0Y2QzM2RjMGVhNmExMzI2ZDA0NTk3YzBlNTI5ZGVmNDE4MmIxZDE1NDhjZmUxIn19fQ==}]}}}}],HandItems:[{},{}],Pose:{Head:[0f,0f,0f]},Tags:[\\\"EIC\\\"]}"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~-1 chain_command_block 1 replace {auto:1,Command:"/kill @e[type=Item,score_eeC3_min=1]"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-1 ~-1 chain_command_block 4 replace {auto:1,Command:"/execute @e[score_eeC3_min=1,c=1] ~ ~ ~ playsound block.anvil.use @a[r=10] ~ ~ ~ 1"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-1 ~-1 chain_command_block 4 replace {auto:1,Command:"/execute @e[score_eeC3_min=1,c=1] ~ ~ ~ /particle smoke ~ ~ ~ 0.1 0.1 0.1 1 100"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-1 ~-1 chain_command_block 4 replace {auto:1,Command:"/execute @e[score_eeC3_min=1,c=1] ~ ~ ~ /summon Item ~ ~ ~ {Item:{id:minecraft:spawn_egg,Count:1b,tag:{ench:[],display:{Name:\\\"Excavator Item Collector\\\"},EntityTag:{id:\\\"Squid\\\",CustomName:\\\"ExcavatorIC\\\",Tags:[\\\"EIC\\\"]}}}}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-1 ~-1 chain_command_block 4 replace {auto:1,Command:"/execute @e[type=Item,score_eeIngH_min=1,score_eeOG_min=1] ~ ~ ~ execute @e[type=Item,score_eeIngD_min=1,score_eeOG_min=1] ~ ~ ~ scoreboard players set @e[r=1,score_eeOG_min=1,type=Item] eeC3 1"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-1 ~ chain_command_block 2 replace {auto:1,Command:"/scoreboard players set @e[type=Item] eeIngD 1 {Item:{id:\\\"minecraft:dropper\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-1 ~ chain_command_block 5 replace {auto:1,Command:"/scoreboard players set @e[type=Item] eeIngH 1 {Item:{id:\\\"minecraft:hopper\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-1 ~ chain_command_block 5 replace {auto:1,Command:"/kill @e[type=Item,score_eeC2_min=1]"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-1 ~ chain_command_block 5 replace {auto:1,Command:"/execute @e[score_eeC2_min=1,c=1] ~ ~ ~ /particle smoke ~ ~ ~ 0.1 0.1 0.1 1 100"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~ chain_command_block 5 replace {auto:1,Command:"/execute @e[score_eeC2_min=1,c=1] ~ ~ ~ playsound block.anvil.use @a[r=10] ~ ~ ~ 1"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~1 chain_command_block 2 replace {auto:1,Command:"/execute @e[score_eeC2_min=1,c=1] ~ ~ ~ /summon Item ~ ~ ~ {Item:{id:minecraft:spawn_egg,Count:1b,tag:{ench:[],display:{Name:\\\"Excavator Tier 1\\\"},EntityTag:{id:\\\"Squid\\\",CustomName:\\\"ExcavatorT1\\\",Tags:[\\\"E1\\\"]}}}}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-1 ~1 chain_command_block 4 replace {auto:1,Command:"/execute @e[type=Item,score_eeIngP_min=1,score_eeOG_min=1] ~ ~ ~ execute @e[type=Item,score_eeIngR_min=1,score_eeOG_min=1] ~ ~ ~ scoreboard players set @e[r=1,score_eeOG_min=1,type=Item] eeC2 1"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-1 ~1 chain_command_block 4 replace {auto:1,Command:"/scoreboard players set @e[type=Item] eeIngR 1 {Item:{id:\\\"minecraft:redstone_block\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-1 ~1 chain_command_block 4 replace {auto:1,Command:"/scoreboard players set @e[type=Item] eeIngP 1 {Item:{id:\\\"minecraft:diamond_pickaxe\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-1 ~1 chain_command_block 4 replace {auto:1,Command:"/execute @e[score_isExc_min=1,score_eeOG_min=1] ~ ~ ~ execute @e[type=Item,r=1,score_eeIng_min=1,score_eeOG_min=1] ~ ~ ~ kill @e[type=Item,r=1,score_eeOG_min=1,score_eeC_min=1]"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~1 chain_command_block 1 replace {auto:1,Command:"/execute @e[score_eeC_min=1,c=1] ~ ~ ~ /summon Item ~ ~ ~ {Item:{id:minecraft:spawn_egg,Count:1b,tag:{ench:[],display:{Name:\\\"Excavator Tier 2\\\"},EntityTag:{id:\\\"Squid\\\",CustomName:\\\"ExcavatorT2\\\",Tags:[\\\"E2\\\"]}}}}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/execute @e[score_eeC_min=1,c=1] ~ ~ ~ playsound block.anvil.use @a[r=10] ~ ~ ~ 1"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/execute @e[score_eeC_min=1,c=1] ~ ~ ~ /particle smoke ~ ~ ~ 0.1 0.1 0.1 1 100"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/scoreboard players set @e eeOG 0 {OnGround:0b}"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/scoreboard players set @e eeOG 1 {OnGround:1b}"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~ chain_command_block 3 replace {auto:1,Command:"/execute @e[score_isExc_min=1,score_eeOG_min=1] ~ ~ ~ execute @e[type=Item,r=1,score_eeIng_min=1,score_eeOG_min=1] ~ ~ ~ scoreboard players set @e[type=Item,r=1] eeC 1"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/scoreboard players set @e[type=Item] eeIng 1 {Item:{id:\\\"minecraft:diamond\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/scoreboard players set @e[type=Item] isExc 1 {Item:{id:\\\"minecraft:spawn_egg\\\",tag:{display:{Name:\\\"Excavator Tier 1\\\"}}}}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/scoreboard players add @e[tag=excavator] onBedrock 0"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[tag=excavator] ~ ~ ~ detect ~ ~-1 ~ bedrock 0 /scoreboard players set @e[tag=excavator] onBedrock 2"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~-1 chain_command_block 3 replace {auto:1,Command:"/execute @e[tag=excavator] ~ ~1 ~ tp @e[type=Item,tag=!eeR,r=2] @e[type=ArmorStand,name=excavatoric,c=1,r=100]"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"/scoreboard players set @e[tag=excavator,score_excavatorCool_min=20] excavatorCool 0"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=ArmorStand,tag=excavator,score_excavatorCool_min=20,score_onBedrock=0] ~ ~-1 ~ setblock ~ ~ ~ minecraft:air 0 destroy"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"/tp @e[tag=excavator] ~ ~ ~ ~30 ~"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~-1 repeating_command_block 5 replace {auto:1,Command:"/scoreboard players add @e[tag=excavator] excavatorCool 1"}},{id:MinecartCommandBlock,Command:setblock ~ ~ ~1 command_block 0 replace {Command:fill ~ ~-3 ~-1 ~ ~ ~ air}},{id:MinecartCommandBlock,Command:setblock ~ ~-1 ~1 redstone_block},{id:MinecartCommandBlock,Command:kill @e[type=MinecartCommandBlock,r=1]}]}]}]}