Minecraft:Vegetation Patch
More actions
Template:Distinguish Template:Infobox structure
Vegetation patch is a Minecraft:feature that places some vegetation in the Minecraft:lush caves biome.
Data values
ID
Template:El: Template:ID table Template:ID table
Template:ID table Template:ID table Template:ID table Template:ID table
Template:El: Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table
Config
Vegetation patch is placed in columns, one column for each XZ position, placed separately. Rectangle of available XZ positions is defined by Template:NbtTemplate:Nbt. For each XZ position feature starts searching for Template:Nbt 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 Template:Nbt feature will change direction of its search and available position:
floor- available position is air 1 block above the block from Template:Nbt tag. If search starts in air, feature will search down, otherwise - up.ceiling- available position is air 1 block below the block from Template:Nbt 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 Template:Nbt tag for either amount of blocks set in Template:NbtTemplate:Nbt or until the first instance of non replacable, or same block, that is chosen by Template:Nbt (state of block is ignored).
After that feature, defined in Template:NbtTemplate:Nbt is generated on the found available position.
<section begin="config"/>
- Template:Nbt
- Template:Nbt The surface to place on. One of
floor, orceiling - Template:NbtTemplate:Nbt Value between 1 and 128 (inclusive). Amount of blocks, that should be replaced by column.
- Template:Nbt Value between 1 and 256 (inclusive). Y radius in which column should search for available placement.
- Template:Nbt Value between 0.0 and 1.0 (inclusive). Chance to add 1 to Template:NbtTemplate:Nbt.
- Template:Nbt Value between 0.0 and 1.0 (inclusive). Chance to add search position adjacent to initial rectangle.
- Template:Nbt Value between 0.0 and 1.0 (inclusive). The chance of placing Template:NbtTemplate:Nbt on found available position.
- Template:NbtTemplate:Nbt 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 Template:NbtTemplate:Nbt 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. - Template:Nbt A block tag with
#specifying what blocks column can replace. - Template:Nbt The block, used for generating column.
- Template:NbtTemplate:Nbt The Minecraft:placed feature to place on found available position. Can be a placed feature ID, or a placed feature object.
- Template:Nbt The surface to place on. One of
<section end="config"/>
Template:Collapse <syntaxhighlight lang="json"> {
"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
}
}
}
} </syntaxhighlight> Template:Collapse
History
Issues
Template:Navbox generated features
Minecraft:fr:Parcelle de végétation Minecraft:ja:繁茂した粘土池 Minecraft:lzh:埴鱗 Minecraft:pt:Mancha de vegetação Minecraft:zh:多叶黏土层