-
Notifications
You must be signed in to change notification settings - Fork 0
cu_item_set_condition en
mouse114514 edited this page Sep 12, 2026
·
1 revision

Operates on a target item's durability (condition): set it to a value, increase, or decrease it.
| Slot | Type | Description |
|---|---|---|
| VALUE | Number slot | the durability operand (float) |
| 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> |
| Connection | Type | Description |
|---|---|---|
| Top | Statement | connects after a previous statement |
| Bottom | Statement | continues to the next statement |
- Set →
item.condition = <value>f; - Increase →
item.condition += <value>f; - Decrease →
item.condition -= <value>f;
Block ID: cu_item_set_condition