The Meaning of Life, the Universe, and Everything.
Location:
At Home
Join Date:
6/12/2018
Posts:
55
Member Details
Is there a way to combine the destroy and replace prefix in the fill command?
aka can you replace a certain block in an area and have them drop their loot_table
example:
/fill ~1 ~-1 ~1 ~-1 ~-1 ~-1 air replace #minecraft:dirt_like
this will replace all dirt_like blocks in a 3x3 area underneath the player
/fill ~1 ~-1 ~1 ~-1 ~-1 ~-1 air destroy
and this will replace all blocks in a 3x3 area underneath the player, dropping them as their respective item entity (grass_blocks will drop dirt and so on)
now, can I combine these so it only replaces dirt_like blocks and drops them as item entities?
Is there a way to combine the destroy and replace prefix in the fill command?
aka can you replace a certain block in an area and have them drop their loot_table
example:
/fill ~1 ~-1 ~1 ~-1 ~-1 ~-1 air replace #minecraft:dirt_like
this will replace all dirt_like blocks in a 3x3 area underneath the player
/fill ~1 ~-1 ~1 ~-1 ~-1 ~-1 air destroy
and this will replace all blocks in a 3x3 area underneath the player, dropping them as their respective item entity (grass_blocks will drop dirt and so on)
now, can I combine these so it only replaces dirt_like blocks and drops them as item entities?
Visit my website to see/download my datapacks!
https://qualthorn.wixsite.com/datapacks
Heyo!
as far as I know there is no way to detect all nine blocks under the player with out a /fill replace command so you'll have to use 9 'if' statements.
^this only triggers if all nine blocks are #dirt_like
if you need individual commands thats pretty much the same thing
oh, wow
So my plan was to destroy everything around a giant, which is a 5x15x5 area, so that means I'll need 375 commands!
Is there no other way?
thanks btw! that was useful infromation
Visit my website to see/download my datapacks!
https://qualthorn.wixsite.com/datapacks