You could use a "scratchpad" area, use /fill to clear the "scratchpad" area
/execute at @e run fill 3 2 3 -3 4 -3 minecraft:air replace
then use the /clone command to copy the water and lava to the "scratchpad"
/execute at @e run clone ~3 ~ ~3 ~-3 ~2 ~-3 -3 2 -3 filtered minecraft:water
/execute at @e run clone ~3 ~ ~3 ~-3 ~2 ~-3 -3 2 -3 filtered minecraft:lava
finally use /clone to copy the "scratchpad" (containing only air, water and lava) to the area you want destroyed
/execute at @e run clone 3 2 3 -3 4 -3 ~-3 ~ ~-3
if you want the drops from the destroyed blocks put your fill command in before the final /clone
You might have to freeze the mob to make sure that all the commands are run at the same place unless there is some way to save the position and use that for all 4/5 commands. Though it might not matter too much if the water and lava are moved a block or two.
The Meaning of Life, the Universe, and Everything.
Location:
At Home
Join Date:
6/12/2018
Posts:
55
Member Details
does the clone command need to put the blocks down somewhare and then I clone them from that place an put them where the mob is? or does minecraft save it in code and I can just spawn them in? because I'd like to not have to set a "tamplate" somewhere in the world, maybe I could use structure blocks for that...?
Hi, I have a mob that I want to be able to destroy blocks (Similar to a wither)
I'm using this command (pretend that @e is the mob):
/execute at @e run fill ~3 ~ ~3 ~-3 ~2 ~-3 minecraft:air destroy
however, problem is it destroys water and lava, which is not very realistic,
So. Is there a way to use the fill command but ignore water and lava blocks?
I'm thinking something like this:
/execute at @e run fill ~3 ~ ~3 ~-3 ~2 ~-3 minecraft:air !destroy[minecraft:lava, minecraft:water]
Visit my website to see/download my datapacks!
https://qualthorn.wixsite.com/datapacks
You could use a "scratchpad" area, use /fill to clear the "scratchpad" area
/execute at @e run fill 3 2 3 -3 4 -3 minecraft:air replace
then use the /clone command to copy the water and lava to the "scratchpad"
/execute at @e run clone ~3 ~ ~3 ~-3 ~2 ~-3 -3 2 -3 filtered minecraft:water
/execute at @e run clone ~3 ~ ~3 ~-3 ~2 ~-3 -3 2 -3 filtered minecraft:lava
finally use /clone to copy the "scratchpad" (containing only air, water and lava) to the area you want destroyed
/execute at @e run clone 3 2 3 -3 4 -3 ~-3 ~ ~-3
if you want the drops from the destroyed blocks put your fill command in before the final /clone
You might have to freeze the mob to make sure that all the commands are run at the same place unless there is some way to save the position and use that for all 4/5 commands. Though it might not matter too much if the water and lava are moved a block or two.
Just testing.
does the clone command need to put the blocks down somewhare and then I clone them from that place an put them where the mob is? or does minecraft save it in code and I can just spawn them in? because I'd like to not have to set a "tamplate" somewhere in the world, maybe I could use structure blocks for that...?
Visit my website to see/download my datapacks!
https://qualthorn.wixsite.com/datapacks