Minecraft – can’t use /fill in a command block

minecraft-commandsminecraft-java-edition

Just asking if it is possible to use the /fill command in a command block or if i have just written it wrong…..

pls answer,
thanks

Shows /Fill command not working?

Best Answer

Yes, it is possible to use the fill command in command blocks, yes, you might have written it wrong.


In my command blocks I type commands without the preceding /, so I'd type:

fill <x1> <y1> <z1> <x2> <y2> <z2> <TileName>

Also, I'm guessing you were meant to use relative coordinates, coordinates which, in your case, will fill an area near the command block.

Try this command instead:

fill ~16 ~ ~7 ~1 ~ ~19 air

This will fill an area starting 1 block West and 19 blocks South of the command block, to 16 blocks West, 7 blocks South, with air.