Action On Projectile Land
Executes an Entity Action and a Block Action at the location that a thrown projectile lands.
Type ID: ra_additions:action_on_projectile_land
Fields
| Field | Type | Default | Description |
|---|---|---|---|
projectile |
Identifier | optional | The identifier of the projectile entity. |
should_damage |
Boolean | optional | Determines if the entity will be damaged by the projectile. |
bientity_action |
Bientity Action | optional | The bientity action to be executed between the entity hit, and the entity with this power. |
bientity_condition |
Bientity Condition | optional | If specified, only execute the bientity action if this condition is fulfilled. |
block_action |
Block Action | optional | The block action to be executed if specified. |
block_condition |
Block Condition | optional | If specified, only execute the specified actions if the block condition is fulfilled. |
Example
{
"type": "ra_additions:action_on_projectile_land",
"should_damage": false,
"bientity_action": {
"type": "apoli:target_action",
"action": {
"type": "apoli:execute_command",
"command": "spreadplayers ~ ~ 1 3 false @s"
}
},
"block_action": {
"type": "apoli:set_block",
"block": "minecraft:diamond_block"
},
"block_condition": {
"type": "apoli:block",
"block": "minecraft:coal_block"
}
}
This example will make it so that any projectile that you throw, that lands on a coal block, will become a diamond block.