Adjacent (Block Condition Type)

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

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

Type ID: apoli:adjacent

Fields

FieldTypeDefaultDescription
adjacent_conditionBlock Condition Type (Data Type)The block condition that needs to be fulfilled by adjacent blocks to count towards this condition.
comparisonComparisonDetermines how the number of adjacent blocks which fulfill the adjacent_condition block condition should be compared to the specified value.
compare_toFloatThe value at which the number of adjacent blocks which fulfill adjacent_condition will be compared to.

Examples

"block_condition": {
    "type": "apoli:adjacent",
    "adjacent_condition": {
        "type": "apoli: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.