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

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 prevented from being emitted by the entity. Prefix with # to name a game event tag instead.
eventsArray of IdentifiersoptionalIf specified, the game events with these namespace and IDs will be prevented from being emitted by the entity. Each entry may be prefixed with # to name a game event tag.
tagIdentifieroptionalIf specified, the game events inside this game event tag will be prevented from being emitted by the entity. The leading # is optional.
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.