Prevent Game Event (Power Type)

Prevents specified game event(s) from being emitted by the entity that has the power.

Prevents specified game event(s) from being emitted by the entity that has the power.

Type ID: apoli:prevent_game_event

!!! note

See Minecraft Wiki: Sculk Sensor (Vibration amplitudes) for a list of vanilla game events you can check for.

Fields

FieldTypeDefaultDescription
eventIdentifieroptionalIf specified, the game event with this namespace and ID will be prevent from being emitted by the entity.
eventsArray of IdentifiersoptionalIf specified, the game events with these namespace and IDs will be prevent from being emitted by the entity.
tagIdentifieroptionalIf specified, the game events inside game event tag will be prevented from being emitted by the entity.
entity_actionEntity Action TypeoptionalIf specified, this action will be executed on the entity upon preventing game events.

Examples

{
    "type": "apoli:prevent_game_event",
    "event": "minecraft:hit_ground",
    "entity_action": {
        "type": "apoli:execute_command",
        "command": "say donk"
    }
}

This example will prevent the entity that has the power to emit a minecraft:hit_ground game event, which is usually emitted by landing on the ground upon falling.