Quarries in vanilla minecraft! If you dont know what a quarry is its a automatic mining machine.How you get a quarry is by throwing a iron block and a hopper on the ground. this command was tested on minecraft 15w44b. The only limit is that you should not spawn a quarry in a 50 meter radius.
How to install
How to import this command into your world
First, you must give yourself a command block (If you are on a server, you must be 'OP'ed, and have access to /gamemode 1)
To get a command block, type
/give @p command_block in the chat.
Once you have a command block, right click it to open it's GUI.
Now, you must copy and paste the command from your browser into the game. Select the entire command from below, then right click and press 'copy'.
Next, go back to your minecraft world, and paste the command you just copied into the command block. There are a few different keys that may be used to do this, depending on your keyboard. The most common ones are 'CTRL + V', 'COMMAND + V', or 'STRG + V'
Finally, you can press done to exit the GUI, and execute the command block by powering it with a redstone block, a lever, or any thing you can get your grubby hands on. Just make sure you don't place it on top of the command block, or the machine will not be installed!
Show source commands
# This user did not upload the 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 ~-1 ~2 iron_block 0 hollow"},{id:MinecartCommandBlock,Command:"fill ~2 ~-2 ~-2 ~8 ~-2 ~2 stained_glass 0 replace iron_block"},{id:MinecartCommandBlock,Command:"/tellraw @a {\"text\":\"Quarry Vanilla Mod Successfully Installed\",:color\":\"green\"}"},{id:MinecartCommandBlock,Command:"/tellraw @a {\"text\":\"To Craft A Quarry, Throw A Iron Block And A Hopper On The Ground\",\"color\":\"red\"}"},{id:MinecartCommandBlock,Command:"scoreboard objectives add COgACv_I dummy"},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/execute @e[name=Q2] ~ ~ ~ /setblock ~ ~-1 ~ air"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~ chain_command_block 3 replace {auto:1,Command:"/execute @e[name=Q1] ~ ~ ~ /spreadplayers ~ ~ 1 2 false @e[name=Q2,r=20]"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~ chain_command_block 12 replace {auto:1,Command:"/kill @e[name=QuarryBox]"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~ chain_command_block 12 replace {auto:1,Command:"/execute @e[name=QuarryBox] ~ ~ ~ /tellraw @p {\\\"text\\\":\\\"You started a quarry\\\",\\\"color\\\":\\\"green\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~ chain_command_block 12 replace {auto:1,Command:"/execute @e[name=QuarryBox] ~ ~ ~ /summon ArmorStand ~ ~ ~ {CustomName:Q2,CustomNameVisible:1}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[name=QuarryBox] ~ ~ ~ /summon ArmorStand ~ ~ ~ {CustomName:Q1,CustomNameVisible:1}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~-1 chain_command_block 3 replace {auto:1,Command:""}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"execute @e[score_COgACv_I_min=9,score_COgACv_I=9] ~ ~ ~ execute @e[score_COgACv_I_min=10,score_COgACv_I=10,r=1] ~ ~ ~ kill @e[type=Item,r=3,score_COgACv_I_min=9,score_COgACv_I=11]"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"execute @e[score_COgACv_I_min=9,score_COgACv_I=9] ~ ~ ~ execute @e[score_COgACv_I_min=10,score_COgACv_I=10,r=1] ~ ~ ~ summon Item ~ ~0.5 ~ {Item:{id:minecraft:spawn_egg,tag:{display:{Name:\\\"QuarryBox\\\",Lore:[Place to spawn a quarry]},EntityTag:{id:\\\"Bat\\\"}},Count:1}}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"scoreboard players set @e COgACv_I 10 {Item:{id:minecraft:hopper},OnGround:1b}"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~-1 repeating_command_block 5 replace {auto:1,Command:"scoreboard players set @e COgACv_I 9 {Item:{id:minecraft:iron_block},OnGround:1b}"}},{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]}]}]}]}