Рет қаралды 162
Today we created a working quarry from the Buildcraft mod in Minecraft with only command blocks! This is a super fun project that brings back the good times I had playing with this mod! Now you can stop digging and just setup and quarry and relax! This is my first version of this quarry and I could make a better one in the future!
Please Subscribe for more mod stuff being done with only commands!
The command:
NOTE: your quarry must be facing south because I'm silly and did not even think about that lol, and your diamond block must be the very last block and not the opposite side as I explained in the video. I have written some solutions if you want to try to fix these!
Quarry:
repeat: execute as @e[tag=quarry] at @s if block ~ ~-1 ~ minecraft:netherite_block if block ~1 ~-1 ~ minecraft:scaffolding if block ~ ~-1 ~-1 minecraft:scaffolding unless block ~-1 ~-1 ~ minecraft:scaffolding run tp @s ~ ~ ~ 90 0
conditional: execute as @e[tag=quarrygo] at @s run tp @e[tag=quarryminer] ~ ~1 ~
conditional: execute at @e[tag=quarryminer] run tag @e[tag=quarry] remove quarrygo
chain: execute as @e[tag=quarrygo] at @s if block ~ ~-1 ~ diamond_block run kill @e[tag=quarryminer,limit=1,sort=nearest]
conditional: execute as @e[tag=quarrygo] at @s if block ~ ~-1 ~ diamond_block run kill @s
chain: execute as @e[tag=quarrygo] at @s if block ^ ^-1 ^1 minecraft:scaffolding run tp @s ~ ~ ~1 ~180 0
conditional: execute as @e[tag=quarrygo] at @s run tp @e[tag=quarryminer] ~ ~-1 ~
conditional: execute at @e[tag=quarryminer] run tag @e[tag=quarry] remove quarrygo
chain: execute as @e[tag=quarrygo] at @s unless block ^ ^-1 ^1 minecraft:scaffolding run tp @s ^ ^ ^1
conditional: execute as @e[tag=quarrygo] at @s run tp @e[tag=quarryminer] ~ ~-1 ~
conditional: execute at @e[tag=quarryminer] run tag @e[tag=quarry] remove quarrygo
Quarryminer:
repeat: execute as @e[tag=quarryminer] at @s unless block ~ ~-1 ~ bedrock run setblock ~ ~-1 ~ air destroy
chain: execute as @e[tag=quarryminer] at @s if block ~ ~-1 ~ bedrock run tag @e[tag=quarry,sort=nearest] add quarrygo
chain: execute as @e[tag=quarryminer] at @s run tp @e[type=item,distance=..5] @e[tag=quarrydeposit,sort=nearest,limit=1]
Extra:
execute as @e[tag=quarry] at @s run data merge entity @s {NoGravity:1}
execute as @e[tag=quarryminer] at @s run data merge entity @s {Invulnerable:1b}
Some issues:
You can go ahead and try to fix them as a way to learn command block stuff.
1: The quarry only works facing south - solution: make the quarry armor stand look at the corner scaffolding and rotate a set amount
2: The end block has to be placed correctly - solution: check if quarry armor stand is on scaffolding and end
3: you need to start the quarryminer command manually... - solution: summon an armor stand with the tag immediately when the player adds quarrygo tag to the quarry armor stand
If you want I can go ahead and fix these issues in the future, I already spent a few weeks on it and I wanted to start on my next command block project! Though these issues except maybe the third one can be easily fixed with even some simple command block knowledge. So if you want to get better at command blocks, then maybe this is something worth playing around with!
Become A Member - / @vivtorsing
My Discord - / discord
Thanks for watching