Skip to content

cu_item_set_value en

mouse114514 edited this page Sep 12, 2026 · 1 revision

Set Item Value

Set Item Value

Overview

Sets a target item's value.

⚠️ Currently a placeholder block: item value is registration-time data (ItemInfo.value) and cannot be changed at runtime. The generator currently only emits a comment (/* item.value is registration-time only (ItemInfo.value), cannot be set at runtime */) and does not actually change game state. Decide the value in register item, or wait for a future version with a runtime value field on item instances.

Slots

Slot Type Description
VALUE Number slot the value (float)

Dropdown Options

Field Option Value Description
TARGET Current item this current handheld item
TARGET Left hand left left-hand item
TARGET Right hand right right-hand item

Connections

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

Generated Code

Currently emits /* item.value is registration-time only (ItemInfo.value), cannot be set at runtime */.

Block ID: cu_item_set_value


中文 | Item Action Blocks | Block Reference

Clone this wiki locally