Skip to content

cu_register_locale en

mouse114514 edited this page Sep 12, 2026 · 1 revision

Register Locale

Register Locale

Overview

Registers Chinese and English localized text for an item, building, or title. The game shows the matching name according to the player's language preference (lang.txt).

Slots

Slot Type Description
TYPE Dropdown slot locale type: 物品(item) / 建筑(building) / 标题(title)
ID String slot (text field) the target ID (e.g. item ID)
ZH String slot (text field) Chinese text
EN String slot (text field) English text

Connections

Connection Type Description
Top / Bottom - no statement connections (declaration block)

Dropdown Options

Option Value Description
Item item register an item's name/description
Building building register a building's name/description
Title title register a UI title string

Generated Code

Emits the registration marker //REGISTER_LOCALE:{"Type":...,"Id":...,"Zh":...,"En":...}.

Block ID: cu_register_locale


中文 | Locale Blocks | Block Reference

Clone this wiki locally