Skip to main content

Prevent Game Event (Power Type)

Stops the entity that has the power from emitting the game events you list.

Type ID: apoli:prevent_game_event

The Minecraft Wiki's sculk sensor page lists the vanilla game events.

Fields

FieldTypeDefaultDescription
eventIdentifieroptionalIf set, the game event to stop. Prefix it with # to name a game event tag instead.
eventsArray of IdentifiersoptionalIf set, the game events to stop. Any entry can start with # to name a game event tag.
tagIdentifieroptionalIf set, every game event in this tag is stopped. The leading # is optional.
entity_actionEntity Action TypeoptionalIf set, this action runs on the entity each time a game event is stopped.

Examples

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

This stops the entity from emitting minecraft:hit_ground, the game event that landing after a fall usually emits, and runs say donk each time.