Skip to content

Block State Provider Types

Apollo edited this page Nov 22, 2024 · 1 revision

random_block

The random_block state provider type places a random block from a set of blocks.

{
  "type": "lithostitched:random_block",
  "blocks": "#minecraft:logs"
}
  • blocks: A block, list of blocks, or tag of blocks to select from.

weighted

The weighted state provider type uses a weighted list to choose a random block state provider to use.

{
  "type": "lithostitched:weighted",
  "entries": [
    {
      "data": {
        "type": "minecraft:simple_state_provider",
        "state": {
          "Name": "minecraft:stone"
        }
      },
      "weight": 1
    },
    {
      "data": {
        "type": "lithostitched:random_block",
        "blocks": "#minecraft:logs"
      },
      "weight": 1
    }
  ]
}
  • entries: A weighted list of block state providers.