In Block Anywhere
Checks whether the entity is overlapping with a block anywhere.
Type ID: origins:in_block_anywhere
Fields:
| Field | Type | Default | Description |
|---|---|---|---|
block_condition |
Block Condition | The block condition which blocks need to fulfill in order to count for this condition. | |
comparison |
Comparison | ">=" |
How the number of blocks which overlap and fulfill block_condition should be compared to the specified value. |
compare_to |
Integer | 1 |
The value to compare the number to. |
Example:
"condition": {
"type": "origins:in_block_anywhere",
"block_condition": {
"type": "origins:in_tag",
"tag": "minecraft:flowers"
},
"comparison": ">",
"compare_to": 1
}
This example checks if the player is currently inside a two-block tall foliage block that belongs in the #minecraft:flowers (data\minecraft\tags\blocks\flowers.json) block tag. An example is the rose bush block.