Skip to content

cu_building_set_property en

mouse114514 edited this page Sep 12, 2026 · 1 revision

Set Building Property

Set Building Property

Overview

Modifies a property of a registered building (health, name, spawn parameters, etc.). Run it after register building.

Slots

Slot Type Description
ID String slot (text field) target building ID (default myBuilding)
PROP Dropdown slot the property to change (see below)
VALUE Combined slot the new value (numbers for numeric stats, strings for name/description, booleans for requireGround/metallic/animal)

Connections

Connection Type Description
Top Statement connects after a previous statement
Bottom Statement continues to the next statement

Dropdown Options

Option Value Meaning
Health health building health
Name name display name
Description description description
Require ground requireGround whether it must be placed on the ground
Metallic metallic whether the material is metallic
Animal animal whether animals can live in it
Drop chance multiplier dropChanceMultiplier drop probability multiplier
Spawn min per chunk spawnMinPerChunk minimum spawns per chunk
Spawn max per chunk spawnMaxPerChunk maximum spawns per chunk

Generated Code

Emits BuildingEntityRegistry.GetDefinition("<ID>").<prop> = <value>;.

Block ID: cu_building_set_property


中文 | Building Blocks | Block Reference

Clone this wiki locally