Skip to content

Block Entity Modifier Types

Apollo edited this page Sep 16, 2024 · 1 revision

apply_all

The apply_all block entity modifier type applies all of the inputted block entity modifiers in order.

{
  "type": "lithostitched:apply_all",
  "modifiers": [
    {
      "type": "minecraft:append_loot",
      "loot_table": "minecraft:archaeology/desert_pyramid"
    },
    {
      "type": "minecraft:passthrough"
    }
  ]
}
  • modifiers: The list of modifiers to apply.

apply_random

The apply_random block entity modifier type applies a random block entity modifiers from a weighted list.

{
  "type": "lithostitched:apply_random",
  "modifiers": [
    {
      "weight": 2,
      "data": {
        "type": "minecraft:append_loot",
        "loot_table": "minecraft:archaeology/desert_pyramid"
      }
    },
    {
      "weight": 1,
      "data": {
        "type": "minecraft:append_loot",
        "loot_table": "minecraft:archaeology/desert_well"
      }
    }
  ]
}
  • modifiers: A weighted list of modifiers to apply. Only one modifier from the list will be applied.