Area of Effect
Executes the provided Block Action Type on all blocks within the specified radius and shape.
Type ID: origins:area_of_effect
Fields
Field | Type | Default | Description |
---|---|---|---|
radius |
Integer | 16 |
Determines the radius of the area. |
shape |
Shape | "cube" |
Determines the shape of the area. |
block_action |
Block Action Type | The block action to execute on the blocks within the specified radius. | |
block_condition |
Block Condition Type | optional | If specified, the specified block action will only be executed on blocks that fulfill this block condition. |
Examples
"block_action": {
"type": "origins:area_of_effect",
"radius": 16,
"shape": "cube",
"block_action": {
"type": "origins:modify_block_state",
"property": "waterlogged",
"value": false
}
}
This example will make all waterloggable blocks not waterlogged within 16 blocks radius with a shape of a cube.
"block_action": {
"type": "origins:area_of_effect",
"radius": 4,
"shape": "star",
"block_action": {
"type": "origins:set_block",
"block": "minecraft:air"
},
"block_condition": {
"type": "origins:in_tag",
"tag": "minecraft:dragon_immune",
"inverted": true
}
}
This example will replace all blocks that aren't included in the #minecraft:dragon_immune
block tag with air within a 4 blocks radius with a shape of a diamond.