To use this command, follow these steps:
- Go to a corner of the area you want to fill.
- Press F3.
- Record your coordinates.
- Move to the opposite corner of the area you want to fill.
- Record the coordinates there.
- Press the “T” key to open the Chat menu, and type /fill [your first coordinates] [your second coordinates].
How to detect players in certain area using command blocks?
If you would like to detect players in a radius around a certain coordinate, instead of a radius around the the command block, you can use a command like this: /testfor @a [x=X,y=Y,z=Z,r=RADIUS] To make this a bit clearer, the X, Y, and Z in the command are the center coordinates of where the command block will test for players.
What’s the range of a command block in Minecraft?
Range 2 is the range a player want for a command block under a floor. Keep in mind that it will produce a globe shaped trigger area (rather than a cube), so a range of 2 makes an approximately 5×5×5 area and a range of 1 makes a 3×3×3 area (more like a + pattern with an extra block above and below the center).
What’s the difference between command block and center block?
As with the non-xyz version range means center block plus range number of blocks around it, which makes sense from a command block (where “just the center block” would mean you have to be standing in the command block) but doesn’t make sense here.
What do you put in a command block?
Out of that command block is a comparator that feeds into another command block that, for me at least, sets a redstone block to power some redstone lamps: This is where you would put the signal input for your door. I stuck a torch on the side of that command block so I could turn the lamps off as I left the area, again using a generic command: