Template Pool Element Types - Apollounknowndev/lithostitched GitHub Wiki
delegating
The delegating pool element type holds all custom pool element functionality in Lithostitched.
{
"element_type": "lithostitched:delegating",
"delegate": {
"element_type": "minecraft:single_pool_element",
"projection": "rigid",
"location": "example:dungeon/rare_room",
"processors": "minecraft:empty"
},
"allowed_depth": [2, 20],
"max_count": 3,
"override_terrain_adaption": "bury"
}
delegate: The pool element that will actually be placed in the world. This is the only required field.allowed_depth: The jigsaw depth values the piece can generate in, as an integer range (64,[64,96],{"min_inclusive":64,"max_inclusive":96}).forced_count: The number of times this element should be forced to generate, as an integer above 0. Cannot be used withmax_count.max_count: The maximum number of times this element can generate, as an integer at or above 0. Cannot be used withforced_count.override_terrain_adaption: The terrain adaption this piece should use, taking precedent over the structure's terrain adaption. Cannone,beard_thin,beard_box,bury, orencapsulate(last is only present on 1.21+).name: An optional resource location. When calculating the number of a pool element placed in a structure, elements with thenamefield will count as the same element.allow_bounding_box_collisions: An optional boolean. When true, the element can place even if it would collide with other elements in the structure. Handle with care!other_pieces_can_intersect: An optional boolean. When true, other elements can place even if they would collide with this element.
feature
The feature pool element type is a more configurable version of vanilla's feature pool element that allows setting the element's simulated jigsaw block's name and target_name fields.
{
"element_type": "minecraft:feature_pool_element",
"feature": "minecraft:sculk_patch_ancient_city",
"projection": "rigid",
"jigsaw_name": "minecraft:decoration",
"target_name": "minecraft:decoration"
}
limited
The limited pool element type limits the amount of times a given pool element can be placed in a structure.
{
"element_type": "lithostitched:limited",
"delegate": {
"element_type": "minecraft:single_pool_element",
"projection": "rigid",
"location": "example:dungeon/rare_room",
"processors": "minecraft:empty"
},
"limit": 2
}
delegate: The pool element that will actually be placed in the world. It cannot be another custom Lithostitched pool element type.limit: The maximum number of times the element can generate in each instance of a structure. The piece can generate less times than thelimit, but it won't go over it.min_depth: The minimum depth in the structure that the element can be placed in. This can be used to ensure that a guaranteed piece doesn't generate too close to the starting piece. Defaults to 0.
guaranteed
The guaranteed pool element type forces a certain number of a pool elements to generate in each instance of a structure.
{
"element_type": "lithostitched:guaranteed",
"delegate": {
"element_type": "minecraft:single_pool_element",
"projection": "rigid",
"location": "example:dungeon/boss_room",
"processors": "minecraft:empty"
},
"count": 1,
"min_depth": 4
}
delegate: The pool element that will actually be placed in the world. It cannot be another custom Lithostitched pool element type.count: The number of times the element will generate in each instance of a structure.min_depth: The minimum depth in the structure that the element can be placed in. This can be used to ensure that a guaranteed piece doesn't generate too close to the starting piece. Defaults to 0.