Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Processor list

From SAS Gaming Wiki

A processor list is used to transform blocks of a Minecraft:structure template during generation. They contain a list of processors. Processor lists are configured using Minecraft:JSON files stored within a Minecraft:data pack in the folder Template:Cd or an Minecraft:add-on in the folder Template:Cd.

JSON format

A processor list can be a list, or an object that contains a list. Template:El: A list:

Or an object:

Template:El:

<section begin="json format" />

<section end="json format" />

Processors

rule

Replaces blocks with custom rules

block_rot

Template:Exclusive Randomly removes blocks. The removed blocks are not replaced by air, but keep the old blocks before the structure being generated

block_age

Template:Exclusive 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 (Template:Tag link) 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 (Template:Tag link) may remain unchanged or become mossy stone brick variants. Obsidian also has a 0.15 chance to be replaced with crying obsidian.

block_ignore

Removes specified blocks. The removed blocks are not replaced by air, but keep the old blocks before the structure being generated.

gravity

Template:Exclusive 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 Minecraft:template pool is "terrain_matching"

  • Template:Nbt: A processor object
    • Template:Nbt: Template:Cd
    • Template:Nbt: (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".
    • Template:Nbt: (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 Minecraft:template pool is "terrain_matching"), Template:Nbt is -1.

protected_blocks

Specifies which blocks in the world cannot be overridden by this structure

blackstone_replace

Template:Exclusive Replaces all stone-variant blocks with blackstone variants and all iron bars with chains.

jigsaw_replacement

Template:Exclusive Replaces Minecraft:jigsaw blocks with the specified final state. This processor is hardcoded to be used unless generated in the jigsaw block GUI.

lava_submerged_block

Template:Exclusive Blocks with incomplete outline shapes cannot override the lava in the world

capped

Applies a processor to some random blocks instead of applying it to all blocks.

nop

Template:Exclusive Does nothing

Rule test

Rule tests are used to test if a block matches specific conditions.

always_true

Matches any block

block_match

Tests is the block is the specified block.

blockstate_match

Tests is the block for the specified Minecraft:block state.

random_block_match

Tests is the block is the specified block. Then only matches with a given probability.

random_blockstate_match

Tests is the block for the specified Minecraft:block state. Then only matches with a given probability.

tag_match

Tests if the block is in the specified block tag.

Position rule test

Position rule tests are used to test if a position matches specific conditions.

always_true

Matches any position.

linear_pos

Template:Exclusive Passes with a random probability, the probability is based on the 3D Manhattan distance to the structure start (center bottom block of first element).

  • Template:Nbt: a position rule test
    • Template:Nbt: linear_pos
    • Template:Nbt: (optional, default is 0.0) The probability (probability less than 0 is treated as 0, greater than 1 is treated as 1) for the predicate to pass when the distance of a block to the structure start is equal to or less than Template:Nbt.
    • Template:Nbt: (optional, default is 0.0) The probability (probability less than 0 is treated as 0, greater than 1 is treated as 1) for the predicate to pass when the distance of a block to the structure start is equal to or greater than Template:Nbt. If a block's distance is between Template:Nbt and Template:Nbt, probability is obtained by linear interpolation Template:Cd.
    • Template:Nbt: (optional, defaults to 0) the distance when the minimum probability is used. Must be less than Template:Nbt.
    • Template:Nbt: (optional, defaults to 0) the distance when the maximum probability is used. Must be greater than Template:Nbt.

axis_aligned_linear_pos

Passes with a random probability, the probability is based on the distance to the structure start (center bottom block of first element) along the specified axis.

External links

Navigation

Template:Navbox Java Edition technical

Minecraft:de:Prozessorliste Minecraft:fr:Liste de processeurs Minecraft:pt:Lista de processadores Minecraft:zh:处理器列表