Skip to content
mouse114514 edited this page Sep 12, 2026 · 1 revision

When Wear Equipment

When Wear Equipment

Overview

Triggers whenever the player wears equipment. Good for wear feedback, equipment-linked stats, or durability management.

This is a hat block: it must be placed at the top of a script.

Slots

This block has no parameter slots.

Connections

Connection Type Description
Top - hat block, cannot connect
Bottom Statement connected blocks run when equipment is worn

Typical Uses

  • Play a sound when wearing
  • Grant bonuses for specific equipment (combined with is item equipped)
  • Count how many times equipment was worn

Notes

  • Fires for any equipment; use the custom item / item value blocks with an if block to tell them apart
  • Fires after the equipment is actually worn

Example

when wear equipment
├── play sound "equip"
├── change equipCount by 1
└── talk "Equipment worn"

Generated Code

Emits the patch marker //PATCH:WearWearable, injected into the WearWearable() method.

Block ID: cu_when_wear


中文 | Event Blocks | Block Reference

Clone this wiki locally