Skip to content

In Screen

Entity Condition Type

Checks if the player has any or specific screen open.

Type ID: eggolib:in_screen

Fields

Field Type Default Description
screen String optional If specified, the condition will evaluate to true if the player's current screen matches this screen. See In-Game Screen Class (Class Data Registry) for possible values.
screens Array of Strings optional If specified, the condition will evaluate to true if the player's current screen matches any of these screens. See In-Game Screen Class (Class Data Registry) for possible values.

Examples

"condition": {
    "type": "eggolib:in_screen"
}

This example will check if the player has a screen open.

"condition": {
    "type": "eggolib:in_screen",
    "screens": [
        "inventory",
        "creative_inventory"
    ]
}

This example will check if the player has the inventory or creative inventory screen open.