Fills a specified area of a region with a specific biome.
Usage[]
Because biomes in a world are stored in cells of 4×4×4 blocks, this command is applied on each selected cell instead of each block.
Though biomes are stored in cells, biome boundaries are slightly fiddled with to make them smooth. So the shape of the region whose biome is actually changed is irregular.
The command only changes the biome, but not the blocks in it. For example, changing a forest to a desert with this command will not change the grass blocks to sand and will not plant cacti, but rabbits will spawn in that "desert", that will still look like the forest.
This command is used to attempt to change the biome between the two stone blocks to desert.
Syntax[]
/fillbiome <from> <to> <biome>
The fillbiome command also has an optional alternate syntax when using the replace
option:
/fillbiome <from> <to> <biome> replace <filter>
Arguments[]
<from>
: block_pos and <to>
: block_pos
- The two corners to fill the biome between.
- Must be a block position composed of
<x>
,<y>
and<z>
, each of which must be an integer or a tilde and caret notation.
<biome>
: resource
- Specifies the biome to fill the specified area with. See Biome § Biome IDs for a list of vanilla biome IDs.
- Must be an existing registered resource location in
minecraft:worldgen/biome
registry.
<filter>
: resource_or_tag
- Specifies the biomes in the fill region to be replaced. If not specified, replaces all biomes in the fill region.
- Must be an existing registered resource location or tag in
minecraft:worldgen/biome
registry.
Result[]
Command | Trigger | Java Edition |
---|---|---|
any | the arguments are not specified correctly | Unparseable |
the specified region are unloaded or out of the world | Failed | |
the volume of the specified region is greater than commandModificationBlockLimit gamerule | ||
Otherwise | Successful |
Output[]
Command | Edition | Situation | Success Count | /execute store success ... | /execute store result ... |
---|---|---|---|---|---|
any | Java Edition | On fail | 0 | 0 | 0 |
On success | 1 | 1 | the number of cells whose biomes are replaced |
History[]
Java Edition | |||||
---|---|---|---|---|---|
1.19.3 | 22w46a | Added fillbiome . | |||
Pre-release 1 | /fillbiome now supports a filtered form. | ||||
1.19.4 | 23w03a | Now the limit volume of the source region is controlled by commandModificationBlockLimit gamerule, instead of a hardcoded value 32768. |