Minecraft:Root System
More actions
Template:WipTemplate:Infobox structure
A root system is a Minecraft:feature that spawns below naturally generated Minecraft:azalea trees.
Generation
A root system is a mess of Minecraft:rooted dirt blocks in a clump.
Data values
ID
Template:El: Template:ID table
Config
If the initial position is not air, root system fails to place. Root system checks every position, starting from the initial position and moving upward by Template:Nbt blocks.
If it goes above the WORLD_SURFACE heightmap, root system fails to place.
At each position in order:
- If the amount of air and water blocks above the position is less than Template:Nbt or the highest water block is higher than Template:Nbt, the position is not valid;
- Template:Nbt Minecraft:block predicate;
- If Template:Nbt is not 0, in each cardinal direction with an offset Template:Nbt by XZ 2 points are checked with offset Template:Nbt by Y above and below. If below point is air or above point is not air, the position is not valid. That means if Template:Nbt is set to 0, this check will always fail;
- If below block is lava or not solid, the position is not valid;
- If Template:NbtTemplate:Nbt fails to place, the position is not valid.
After a position is found, roots are placed within a Template:Nbt along XZ Template:Nbt times. They can replace only Template:NbtTemplate:Nbt blocks. After roots are placed, hanging roots are placed within a radius, defined by Template:Nbt along XZ and Template:Nbt along Y Template:Nbt times. If a block is air, then Minecraft:block predicates has_sturdy_face above and would_survive are applied.
<section begin="config"/>
- Template:Nbt
- Template:Nbt Value between 1 and 64 (inclusive).
- Template:Nbt Value between 0 and 16 (inclusive).
- Template:Nbt Value between 0 and 64 (inclusive).
- Template:Nbt Value between 1 and 64 (inclusive).
- Template:Nbt Value between 1 and 256 (inclusive).
- Template:Nbt Value between 1 and 4096 (inclusive).
- Template:Nbt Value between 1 and 64 (inclusive).
- Template:Nbt Value between 1 and 16 (inclusive).
- Template:Nbt Value between 1 and 256 (inclusive).
- Template:Nbt Value between 1 and 64 (inclusive).
- Template:NbtTemplate:Nbt A block ID or a list of IDs, or tag with
#specifying which blocks can be replaced by the root column. - Template:Nbt The block to use for the root column.
- Template:Nbt The block to use hanging below the root column.
- Template:Nbt The Minecraft:block predicate used to check if the tree position is valid.
- Template:NbtTemplate:Nbt The Minecraft:placed feature to place on top of the root system. Can be an ID of a placed feature, or a placed feature object.
<section end="config"/>
Template:Collapse <syntaxhighlight lang="json"> {
"type": "minecraft:root_system",
"config": {
"required_vertical_space_for_tree": 3,
"level_test_distance": 0,
"max_level_deviation": 0,
"root_radius": 3,
"root_placement_attempts": 20,
"root_column_max_height": 100,
"hanging_root_radius": 3,
"hanging_roots_vertical_span": 2,
"hanging_root_placement_attempts": 20,
"allowed_vertical_water_for_tree": 2,
"root_replaceable": "#minecraft:azalea_root_replaceable",
"root_state_provider": {
"type": "minecraft:simple_state_provider",
"state": {
"Name": "minecraft:rooted_dirt"
}
},
"hanging_root_state_provider": {
"type": "minecraft:simple_state_provider",
"state": {
"Name": "minecraft:hanging_roots",
"Properties": {
"waterlogged": "false"
}
}
},
"allowed_tree_position": {
"type": "minecraft:true"
},
"feature": {
"feature": "minecraft:azalea_tree",
"placement": []
}
}
} </syntaxhighlight> Template:Collapse
History
Java Edition
Bedrock Edition
Issues
References
Template:Navbox generated features
Minecraft:fr:Système racinaire Minecraft:ja:root_system Minecraft:pt:Sistema de raízes