Skip to content

cu_item_set_condition en

mouse114514 edited this page Sep 12, 2026 · 1 revision

Set Item Condition (Durability)

Set Item Condition

Overview

Operates on a target item's durability (condition): set it to a value, increase, or decrease it.

Slots

Slot Type Description
VALUE Number slot the durability operand (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
OP Set = condition = <value>
OP Increase + condition += <value>
OP Decrease - condition -= <value>

Connections

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

Generated Code

  • Set → item.condition = <value>f;
  • Increase → item.condition += <value>f;
  • Decrease → item.condition -= <value>f;

Block ID: cu_item_set_condition


中文 | Item Action Blocks | Block Reference

Clone this wiki locally