Action On Land (Power Type)
Executes an Entity Action Type when the player lands on the ground after being airborne.
Executes an Entity Action Type when the player lands on the ground after being airborne.
Type ID: apoli:action_on_land
Fields
| Field | Type | Default | Description |
|---|---|---|---|
entity_action | Entity Action Type | The action to execute on the player. |
The action runs on the tick the entity touches the ground after an actual fall, just before any fall
damage is dealt. Anything that only cancels the damage — take_fall_damage: false on apoli:modify_falling, a Slow Falling effect, feather falling —
leaves the landing intact, so this still fires. Something that resets the fall distance mid-air
(entering water, a apoli:set_fall_distance of 0,
climbing a ladder) means there was no fall left to land from, and it does not.
Examples
{
"type": "apoli:action_on_land",
"entity_action": {
"type": "apoli:execute_command",
"command": "fill ~1 ~-1 ~1 ~-1 ~-1 ~-1 minecraft:air replace minecraft:grass_block"
},
"condition": {
"type": "apoli:fall_distance",
"comparison": ">",
"compare_to": 4
}
} This example will execute an apoli:execute_command that will then execute a /fill command that will replace a 3x3 area of Grass Blocks with Air underneath the entity’s feet if the entity in question has been falling for 4 or more blocks.