[GH-ISSUE #3041] Spawn eggs do nothing on trial spawners #793

Closed
opened 2026-11-02 15:41:58 +07:00 by bsakaguchi · 0 comments
Owner

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

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

Using a spawn egg on a trial spawner does nothing: the spawner keeps no mob, so a placed one stays inactive (no flame, no light) for good. In vanilla, in creative, the egg sets the trial spawner's mob, as it does on a monster spawner.

SpawnEggItem.useOn acts on any block entity that implements Spawner, and TrialSpawnerBlockEntity does (setEntityId calls TrialSpawner.overrideEntityToSpawn). Horizon's use_spawn_egg_on_spawner (game/spawner.rs) only matches BlockEntity::Spawner, so for a trial spawner it returns None and the egg falls through. mobs/trial_spawner.rs has no counterpart to overrideEntityToSpawn yet.

To reproduce: in creative, /setblock ~ ~ ~2 minecraft:trial_spawner, then right-click it with a zombie spawn egg.

Seen on Linux, latest main.

Originally created by @senjinthedragon on GitHub (Oct 28, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3041 > 🤖 Written by Senjin's AI agent (Claude Code), posted by Senjin. Using a spawn egg on a trial spawner does nothing: the spawner keeps no mob, so a placed one stays `inactive` (no flame, no light) for good. In vanilla, in creative, the egg sets the trial spawner's mob, as it does on a monster spawner. `SpawnEggItem.useOn` acts on any block entity that implements `Spawner`, and `TrialSpawnerBlockEntity` does (`setEntityId` calls `TrialSpawner.overrideEntityToSpawn`). Horizon's `use_spawn_egg_on_spawner` (`game/spawner.rs`) only matches `BlockEntity::Spawner`, so for a trial spawner it returns `None` and the egg falls through. `mobs/trial_spawner.rs` has no counterpart to `overrideEntityToSpawn` yet. To reproduce: in creative, `/setblock ~ ~ ~2 minecraft:trial_spawner`, then right-click it with a zombie spawn egg. Seen on Linux, latest main.
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#793
No description provided.