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:limited",
  "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 with max_count.
  • max_count: The maximum number of times this element can generate, as an integer at or above 0. Cannot be used with forced_count.
  • override_terrain_adaption: The terrain adaption this piece should use, taking precedent over the structure's terrain adaption. Can none, beard_thin, beard_box, bury, or encapsulate (last is only present on 1.21+).

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 the limit, 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.