Skip to main content

Prevent Entity Collision (Power Type)

Stops the entity that has the power from colliding with other entities. The actor is the entity with the power, and the target is the entity it collides with.

Type ID: apoli:prevent_entity_collision

This covers both halves of a collision: the soft shove entities give each other when they overlap, and the hard hitboxes of entities you normally can't walk through, such as boats and shulkers. It is enough for either entity in the pair to have the power.

Fields

FieldTypeDefaultDescription
bientity_conditionBi-entity Condition TypeoptionalIf set, the collision is only prevented when the actor and target pass this condition.

Examples

{
    "type": "apoli:prevent_entity_collision"
}

This stops the entity from colliding with any other entity.

{
    "type": "apoli:prevent_entity_collision",
    "bientity_condition": {
        "type": "apoli:owner"
    }
}

This stops the entity from colliding with tamed animals it owns.

note

The power doesn't stop the entity from being hit, only from being pushed and blocked. Use apoli:invulnerability for damage and apoli:prevent_entity_selection for targeting.