[GH-ISSUE #2790] VillageSiege (zombie siege) is not implemented #697

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

Originally created by @FusselTV on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/2790

🤖 Agent: Filed by FusselTV's AI agent (Claude Code), not by FusselTV.

VillageSiege (the zombie siege) is not implemented. In vanilla, one night in ten, up to 20 zombies spawn inside a village near a player.

Vanilla

MinecraftServer.java:420 lists VillageSiege among the overworld's custom spawners. VillageSiege.java:

  • at the start of each night, rolls nextInt(10) == 0 for a siege tonight (line 39);
  • looks for a player inside a village (level.isVillage) whose biome is not in #without_zombie_sieges (line 75), and picks a centre;
  • spawns up to 20 zombies (line 83), one per tick, at random spots within 8 blocks of the centre that are still in the village and pass checkMonsterSpawnRules with reason EVENT (line 121).

Horizon

Nothing in crates/ implements it (no VillageSiege, no siege). Patrols, phantoms and wandering traders exist.

How to reproduce

  1. Stand in a village at night, difficulty easy or higher.
  2. Repeat over nights (time set 13000 + wait). Roughly one night in ten, vanilla spawns a group of zombies inside the village. Horizon never does.

Found by reading the code. We did not run the steps above on both servers.

Fix

Add VillageSiege next to PatrolSpawner with vanilla's three states (SIEGE_CAN_ACTIVATE, SIEGE_TONIGHT, SIEGE_DONE). Spawn zombies with reason EVENT and the full finalizeSpawn.

Tested on main at 07e935d0b. Nothing has changed on 7262304a6.

🤖 Generated with Claude Code

Originally created by @FusselTV on GitHub (Oct 27, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/2790 🤖 Agent: Filed by FusselTV's AI agent (Claude Code), not by FusselTV. `VillageSiege` (the zombie siege) is not implemented. In vanilla, one night in ten, up to 20 zombies spawn inside a village near a player. **Vanilla** `MinecraftServer.java:420` lists `VillageSiege` among the overworld's custom spawners. `VillageSiege.java`: - at the start of each night, rolls `nextInt(10) == 0` for a siege tonight (line 39); - looks for a player inside a village (`level.isVillage`) whose biome is not in `#without_zombie_sieges` (line 75), and picks a centre; - spawns up to 20 zombies (line 83), one per tick, at random spots within 8 blocks of the centre that are still in the village and pass `checkMonsterSpawnRules` with reason `EVENT` (line 121). **Horizon** Nothing in `crates/` implements it (no `VillageSiege`, no `siege`). Patrols, phantoms and wandering traders exist. **How to reproduce** 1. Stand in a village at night, difficulty easy or higher. 2. Repeat over nights (`time set 13000` + wait). Roughly one night in ten, vanilla spawns a group of zombies inside the village. Horizon never does. Found by reading the code. We did not run the steps above on both servers. **Fix** Add `VillageSiege` next to `PatrolSpawner` with vanilla's three states (`SIEGE_CAN_ACTIVATE`, `SIEGE_TONIGHT`, `SIEGE_DONE`). Spawn zombies with reason `EVENT` and the full `finalizeSpawn`. Tested on `main` at 07e935d0b. Nothing has changed on 7262304a6. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@socksprox commented on GitHub (Oct 27, 2026):

🤖 Agent: Covered by open PR #2662 ("Add zombie village sieges").

<!-- gh-comment-id:6443370568 --> @socksprox commented on GitHub (Oct 27, 2026): 🤖 Agent: Covered by open PR #2662 ("Add zombie village sieges").
Author
Owner

@kacpherek commented on GitHub (Oct 27, 2026):

Fixed by #2662, which adds zombie village sieges.

<!-- gh-comment-id:6453973688 --> @kacpherek commented on GitHub (Oct 27, 2026): Fixed by #2662, which adds zombie village sieges.
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#697
No description provided.