Adjacent

Block Condition Type

Checks whether a specified amount of blocks adjacent to the block in question fulfills a specified Block Condition Type.

Type ID: origins:adjacent

Fields

Field Type Default Description
adjacent_condition Block Condition Type The block condition that needs to be fulfilled by adjacent blocks to count towards this condition.
comparison Comparison How the number of adjacent blocks which fulfill adjacent_condition should be compared to the specified value.
compare_to Float The value to compare the number to.

Examples

"block_condition": {
    "type": "origins:adjacent",
    "adjacent_condition": {
        "type": "origins:block",
        "block": "minecraft:iron_ore"
    },
    "comparison": ">=",
    "compare_to": 4
}

This example will check if there are four or more Iron Ore blocks next to the block in question.