Treasure Chest
Treasure Chest is a chest actor in Ocarina of Time.
Placement
The low 5 bits are the chest's treasure flag (already set in the save = spawns open and empty) and bits 5-11 the item it gives.
Type variants (12)
This actor is placed in one of these forms. Pick it from the editor's Type dropdown. The value is what the actor's parameters store. Each picture is fitted to its cell, so compare the stated sizes and not the images.
| Value | Type | |
|---|---|---|
![]() | 0 | Big (Default)~45 units tall |
| No preview yet | 1 | Room Clear BigThis chest type spawns HIDDEN until a trigger: types 3/8/11 wait on a switch flag (read from the placement's Z-ROTATION, not params), 1/7 on the room-clear flag, and 9/10 on Zelda's Lullaby / the Sun's Song played beside it. Types 0 (big) and 5 (small) are simply present. |
![]() | 2 | Decorated Big~45 units tall |
| No preview yet | 3 | Switch Flag Fall BigThis chest type spawns HIDDEN until a trigger: types 3/8/11 wait on a switch flag (read from the placement's Z-ROTATION, not params), 1/7 on the room-clear flag, and 9/10 on Zelda's Lullaby / the Sun's Song played beside it. Types 0 (big) and 5 (small) are simply present. |
| No preview yet | 4 | Lens BigTypes 4/6 are Lens of Truth chests — invisible until viewed through the lens. |
![]() | 5 | Small~22 units tall |
| No preview yet | 6 | Lens SmallTypes 4/6 are Lens of Truth chests — invisible until viewed through the lens. |
| No preview yet | 7 | Room Clear SmallThis chest type spawns HIDDEN until a trigger: types 3/8/11 wait on a switch flag (read from the placement's Z-ROTATION, not params), 1/7 on the room-clear flag, and 9/10 on Zelda's Lullaby / the Sun's Song played beside it. Types 0 (big) and 5 (small) are simply present. |
| No preview yet | 8 | Switch Flag Fall SmallThis chest type spawns HIDDEN until a trigger: types 3/8/11 wait on a switch flag (read from the placement's Z-ROTATION, not params), 1/7 on the room-clear flag, and 9/10 on Zelda's Lullaby / the Sun's Song played beside it. Types 0 (big) and 5 (small) are simply present. |
| No preview yet | 9 | Lullaby BigThis chest type spawns HIDDEN until a trigger: types 3/8/11 wait on a switch flag (read from the placement's Z-ROTATION, not params), 1/7 on the room-clear flag, and 9/10 on Zelda's Lullaby / the Sun's Song played beside it. Types 0 (big) and 5 (small) are simply present. |
| No preview yet | 10 | Sun's Song BigThis chest type spawns HIDDEN until a trigger: types 3/8/11 wait on a switch flag (read from the placement's Z-ROTATION, not params), 1/7 on the room-clear flag, and 9/10 on Zelda's Lullaby / the Sun's Song played beside it. Types 0 (big) and 5 (small) are simply present. |
| No preview yet | 11 | Switch Flag BigThis chest type spawns HIDDEN until a trigger: types 3/8/11 wait on a switch flag (read from the placement's Z-ROTATION, not params), 1/7 on the room-clear flag, and 9/10 on Zelda's Lullaby / the Sun's Song played beside it. Types 0 (big) and 5 (small) are simply present. |
Parameters
Beyond the type above, the parameters hold these fields. The editor shows each as a labelled control.
Shown: 0x0000, the value a newly placed copy starts with.
- Treasure Flag
bits 0–4: 0–31all 32 values usedOne of the scene's 32 saved 'chest opened' bits (set when the chest opens; a pre-set flag spawns it already open). Keep it unique per chest in the scene — chests sharing a flag open together. - Item
bits 5–11: 128 optionsall 128 values usedWhat the chest gives. Some entries adapt: shields/tunics fall back to a Blue Rupee if already owned, and arrow amounts are context-dependent. - Type
bits 12–15: 12 options12 of 16 values usedLens chests show only through the Lens of Truth. Lullaby and Sun's Song chests stay hidden in the floor until you play that song nearby.
Rotation fields
This actor reads these rotation fields as settings, not as a direction. The editor shows each one as a number field.
| Field | Axis | What it does |
|---|---|---|
| Switch Flag | Z | If the chest type waits on a switch, setting this switch flag makes it fall or appear. Use 0 to 63. Other types ignore it. |
Appears in (29)
Bottom Of The Well
Death Mountain Trail
Deku Tree
Desert Colossus
Dodongos Cavern
Dodongos Cavern Boss
Fire Temple
Forest Temple
Ganons Tower
Gerudo Training Ground
Gerudo Valley
Gerudos Fortress
Goron City
Grave With Fairys Fountain
Graveyard
Grottos
Haunted Wasteland
Ice Cavern
Inside Ganons Castle
Jabu Jabu
Kokiri Forest
Midos House
Redead Grave
Royal Familys Tomb
Shadow Temple
Spirit Temple
Water Temple
Windmill And Dampes Grave
Zoras DomainModel
What this actor draws, and where each piece lives in the archive. A mod replaces a piece by writing a file at the same path. A replaced limb is a part the actor swaps in while it draws. An added limb is a part it draws on top of the skeleton.
| Skeleton | objects/object_box/gTreasureChestSkel |
|---|---|
| Animation | objects/object_box/gTreasureChestAnim_00024C |
| Limb 1, replaced | objects/object_box/gTreasureChestChestFrontDL |
| Limb 3, replaced | objects/object_box/gTreasureChestChestSideAndLidDL |
| Skeleton | objects/object_box/gTreasureChestSkel |
|---|---|
| Animation | objects/object_box/gTreasureChestAnim_00024C |
| Limb 1, replaced | objects/object_box/gTreasureChestBossKeyChestFrontDL |
| Limb 3, replaced | objects/object_box/gTreasureChestBossKeyChestSideAndTopDL |
Objects loaded
objects/object_boxshared with 3 other actors
An edit to a shared object reaches every actor that loads it.


