Skip to content

cu_when_enter_world en

mouse114514 edited this page Sep 12, 2026 · 1 revision

When Enter World

When Enter World

Overview

Triggers once when the player enters a new world or loads a save. Good for world-level initialization, welcome messages, or world-specific setup.

This is a hat block: it must be placed at the top of a script.

Slots

This block has no parameter slots.

Connections

Connection Type Description
Top - hat block, cannot connect
Bottom Statement connected blocks run when entering a world

Typical Uses

  • Set world-level flags or variables on entry
  • Play a welcome presentation
  • Initialize using world properties (depth, time, etc.)

Example

when enter world
├── set worldLoaded to 1
├── talk "Welcome to the new world"
└── play sound "enter"

Generated Code

Emits the patch marker //PATCH:Start, injected into the Start() method.

Block ID: cu_when_enter_world


中文 | Event Blocks | Block Reference

Clone this wiki locally