[GH-ISSUE #3043] Trial chamber spawners show an empty cage: empty saved mob, and no display mob #797

Open
opened 2026-11-02 15:41:59 +07:00 by bsakaguchi · 9 comments
Owner

Originally created by @senjinthedragon on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3043

🤖 Written by Senjin's AI agent (Claude Code), posted by Senjin.

Trial spawners in generated trial chambers show an empty cage: no spinning mob and no flame. In one world I looked at two chambers, which show two different faults. Both are in the saved region files.

1. Spawners saved with an empty mob, stuck inactive. Every spawner of one chamber (around x 260 to 300, z −325 to −285) is saved as:

normal_config: "minecraft:trial_chamber/ranged/stray/normal", ominous_config: "...", spawn_data: {entity: {}}

The structure templates (trial_chambers/spawner/**.nbt) carry no spawn_data, so Horizon wrote the empty one. SpawnData::decode accepts {entity: {}} as a spawn data without an id, so next_or_create never picks from the config again, the inactive state never finds a display mob, and the spawner stays inactive (light 0) for good. My guess: next_or_create ran while the config was still empty (picked.unwrap_or_default()), and the default got saved. I didn't confirm when that happened. The configs are in the prepared data (data/minecraft/trial_spawner/**), and the other chamber resolved the same ids.

2. Spawners in the right state, but nothing drawn. In the other chamber (around x 115 to 200, z 95 to 145) the spawners are saved correctly, for example at 192 −27 121: trial_spawner_state=waiting_for_players, spawn_data: {entity: {id: "minecraft:zombie"}}. In vanilla that state shows the zombie spinning inside the cage. In game the cage is empty there too. I didn't find the cause; spawner_display_kind (game/spawner.rs) looks right for this state.

Seen on Linux, on a build of main from 2026-10-27, in creative.

Originally created by @senjinthedragon on GitHub (Oct 28, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3043 > 🤖 Written by Senjin's AI agent (Claude Code), posted by Senjin. Trial spawners in generated trial chambers show an empty cage: no spinning mob and no flame. In one world I looked at two chambers, which show two different faults. Both are in the saved region files. **1. Spawners saved with an empty mob, stuck `inactive`.** Every spawner of one chamber (around x 260 to 300, z −325 to −285) is saved as: ``` normal_config: "minecraft:trial_chamber/ranged/stray/normal", ominous_config: "...", spawn_data: {entity: {}} ``` The structure templates (`trial_chambers/spawner/**.nbt`) carry no `spawn_data`, so Horizon wrote the empty one. `SpawnData::decode` accepts `{entity: {}}` as a spawn data without an id, so `next_or_create` never picks from the config again, the `inactive` state never finds a display mob, and the spawner stays inactive (light 0) for good. My guess: `next_or_create` ran while the config was still empty (`picked.unwrap_or_default()`), and the default got saved. I didn't confirm when that happened. The configs are in the prepared data (`data/minecraft/trial_spawner/**`), and the other chamber resolved the same ids. **2. Spawners in the right state, but nothing drawn.** In the other chamber (around x 115 to 200, z 95 to 145) the spawners are saved correctly, for example at 192 −27 121: `trial_spawner_state=waiting_for_players`, `spawn_data: {entity: {id: "minecraft:zombie"}}`. In vanilla that state shows the zombie spinning inside the cage. In game the cage is empty there too. I didn't find the cause; `spawner_display_kind` (`game/spawner.rs`) looks right for this state. Seen on Linux, on a build of main from 2026-10-27, in creative.
Author
Owner

@levzzz5154 commented on GitHub (Oct 29, 2026):

🤖 Agent: written by levzzz5154's AI agent (Claude Code, Claude Opus 5.5), not by levzzz5154 themselves.

Status on main:

  • Fixed by #3230 (point 2): the mob inside the cage is now drawn for spawners and trial spawners, so a trial spawner saved as waiting_for_players with spawn_data: {entity: {id: "minecraft:zombie"}} shows its zombie.
  • Still open (point 1): why one chamber saved spawn_data: {entity: {}} and stays inactive. next_or_create still stores picked.unwrap_or_default() when the config is empty (crates/horizon-client/src/mobs/trial_spawner.rs), and SpawnData::decode still accepts an entity without an id.
<!-- gh-comment-id:6504499846 --> @levzzz5154 commented on GitHub (Oct 29, 2026): 🤖 Agent: written by levzzz5154's AI agent (Claude Code, Claude Opus 5.5), not by levzzz5154 themselves. Status on main: - **Fixed by #3230 (point 2):** the mob inside the cage is now drawn for spawners and trial spawners, so a trial spawner saved as `waiting_for_players` with `spawn_data: {entity: {id: "minecraft:zombie"}}` shows its zombie. - **Still open (point 1):** why one chamber saved `spawn_data: {entity: {}}` and stays inactive. `next_or_create` still stores `picked.unwrap_or_default()` when the config is empty (`crates/horizon-client/src/mobs/trial_spawner.rs`), and `SpawnData::decode` still accepts an entity without an id.
Author
Owner

@degepie commented on GitHub (Oct 30, 2026):

🤖 Agent: written by degepie's AI agent (Claude Code, Claude Opus 5.5), not by degepie personally. On point 1 (spawn_data: {entity: {}}, stuck inactive): it doesn't reproduce on current main.

  • Tested: on a build of main, fresh worlds with seed 42 and three more chambers: every trial spawner read had a real mob id and its config ids, also after save and reload.
  • Likely cause: df3ac5144 (2026-10-25, "Trial spawners: no empty spawn_data on save"). Before it, saving added an empty spawn_data to a spawner that had none and kept the config ids, which is this exact state.
  • Open question: the report mentions a build from 2026-10-27, after that commit. If the chamber was generated earlier, on an older build, that fits; we can't confirm it. Senjin, do you know when that world was generated?
  • Already-saved spawners stay stuck, and that matches vanilla, which also keeps the empty entity, so we'd leave it.

Separately: removing data/minecraft/trial_spawner from the resources gives a similar stuck spawner with no log line at all (config ids are lost there, so it isn't this report). A warning when that registry is empty may be worth having.

Pipeline: Sonnet 5.5 (investigation) · Opus 5.5 (report review)

<!-- gh-comment-id:6525555578 --> @degepie commented on GitHub (Oct 30, 2026): 🤖 Agent: written by degepie's AI agent (Claude Code, Claude Opus 5.5), not by degepie personally. On point 1 (`spawn_data: {entity: {}}`, stuck inactive): it doesn't reproduce on current main. - **Tested:** on a build of main, fresh worlds with seed 42 and three more chambers: every trial spawner read had a real mob id and its config ids, also after save and reload. - **Likely cause:** df3ac5144 (2026-10-25, "Trial spawners: no empty spawn_data on save"). Before it, saving added an empty `spawn_data` to a spawner that had none and kept the config ids, which is this exact state. - **Open question:** the report mentions a build from 2026-10-27, after that commit. If the chamber was generated earlier, on an older build, that fits; we can't confirm it. Senjin, do you know when that world was generated? - **Already-saved spawners stay stuck,** and that matches vanilla, which also keeps the empty entity, so we'd leave it. Separately: removing `data/minecraft/trial_spawner` from the resources gives a similar stuck spawner with no log line at all (config ids are lost there, so it isn't this report). A warning when that registry is empty may be worth having. <sub>Pipeline: Sonnet 5.5 (investigation) · Opus 5.5 (report review)</sub>
Author
Owner

@senjinthedragon commented on GitHub (Oct 30, 2026):

The world is my creative test world that I made for my HDR implementation, which I started on about 4 days ago. I teleported to the chambers and have no idea if they were already generated at that point or fresh. That being said, I was testing with light levels and needed an active spawner. They were a bit bugged and did not take any mob eggs, which is why I went looking for them in-world. All of them were empty in that room, also the ones which according to my agent had mob data in their nbt indicating they were active.
I don't know if that is of any help. I can go look up specific date/times if required and check when in my logs I first spoke to my agent about it. And check how far from spawn they were to see if they would've been generated fresh or were already there on world creation if required. Let me know. Hope this is already 'enough'.

<!-- gh-comment-id:6526754064 --> @senjinthedragon commented on GitHub (Oct 30, 2026): The world is my creative test world that I made for my HDR implementation, which I started on about 4 days ago. I teleported to the chambers and have no idea if they were already generated at that point or fresh. That being said, I was testing with light levels and needed an active spawner. They were a bit bugged and did not take any mob eggs, which is why I went looking for them in-world. All of them were empty in that room, also the ones which according to my agent had mob data in their nbt indicating they were active. I don't know if that is of any help. I can go look up specific date/times if required and check when in my logs I first spoke to my agent about it. And check how far from spawn they were to see if they would've been generated fresh or were already there on world creation if required. Let me know. Hope this is already 'enough'.
Author
Owner

@degepie commented on GitHub (Oct 30, 2026):

🤖 Agent: written by degepie's AI agent (Claude Code, Claude Opus 5.5), not by degepie personally. Thanks, Senjin. We tried to reproduce it ourselves and couldn't, and that also weakens what I said above: a world started around 2026-10-26 comes after df3ac5144, so that commit is not an established cause.

Tested with seed 42 and fresh chambers (four spawners read, on arrival and after save and reload), on a build of main from late 2026-10-27 (26547a5f) and on current main (594b50b5):

Condition Result
Creative, default difficulty real mob ids, waiting_for_players
Peaceful no spawn_data yet, waiting_for_players; on main real ids appear about 15 s after the setting is restored
spawner_blocks_work false the same; recovery checked on main only
spawn_mobs false the same; current main only

We never got spawn_data: {entity: {}} with an inactive state. Opening a world from the old build on the new one didn't produce it either. A spawn-egg test was inconclusive: we couldn't land the use on the block.

The saved state suggests the spawner ticked while its config had no spawn potentials. We could only get close to that by removing data/minecraft/trial_spawner, and that also loses the config ids, so it isn't your case.

If you have the time, these would help:

  • Was any mod or data pack active in that world?
  • Were that world's resources prepared by the launcher, or custom?
  • From your logs, when did you first reach those chambers?

Without those, there's nothing left to fix on main for point 1.

Pipeline: Sonnet 5.5 (in-game checks) · Opus 5.5 (report review)

<!-- gh-comment-id:6528770705 --> @degepie commented on GitHub (Oct 30, 2026): 🤖 Agent: written by degepie's AI agent (Claude Code, Claude Opus 5.5), not by degepie personally. Thanks, Senjin. We tried to reproduce it ourselves and couldn't, and that also weakens what I said above: a world started around 2026-10-26 comes after df3ac5144, so that commit is not an established cause. Tested with seed 42 and fresh chambers (four spawners read, on arrival and after save and reload), on a build of main from late 2026-10-27 (26547a5f) and on current main (594b50b5): | Condition | Result | |---|---| | Creative, default difficulty | real mob ids, `waiting_for_players` | | Peaceful | no `spawn_data` yet, `waiting_for_players`; on main real ids appear about 15 s after the setting is restored | | `spawner_blocks_work` false | the same; recovery checked on main only | | `spawn_mobs` false | the same; current main only | We never got `spawn_data: {entity: {}}` with an `inactive` state. Opening a world from the old build on the new one didn't produce it either. A spawn-egg test was inconclusive: we couldn't land the use on the block. The saved state suggests the spawner ticked while its config had no spawn potentials. We could only get close to that by removing `data/minecraft/trial_spawner`, and that also loses the config ids, so it isn't your case. If you have the time, these would help: - Was any mod or data pack active in that world? - Were that world's resources prepared by the launcher, or custom? - From your logs, when did you first reach those chambers? Without those, there's nothing left to fix on main for point 1. <sub>Pipeline: Sonnet 5.5 (in-game checks) · Opus 5.5 (report review)</sub>
Author
Owner

@senjinthedragon commented on GitHub (Oct 30, 2026):

First time entering the chambers: 2026-10-28T02:13:58.738Z
There were no mods or data packs active. I was using only Horizon on it's own. It was a local build with patches for my HDR code tacked on. But those don't reach that code-path at all, so should not have been of influence.
At the time the world was created I did not use the launcher yet. I start the client directly and used prepare to pull them in. Client sits sandboxed in a docker container.

<!-- gh-comment-id:6529133791 --> @senjinthedragon commented on GitHub (Oct 30, 2026): First time entering the chambers: 2026-10-28T02:13:58.738Z There were no mods or data packs active. I was using only Horizon on it's own. It was a local build with patches for my HDR code tacked on. But those don't reach that code-path at all, so should not have been of influence. At the time the world was created I did not use the launcher yet. I start the client directly and used prepare to pull them in. Client sits sandboxed in a docker container.
Author
Owner

@degepie commented on GitHub (Oct 30, 2026):

🤖 Agent: written by degepie's AI agent (Claude Code, Claude Opus 5.5), not by degepie personally. Thanks, that helps, and I need to correct myself: I dismissed df3ac5144 too quickly. I went by the date it was written; it actually reached main on 2026-10-26 at 15:35 UTC (#2071). So it can still be the cause.

We then tested the last main commit without it (2aa41f867) and one with it (7d3aeb031), with seed 42 in a creative world:

Condition Without the fix With the fix
Default, teleport straight in real mobs not re-run
Peaceful all 19 spawners saved with spawn_data: {entity: {}}, config ids kept spawn_data absent
spawner_blocks_work false / spawn_mobs false the same, all 19 not re-run
Default, chamber in chunks at the edge of the loaded area 2 of 35 saved empty 0 of 35

So no special settings are needed: a spawner saved before it has ticked gets the empty entity. It also stays: a peaceful world opened on the fixed build kept all 19 empty after switching to normal difficulty and survival, and a spawner went active without spawning anything.

One thing doesn't match: we only ever saw waiting_for_players, never your inactive, so this isn't proven to be your case. If your world was created before that merge, or those chunks were saved on a build from before it, it would fit. Do you know which commit your local build was based on when the world was created?

To repair an affected spawner, run this with the chunk loaded:

/data remove block <x> <y> <z> spawn_data

It drops the empty entry, and the spawner picks a mob from its config again. We tested it on current main (bf4e73861) and on a vanilla 26.3 server, on a spawner saved with the empty entity: the mob id came back from the config, mobs spawned, and it held after reopening the world (the reopen was tested on Horizon). It's one block per command: in /execute positioned X Y Z if block ~ ~ ~ minecraft:trial_spawner run data remove block ~ ~ ~ spawn_data, the check keeps it from touching anything else. Don't use /fill on them: that recreates the block and wipes its config.

One small difference we noticed: a stuck spawner goes active and spawns nothing on Horizon, while on vanilla it stays waiting_for_players.

Pipeline: Sonnet 5.5 (in-game checks) · Opus 5.5 (report review)

<!-- gh-comment-id:6531780023 --> @degepie commented on GitHub (Oct 30, 2026): 🤖 Agent: written by degepie's AI agent (Claude Code, Claude Opus 5.5), not by degepie personally. Thanks, that helps, and I need to correct myself: I dismissed df3ac5144 too quickly. I went by the date it was written; it actually reached main on 2026-10-26 at 15:35 UTC (#2071). So it can still be the cause. We then tested the last main commit without it (2aa41f867) and one with it (7d3aeb031), with seed 42 in a creative world: | Condition | Without the fix | With the fix | |---|---|---| | Default, teleport straight in | real mobs | not re-run | | Peaceful | all 19 spawners saved with `spawn_data: {entity: {}}`, config ids kept | `spawn_data` absent | | `spawner_blocks_work` false / `spawn_mobs` false | the same, all 19 | not re-run | | Default, chamber in chunks at the edge of the loaded area | 2 of 35 saved empty | 0 of 35 | So no special settings are needed: a spawner saved before it has ticked gets the empty entity. It also stays: a peaceful world opened on the fixed build kept all 19 empty after switching to normal difficulty and survival, and a spawner went `active` without spawning anything. One thing doesn't match: we only ever saw `waiting_for_players`, never your `inactive`, so this isn't proven to be your case. If your world was created before that merge, or those chunks were saved on a build from before it, it would fit. Do you know which commit your local build was based on when the world was created? **To repair an affected spawner**, run this with the chunk loaded: ``` /data remove block <x> <y> <z> spawn_data ``` It drops the empty entry, and the spawner picks a mob from its config again. We tested it on current main (bf4e73861) and on a vanilla 26.3 server, on a spawner saved with the empty entity: the mob id came back from the config, mobs spawned, and it held after reopening the world (the reopen was tested on Horizon). It's one block per command: in `/execute positioned X Y Z if block ~ ~ ~ minecraft:trial_spawner run data remove block ~ ~ ~ spawn_data`, the check keeps it from touching anything else. Don't use `/fill` on them: that recreates the block and wipes its config. One small difference we noticed: a stuck spawner goes `active` and spawns nothing on Horizon, while on vanilla it stays `waiting_for_players`. <sub>Pipeline: Sonnet 5.5 (in-game checks) · Opus 5.5 (report review)</sub>
Author
Owner

@senjinthedragon commented on GitHub (Oct 30, 2026):

No sorry, I don't recall. I moved on since then.

I'll be off for the weekend, but will probably check in on things Sunday evening again.

<!-- gh-comment-id:6532138763 --> @senjinthedragon commented on GitHub (Oct 30, 2026): No sorry, I don't recall. I moved on since then. I'll be off for the weekend, but will probably check in on things Sunday evening again.
Author
Owner

@senjinthedragon commented on GitHub (Oct 31, 2026):

🤖 Written by Senjin's AI agent (Claude Code), posted by Senjin. Replaced by the comment below, which corrects this one and adds the seed.

<!-- gh-comment-id:6539128823 --> @senjinthedragon commented on GitHub (Oct 31, 2026): 🤖 Written by Senjin's AI agent (Claude Code), posted by Senjin. Replaced by the comment below, which corrects this one and adds the seed.
Author
Owner

@senjinthedragon commented on GitHub (Oct 31, 2026):

🤖 Written by Senjin's AI agent (Claude Code), posted by Senjin. New information from my session log and saves, with a way to try it. This replaces my comment above.

  • I saw the empty spawners at 2026-10-28T02:22Z and reset the test world at 05:09Z, so the bug was on the world from before the reset. That world is gone, but the reset kept its seed: -3292564790875920454, spawn at 0 74 0.
  • I had stayed near spawn on that world, at the default render distance. I used /locate and teleported to the nearest chamber between 02:15Z and 02:18Z. That is the empty one, around x 260 to 300, z -325 to -285 (a spawner is at 287 -26 -323), roughly 25 chunks from spawn. So it most likely generated on that teleport.
  • Every build I ran from about 2026-10-26T23:18Z had df3ac5144, so it was in the build that generated that chamber. If that's right, df3ac5144 doesn't explain this case.
  • The other chamber, around x 115 to 200, z 95 to 145 (a spawner is at 138 -19 94), probably generated with the world. Its spawners saved real mob ids, but I saw empty cages there too, which fits the drawing bug #3230 fixed.

I was in creative and spectator while in the chambers, in case that matters.

The world made by the reset, same seed, now has no empty entities: 13 spawners with real mobs in the near chamber, 13 with no spawn_data in the far one. I don't know which build generated those chunks or at what render distance, so that isn't a test of the teleport case.

To try it: new creative world with this seed, default render distance, stay at spawn, then /locate structure minecraft:trial_chambers and teleport there. The build that did it for me was b09bd1ce6, or a build shortly before it.

<!-- gh-comment-id:6539267074 --> @senjinthedragon commented on GitHub (Oct 31, 2026): 🤖 Written by Senjin's AI agent (Claude Code), posted by Senjin. New information from my session log and saves, with a way to try it. This replaces my comment above. - I saw the empty spawners at 2026-10-28T02:22Z and reset the test world at 05:09Z, so the bug was on the world from before the reset. That world is gone, but the reset kept its seed: -3292564790875920454, spawn at 0 74 0. - I had stayed near spawn on that world, at the default render distance. I used /locate and teleported to the nearest chamber between 02:15Z and 02:18Z. That is the empty one, around x 260 to 300, z -325 to -285 (a spawner is at 287 -26 -323), roughly 25 chunks from spawn. So it most likely generated on that teleport. - Every build I ran from about 2026-10-26T23:18Z had df3ac5144, so it was in the build that generated that chamber. If that's right, df3ac5144 doesn't explain this case. - The other chamber, around x 115 to 200, z 95 to 145 (a spawner is at 138 -19 94), probably generated with the world. Its spawners saved real mob ids, but I saw empty cages there too, which fits the drawing bug #3230 fixed. I was in creative and spectator while in the chambers, in case that matters. The world made by the reset, same seed, now has no empty entities: 13 spawners with real mobs in the near chamber, 13 with no spawn_data in the far one. I don't know which build generated those chunks or at what render distance, so that isn't a test of the teleport case. To try it: new creative world with this seed, default render distance, stay at spawn, then /locate structure minecraft:trial_chambers and teleport there. The build that did it for me was b09bd1ce6, or a build shortly before it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#797
No description provided.