How To Set Blocks To Air In Minecraft
sentry 28:07
Minecraft Interactive Experience
Fills all or parts of a region with a specific block.
Syntax [ ]
- Java Edition
-
fill <from> <to> <block> [destroy|hollow|keep|outline|replace] - The fill command as well has an optional alternating syntax when using the
replacechoice: -
make full <from> <to> <block> supervene upon [<filter>]
- Bedrock Edition
-
fill <from: x y z> <to: x y z> <tileName: Block> [tileData: int] [oldBlockHandling: FillMode] -
fill <from: 10 y z> <to: x y z> <tileName: Block> [blockStates: block states] [oldBlockHandling: FillMode] - The fill up control too has an optional alternate syntax for
supercedemanner: -
fill <from: 10 y z> <to: ten y z> <tileName: Block> <tileData: int> replace [replaceTileName: Cake] [replaceDataValue: int] -
make full <from: 10 y z> <to: x y z> <tileName: Block> <blockStates: block states> replace [replaceTileName: Block] [replaceBlockStates: block states]
Arguments [ ]
JE: <from>: block_pos and <to>: block_pos
BE: from: 10 y z: CommandPosition and to: x y z: CommandPosition
- Specifies whatever two opposing corner blocks of the region to be filled (the "fill region").
- In Java Edition, information technology must be a block position composed of <x>, <y> and <z>, each of which must be an integer or a tilde and caret notation. In Bedrock Edition, it must be a 3-dimensional coordinates composed of <ten>, <y> and <z>, each of which must be a floating-point number or tilde and caret notation.
- Block position is the coordinates of the signal at the lower northwest corner of a block. Because of this, the lesser coordinates of each axis are on the region boundary, but the greater coordinates are one cake from the boundary, and the block volume of the source region is (xgreater - 10lesser + 1) × (ygreater - ylesser + i) × (zgreater - zlesser + one). For example,
0 0 0 0 0 0has a one-block volume, and0 0 0 ane one 1andone 1 1 0 0 0both identify the same region with an 8-cake volume.
JE:<block>: block_state
BE: tileName: Block: enum
- Specifies the block to fill the region with.
- In Java Edition, it must exist in form of
block_id[block_states]{data_tags}(does non accept block tags), in which block states and data tags can be omitted when they are not needed. In Bedrock Edition, it must exist a cake id.
Exist: tileData: int: int
- Specifies the block data to use for the fill block. Values that are invalid for the specified cake id revert to 0. If not specified, defaults to 0.
- Must be a 32-chip integer number. It should be between 0 and 65535 (inclusive).
Exist: blockStates: block states: BlockStateCommandParam
- Specifies the block states to use for the block.
- Must be a blockstate argument as
["<state1>":<value1>,"<state2>":<value2>,...]. For example:["old_leaf_type":"birch","persistent_bit":truthful].
JE: destroy|hollow|keep|outline|replace
Exist: oldBlockHandling: FillMode: enum
-
-
destroy- Replaces all blocks (including air) in the make full region with the specified cake, dropping the existing blocks (including those that are unchanged) and block contents as entities every bit if they had been mined with an unenchanted diamond shovel or pickaxe. (Blocks that can be mined simply with shears, such every bit vines, do non drop; neither exercise liquids.) -
hollow- Replaces simply the blocks on the outer edge of the make full region with the specified block. Inner blocks are changed to air, dropping their contents equally entities but not themselves. If the fill region has no inner blocks (because it is smaller than three blocks in at least one dimension), acts likereplace. -
go on- Replaces only the air blocks in the fill region with the specified block. -
outline- Replaces only the blocks on the outer edge of the fill up region with the specified block. Inner blocks are non afflicted. If the make full region has no inner blocks (considering information technology is smaller than three blocks in at to the lowest degree one dimension), acts likesupervene upon. -
replace- Replaces all blocks (including air) in the fill up region with the specified block, without dropping blocks or block contents as entities. Optionally, instead of specifying a data tag for the replacing cake, cake ID and data values may be specified to limit which blocks are replaced.
-
- If non specified, defaults to
supervene upon.
JE:<filter>: block_predicate
Exist: tileName: Block: enum
- Specifies the ID of the blocks in the fill region to exist replaced. If not specified, replaces all blocks in the fill up region.
- In Java Edition, it must be in form of
block_id[block_states]{data_tags}(accepts block tags), in which cake states and data tags tin can exist omitted when they are not needed. In Bedrock Edition, information technology must be a block id.
BE: replaceDataValue: int: int
- Specifies the block data to match when finding blocks to clone. Values (bitwise AND 0xFFFF) that are invalid for the specified cake id revert to 0. If
-aneor not specified, all blocks that lucifertileName: Cakeare filled. - Must be a 32-bit integer number. It must exist between -2147483648 and 2147483647 (inclusive).
BE: replaceBlockStates: block states: BlockStateCommandParam
- Specifies the block states to utilise for the cake to exist replaced.
- Must be a blockstate statement as
["<state1>":<value1>,"<state2>":<value2>,...]. For case:["old_leaf_type":"birch","persistent_bit":true].
Result [ ]
| Command | Trigger | Coffee Edition | Boulder Edition |
|---|---|---|---|
| any | the arguments are non specified correctly | Unparseable | Unparseable |
| i or both sepicified positions are unloaded or out of the world | Failed | Failed | |
| the book of the source region is greater than 32768 (the equivalent of viii chunk sections) | |||
tileData: int is lower than 0 or higher than 65535 | N/A | ||
/fill ... hollow | no block is changed | Failed | |
/make full ... destroy | there is no block changed in the fill region | ||
| the specified block is air | |||
| whatever | On success | Changes blocks in the fill region to the specified block. | |
Output [ ]
| Command | Edition | Situation | Success Count | /execute store success ... | /execute shop result ... |
|---|---|---|---|---|---|
| any | Java Edition | On fail | 0 | 0 | 0 |
/fill ... hollow | On success | 1 | one | the number of blocks inverse in the fill region | |
/fill ... destroy | On success | ane | 1 | the number of blocks changed in the fill region | |
| any | Bedrock Edition | On fail | 0 | N/A | Northward/A |
| On success | 1 | N/A | N/A |
Examples [ ]
-
/fill up 52 63 -1516 33 73 -1536 minecraft:gold_block supervene upon minecraft:orange_glazed_terracotta[ Coffee Edition only ] -
/fill 52 63 -1516 33 73 -1536 gold_block 0 replace orange_glazed_terracotta[ Boulder Edition only ]- Replaces all the orangish glazed terracotta in the selected area with aureate blocks.
-
/make full ~-3 ~-three ~-iii ~3 ~-ane ~three h2o- Replaces the blocks in a 7x3x7 region directly beneath the command execution's location with water.
-
/fill ~-3 ~ ~-four ~3 ~4 ~4 minecraft:rock hollow[ Java Edition only ] -
/fill ~-3 ~ ~-4 ~3 ~4 ~4 stone 0 hollow[ Boulder Edition simply ]- Creates a business firm-sized box effectually the command execution'due south location, replacing any blocks that would have been within the box with air.
-
/fill ~-15 ~-fifteen ~-15 ~15 ~15 ~fifteen stone- Creates a solid cube of stone centered on the control execution's location.
-
/make full ~-1 ~ ~ ~one ~ ~ minecraft:prismarine_brick_stairs[facing=south,waterlogged=true]- Replaces the specific blocks effectually the command execution'due south location with waterlogged prismarine brick stairs facing south.
History [ ]
| Java Edition | |||||
|---|---|---|---|---|---|
| 1.8 | 14w03a | Added /fill. | |||
| 1.11 | 16w32a | Added block state back up to /fill. | |||
| Pocket Edition Alpha | |||||
| v0.16.0 | build one | Added /make full. | |||
| Bedrock Edition | |||||
| 1.16.210 | beta 1.16.210.53 | Added block country back up to /fill. | |||
Source: https://minecraft.fandom.com/wiki/Commands/fill

0 Response to "How To Set Blocks To Air In Minecraft"
Post a Comment