-
Notifications
You must be signed in to change notification settings - Fork 0
Events en
Event blocks are "hat" blocks that can only be placed at the top of a script as entry points for event handlers. When a specific game event occurs, the corresponding event handler is triggered.
| Property | Value |
|---|---|
| Block Count | 12 |
| Block | Name | Description |
|---|---|---|
![]() |
When Mod Awakes | Triggered when the game loads, typically used for initializing variables and settings. |
![]() |
Every Frame Update | Called once per frame, used for continuous update logic. |
![]() |
When Hurt | Triggered when the player takes damage. |
![]() |
When Die | Triggered when the player dies. |
![]() |
When Pickup Item | Triggered when the player picks up an item. |
![]() |
When Drop Item | Triggered when the player drops an item. |
![]() |
When Wear Equipment | Triggered when the player equips equipment. |
![]() |
When Healed | Triggered when the player is healed. |
![]() |
When Last Stand | Triggered when the player makes a last stand. |
![]() |
When Enter World | Triggered when the player enters a new world. |
![]() |
Define Item Use | Defines behavior when a custom item is used. |
![]() |
Define Item Limb Use | Defines behavior when a custom item is used by a limb. |

Triggered when the game loads, typically used for initializing variables and settings.
Block ID: cu_when_awake

Called once per frame, used for continuous update logic.
Block ID: cu_when_update

Triggered when the player takes damage.
Block ID: cu_when_hurt

Triggered when the player dies.
Block ID: cu_when_die

Triggered when the player picks up an item.
Block ID: cu_when_pickup

Triggered when the player drops an item.
Block ID: cu_when_drop

Triggered when the player equips equipment.
Block ID: cu_when_wear

Triggered when the player is healed.
Block ID: cu_when_heal

Triggered when the player makes a last stand.
Block ID: cu_when_laststand

Triggered when the player enters a new world.
Block ID: cu_when_enter_world

Defines behavior when a custom item is used.
Block ID: cu_define_item_use

Defines behavior when a custom item is used by a limb.
Block ID: cu_define_item_limb_use