Action On Projectile Land
Executes an Entity Action and a Block Action at the location that a thrown projectile lands.
Type ID: ccpacks:action_on_projectile_land
Fields
| Field | Type | Default | Description |
|---|---|---|---|
projectile |
Identifier | optional | The identifier of the projectile entity. |
entity_action |
Entity Action Type | optional | The entity action to be executed on the projectile if specified. |
self_action |
Entity Action Type | optional | The entity action to be executed on the player if specified. |
block_action |
Block Action Type | optional | The block action to be executed if specified. |
block_condition |
Block Condition Type | optional | If specified, only execute the specified actions if the block condition is fulfilled. |
Example
{
"type": "apoli:action_on_projectile_land",
"block_action": {
"type": "apoli:set_block",
"block": "minecraft:diamond_block"
},
"block_condition": {
"type": "apoli:block",
"block": "minecraft:coal_block"
}
}
When any projectile lands, if the block it lands on is a coal block, turn it into a diamond block.