1
Command block help
I am currently in the making of a semi-modded Vanilla skyblock map (if you want to go see it is in my profile) but i want to add kind of like a auto-cobblestone generator machine. In other builds ive seen where if someone builds a certain structure its sets off different commands. So i kind of want to make it where if you set a chest next to cobblestone, it breaks the cobblestone and places it inside the chest but idk how pls help.
P.S. i dont want it where it has to be at a certain coordinate.
P.S. i dont want it where it has to be at a certain coordinate.
3
1. Make a marker armor stand invisible inside all chests of this type when they are created.
2. Write out a bunch of execute setblock destroys for each block around it you want to destroy /execute @e[type=ArmorStand,name=blah] ~ ~ ~ detect ~1 ~ ~ cobblestone -1 /setblock ~1 ~ ~ air 0 destroy
3. Create a scoreboard for items i.e. ItemID
4. /execute @e[type=ArmorStand,name=blah] ~ ~ ~ /scoreboard players set @e[type=Item,r=1] ItemID 1 {Item:{id:"minecraft:cobblestone"},Age:0s}
5. /execute @e[type=Item,score_ItemID_min=1] ~ ~ ~ /execute @e[type=ArmorStand,name=blah,r=1] ~ ~ ~ /summon MinecartHopper ~ ~1 ~ {TransferCooldown:0}
6. /execute @e[type=ArmorStand,name=blah] /tp @e[type=Item,r=1,score_ItemID_min=1] @e[type=MinecartHopper,r=1,c=1]
have not tested yet
2. Write out a bunch of execute setblock destroys for each block around it you want to destroy /execute @e[type=ArmorStand,name=blah] ~ ~ ~ detect ~1 ~ ~ cobblestone -1 /setblock ~1 ~ ~ air 0 destroy
3. Create a scoreboard for items i.e. ItemID
4. /execute @e[type=ArmorStand,name=blah] ~ ~ ~ /scoreboard players set @e[type=Item,r=1] ItemID 1 {Item:{id:"minecraft:cobblestone"},Age:0s}
5. /execute @e[type=Item,score_ItemID_min=1] ~ ~ ~ /execute @e[type=ArmorStand,name=blah,r=1] ~ ~ ~ /summon MinecartHopper ~ ~1 ~ {TransferCooldown:0}
6. /execute @e[type=ArmorStand,name=blah] /tp @e[type=Item,r=1,score_ItemID_min=1] @e[type=MinecartHopper,r=1,c=1]
have not tested yet
If you executed a summon command with an invisible entity the runs /fill ~1 ~ ~1 ~-1 ~ ~-1 air 0 destroy, but this would not work cuz it would destroy the chest and... To make it short, you can't do this. I honestly think it's better if it doesn't work that way.
Hm. To be honest, i'm not sure this is possible. You can use /fill to replace it with air, however the block will not drop.
