Minecraft Wiki
Advertisement
    •  processor_type: Can be minecraft:rule(Replaces blocks with custom rules), minecraft:block_rot(Randomly removes blocks. The removed blocks are not replaced by air, but keep the old blocks before the structure being generated.), minecraft:block_age(Makes blocks aged. A stone, stone bricks, or cracked stone bricks block has a chance of 0.5 to be replaced with one of cracked stone bricks, stone brick stairs, mossy stone bricks, and mossy stone brick stairs. All variants of stairs have a 0.5 chance to become one of stone slab, stone brick slab, mossy stone brick stairs, and mossy stone brick slab. All variants of slabs and walls may remain unchanged or become mossy stone brick variants. An obsidians have a 0.15 chance to become crying obsidian.), minecraft:block_ignore(Removes specified blocks. The removed blocks are not replaced by air, but keep the old blocks before the structure being generated.), minecraft:gravity(Change the Y-level of blocks' positions to fit the terrain like a village road. Note that this is not used to make floating gravity blocks fall down. This processor is hardcoded to be used on a structure template if its "projection" field in its structure pool is "terrain_matching".), minecraft:protected_blocks(Specifies which blocks in the world cannot be overridden by this structure), minecraft:blackstone_replace(Replaces all stone-variant blocks with blackstone variants and all iron bars with chains.), minecraft:jigsaw_replacement(Whether to preserve jigsaw blocks and structure void blocks. This processor is hardcoded to be used unless generated in the jigsaw block GUI.), minecraft:lava_submerged_block(Blocks with incomplete outline shapes will not be able to override the lava in the world), minecraft:capped(Applies a processor to some random blocks instead of applying it to all blocks.) or minecraft:nop(Do nothing).
      If processor_type is minecraft:rule, additional field is as follows:
    •  rules: (Required, but can be empty) A list of rules. Only the first rule that all conditions are met takes effect. This is decided anew for each block.
      • : A rule.
        •  position_predicate: (Optional, defaults to an "always_true" test) The test to apply to the distance from the structure start to this block.
          • A pos rule test
        •  input_predicate: The test to apply to the block that will be placed by the structure.
          • A rule test
        •  location_predicate: The test to apply to the block in the world that will be replaced by the structure.
          • A rule test
        •  output_state: The block that will be placed when all conditions are met. Omitting block states use default values (e.g. the replacement of stairs with stairs without changing states need 40 rules to check for all facing combinations).
          • Block state
        •  block_entity_modifier: (optional) Modifies nbt data of the block entity if all conditions are met.
          •  type: Can be minecraft:append_loot(Appends LootTable field and LootTableSeed field to the block entity. The LootTableSeed uses a random number seeded by the block position.), minecraft:append_static(Merges specified data into the block entity.), minecraft:clear(Resets any existing fields on the block entity.) or minecraft:passthrough(Do nothing).
            If type is minecraft:append_loot, additional field is as follows:
          •  loot_table: The resource location of a loot table.
            If type is minecraft:append_static, additional field is as follows:
          •  data: The nbt data to be merged into the block entity. Needs to be in JSON form, see NBT format#JSON and NBT.
      If processor_type is minecraft:block_rot, additional fields are as follows:
    •  integrity: The probability of randomly removing blocks in the structure. Value between 0 and 1.
    •  rottable_blocks: (optional) Blocks that can be removed. A block ID or a block tag, or a list of block IDs.
      If processor_type is minecraft:block_age, additional field is as follows:
    •  mossiness: Values below 0.0 is treated as 0.0; values above 1.0 is treated as 1.0. The probability of using mossy variants when making a block aged.
      If processor_type is minecraft:block_ignore, additional field is as follows:
    •  blocks: (Required, but can be empty) IDs of blocks to ignore. Specifying block states has no effect.
      • : A block.
        • Block state
      If processor_type is minecraft:gravity, additional fields are as follows:
    •  heightmap: (optional, defaults to WORLD_SURFACE_WG) Must be one of "WORLD_SURFACE_WG"(if not during world generation, fallbacks to WORLD_SURFACE), "WORLD_SURFACE", "OCEAN_FLOOR_WG"(if not during world generation, fallbacks to OCEAN_FLOOR), "OCEAN_FLOOR", "MOTION_BLOCKING", or "MOTION_BLOCKING_NO_LEAVES".
    •  offset: (optional, defaults to 0) The offset relative to the terrain. For example: 0 is to place the structure on the ground, -1 is to sink one block into the ground. When this processor is used on a structure template by hardcoding (when the template's "projection" field in its structure pool is "terrain_matching"),  offset is -1.
      If processor_type is minecraft:protected_blocks, additional field is as follows:
    •  value: A block tag with #.
      If processor_type is minecraft:capped, additional fields are as follows:
    •  value: The number of blocks on which the processer is applied. Must be greater than 0. If it is greater than or equal to the total number of blocks in the structure template, all blocks are processed as if the processer is not capped.
      • Int provider
    •  delegate: The processer.
      • A processor
Advertisement