Minecraft:Template pool
More actions
A template pool is a group of structure pieces of Minecraft:jigsaw structures. A structure piece is a Minecraft:structure template, a Minecraft:placed feature, or a combination of multiple other pieces. During generation, pieces are randomly selected from the pool. Template pools are configured using Minecraft:JSON files stored within a data pack in the folder Template:Cd or a addon at Template:Cd.
JSON format
- Template:Nbt The root tag.
- Template:Nbt: Template:Json ref — Used for terminating pieces (such as the end of a village road) or as fallback if structures in this pool can't generate. (Note that empty pool elements don't trigger this, they just generate nothing.)
- Template:Nbt: A list of elements to randomly select from.
- Template:Nbt: An element.
- Template:Nbt: How likely this element is to be chosen when using this pool. Value between 1 and 150 (inclusive).
- Template:Nbt: A pool element.
- Template:Nbt: The type of the pool element. See Template:Slink.
- Template:Nbt: Can be Template:Cd to place a fixed structure (like a house), or Template:Cd to match the terrain height (like a village road).
- Additional fields depending on Template:Nbt. See Template:Slink.<section end="json format" />
- Template:Nbt: An element.
- Template:Nbt The root tag.
- Template:Nbt: Template:More info
- Template:Nbt
- Template:Nbt
- Template:Nbt: The identifier used for this template pool.
- Template:Nbt: Template:Json ref — Used for terminating pieces (such as the end of a village road) or as fallback if structures in this pool can't generate. (Note that empty pool elements don't trigger this, they just generate nothing.)
- Template:Nbt: A list of elements to randomly select from.
- Template:Nbt: An element.
- Template:Nbt: How likely this element is to be chosen when using this pool. Value between 1 and 150 (inclusive).
- Template:Nbt: A pool element.
- Template:Nbt: The type of the pool element. See Template:Slink.
- Template:Nbt: Can be Template:Cd to place a fixed structure (like a house), or Template:Cd to match the terrain height (like a village road).
- Additional fields depending on Template:Nbt. See Template:Slink.
- Template:Nbt: An element.
- Template:Nbt
<section end="json format" />
Pool elements
A pool element represents a single piece of a Minecraft:jigsaw structure.
Single pool element
This piece places a single Minecraft:structure template. The jigsaw blocks in the template are used for connections and the size of the template determines the bounding box of the piece. The template gets processed using a Minecraft:processor list.
- Template:Nbt: The element
- Template:Nbt: Template:Cd
- Template:Nbt: See above.
- Template:Nbt: Template:Json ref — The template to place
- Template:NbtTemplate:NbtTemplate:Nbt: Template:Json ref — The processors that should modify the template.
- Template:NbtTemplate:Only: Overrides the Template:Cd value in structure definition for this particular element. See Minecraft:Jigsaw_structure#Data_values.
Legacy single pool element
Template:Exclusive This is a legacy version of the single pool element that doesn't place any air blocks in the template, instead keeping the original block of the world.
- Template:Nbt: The element
- Template:Nbt: Template:Cd
- Template:Nbt: See above.
- Template:Nbt: Template:Json ref — The template to place
- Template:NbtTemplate:NbtTemplate:Nbt: Template:Json ref — The processors that should modify the template.
Feature pool element
Template:Exclusive This piece places a Minecraft:placed feature. The bounding box of the piece is 1×1×1 blocks. The piece gets connected to its parent piece as if it had a jigsaw block that faces downwards with the name Template:Cd.
Feature will always attempt to spawn if jigsaw Template:Cd is set to Template:Cd. If Template:Cd is set to Template:Cd, then a feature will attempth to spawn only when structure rotation upon generation is corresponding to jigsaw Template:Cd in next cases: 0°=Template:Cd, 90°=Template:Cd, 180°=Template:Cd, 270°=Template:Cd.
- Template:Nbt: The element
- Template:Nbt: Template:Cd
- Template:Nbt: See above.
- Template:Nbt: Template:Json ref — The feature to place.
List pool element
Template:Exclusive This piece places multiple pool elements in sequence. The first element is connected using a jigsaw block, further elements are placed with their starting point at (0,0,0) of the bounding box of the first element using the same rotation. If an element fails to generate, then it and all further elements are discarded. The bounding box of the piece is the smallest box that contains all element bounding boxes. This piece cannot generate any further child pieces.
- Template:Nbt: The element
- Template:Nbt: Template:Cd
- Template:Nbt: See above.
- Template:Nbt: A list of elements to choose from.
- Template:Nbt: A pool element.
Empty pool element
This piece doesn't place anything.
- Template:Nbt: The element
- Template:Nbt: Template:Cd
- Template:Nbt: See above. Template:Only
External links
Template:Navbox Java Edition technical
Minecraft:de:Vorlagenpool Minecraft:fr:Groupe de modèles Minecraft:pt:Conjunto de modelos Minecraft:zh:模板池