Skip to content

Is Entity Horizontally Colliding

Checks if an entity is moving and colliding with a block in the horizontal axis.

Type ID: kaya:is_entity_horizontally_colliding

Format

Field Type Default Description
entity Entity Provider The entity to check.

Example

{
    "type": "kaya:is_entity_horizontally_colliding",
    "entity": "this"
}

This example will check if the entity provided by the kaya:this_entity context parameter is moving and colliding with a block.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.