Vegetation Patch
Vegetation patch is a feature that places some vegetation in the lush caves biome.
Vegetation patch is placed in columns, one column for each XZ position, placed separately. Rectangle of available XZ positions is defined by [Int][NBT Compound / JSON Object] xz_radius. For each XZ position feature starts searching for [Int] vertical_range blocks either up or down for closest available position, starting from Y, where feature has been placed. It can fail to generate only if all columns fail to generate.
Depending on [String] surface feature will change direction of its search and available position:
| Biomes | |||
|---|---|---|---|
| Generates in existing chunks |
Yes | ||
| Consists of |
|
Vegetation patch is a feature that places some vegetation in the lush caves biome.
Data values
ID
| Feature type | Identifier |
|---|---|
| [No displayed name] | vegetation_patch |
| [No displayed name] | waterlogged_vegetation_patch |
| Configured feature | Identifier |
|---|---|
clay_with_dripleaves |
|
moss_patch |
|
moss_patch_bonemeal |
|
moss_patch_ceiling |
| Feature | Identifier |
|---|---|
clay_with_dripleaves_feature |
|
moss_patch_feature |
|
moss_patch_bonemeal_feature |
|
moss_patch_snap_to_floor_feature |
|
moss_ceiling_feature |
|
moss_ceiling_snap_to_ceiling_feature |
Config
Vegetation patch is placed in columns, one column for each XZ position, placed separately. Rectangle of available XZ positions is defined by [Int][NBT Compound / JSON Object] xz_radius. For each XZ position feature starts searching for [Int] vertical_range blocks either up or down for closest available position, starting from Y, where feature has been placed. It can fail to generate only if all columns fail to generate.
Depending on [String] surface feature will change direction of its search and available position:
floor- available position is air 1 block above the block from [String] replaceable tag. If search starts in air, feature will search down, otherwise - up.ceiling- available position is air 1 block below the block from [String] replaceable tag. If search starts in air, feature will search up, otherwise - down.
After search is completed and available position is found, column of blocks is placed. It replaces blocks from [String] replaceable tag for either amount of blocks set in [Int][NBT Compound / JSON Object] depth or until the first instance of non replacable, or same block, that is chosen by [NBT Compound / JSON Object] ground_state (state of block is ignored).
After that feature, defined in [String][NBT Compound / JSON Object] vegetation_feature is generated on the found available position.
- [NBT Compound / JSON Object] config
- [String] surface The surface to place on. One of
floor, orceiling - [Int][NBT Compound / JSON Object] depth Value between 1 and 128 (inclusive). Amount of blocks, that should be replaced by column.
- Int provider see Template:Nbt inherit/int_provider/template
- [Int] vertical_range Value between 1 and 256 (inclusive). Y radius in which column should search for available placement.
- [Float] extra_bottom_block_chance Value between 0.0 and 1.0 (inclusive). Chance to add 1 to [Int][NBT Compound / JSON Object] depth.
- [Float] extra_edge_column_chance Value between 0.0 and 1.0 (inclusive). Chance to add search position adjacent to initial rectangle.
- [Float] vegetation_chance Value between 0.0 and 1.0 (inclusive). The chance of placing [String][NBT Compound / JSON Object] vegetation_feature on found available position.
- [Int][NBT Compound / JSON Object] xz_radius XZ radius for searching available positions. Also note that the even though the x and z axes share the same integer provider, they are sampled individually, for example, if a
uniformtype integer provider is used for the [Int][NBT Compound / JSON Object] xz_radius with a min of 2 and a max of 8, the x radius could be 6 while the z radius could be 3. Specifying unique X and Z values isn't possible.- Int provider see Template:Nbt inherit/int_provider/template
- [String] replaceable A block tag with
#specifying which blocks can be replaced by the column. - [NBT Compound / JSON Object] ground_state The block, used for generating column.
- Block state provider see Template:Nbt inherit/block state provider/template
- [String][NBT Compound / JSON Object] vegetation_feature The placed feature to place on found available position. Can be a placed feature ID, or a placed feature object.
- [String] surface The surface to place on. One of
{
"type": "minecraft:vegetation_patch",
"config": {
"depth": 1,
"extra_bottom_block_chance": 0.0,
"extra_edge_column_chance": 0.3,
"ground_state": {
"type": "minecraft:simple_state_provider",
"state": {
"Name": "minecraft:moss_block"
}
},
"replaceable": "#minecraft:moss_replaceable",
"surface": "floor",
"vegetation_chance": 0.8,
"vegetation_feature": {
"feature": "minecraft:moss_vegetation",
"placement": []
},
"vertical_range": 5,
"xz_radius": {
"type": "minecraft:uniform",
"value": {
"max_inclusive": 7,
"min_inclusive": 4
}
}
}
}
History
Issues
Issues relating to "Vegetation Patch" are maintained on the bug tracker. Issues should be reported and viewed there.
Navigation
| |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||