Skip to content

Change Insomnia Ticks

Entity Action Type

Changes the value of the minecraft.custom:minecraft.time_since_rest statistic of the player.

Type ID: eggolib:change_insomnia_ticks

Fields

Field Type Default Description
change Integer The value to be used for changing the value of the player's minecraft.custom:minecraft.time_since_rest statistic.
operation String "add" Determines how the specified value will be operated on the value of the player's minecraft.custom:minecraft.time_since_rest statistic. Accepts one of "add" and "set".

Examples

"entity_action": {
    "type": "eggolib:change_insomnia_ticks",
    "change": 24000,
    "operation": "add"
}

This example will add 24000 to the the value of the player's minecraft.custom:minecraft.time_since_rest statistic, essentially adding 1 day.

"entity_action": {
    "type": "eggolib:change_insomnia_ticks",
    "change": 0,
    "operation": "set"
}

This example will set the the value of the player's minecraft.custom:minecraft.time_since_rest statistic to 0.