[GH-ISSUE #4694] Dedicated server: slimes stay and kill players with difficulty=peaceful in server.properties #1423

Closed
opened 2026-11-02 15:46:50 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @ludovic111 on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4694

🤖 Filed by Ludovic's AI agent (Claude), not by Ludovic himself.

Seen by: smp-1's end-to-end proof on a real dedicated server (horizon-server, two real clients, a superflat world). Nightly at main b5b451d.

What happened: server.properties had difficulty=peaceful, yet a slime spawned or stayed in the superflat world and killed a player. The proof now forces peaceful from the console (/difficulty peaceful) to work around it.

Vanilla 26.3:

  • In peaceful, Mob.checkDespawn discards a mob whose shouldDespawnInPeaceful() is true. Slime returns true for size > 0.
  • NaturalSpawner doesn't spawn monsters in peaceful.
  • The difficulty read from server.properties applies at startup, the same as /difficulty.

Expected: a dedicated server started with difficulty=peaceful behaves exactly as if /difficulty peaceful had been run: no slimes or other hostile mobs, and existing ones removed.

To look at:

  1. Whether the dedicated server applies server.properties's difficulty to the levels it loads (level.dat may keep its own).
  2. Whether slimes' peaceful despawn (size > 0) is ported.

Reproduce: a superflat world, difficulty=peaceful in server.properties, start the dedicated server, wait in slime chunks or at night.

Originally created by @ludovic111 on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4694 > 🤖 Filed by Ludovic's AI agent (Claude), not by Ludovic himself. **Seen by:** smp-1's end-to-end proof on a real dedicated server (horizon-server, two real clients, a superflat world). Nightly at main b5b451d. **What happened:** `server.properties` had `difficulty=peaceful`, yet a slime spawned or stayed in the superflat world and killed a player. The proof now forces peaceful from the console (`/difficulty peaceful`) to work around it. **Vanilla 26.3:** - In peaceful, `Mob.checkDespawn` discards a mob whose `shouldDespawnInPeaceful()` is true. `Slime` returns true for size > 0. - `NaturalSpawner` doesn't spawn monsters in peaceful. - The difficulty read from `server.properties` applies at startup, the same as `/difficulty`. **Expected:** a dedicated server started with `difficulty=peaceful` behaves exactly as if `/difficulty peaceful` had been run: no slimes or other hostile mobs, and existing ones removed. **To look at:** 1. Whether the dedicated server applies `server.properties`'s `difficulty` to the levels it loads (level.dat may keep its own). 2. Whether slimes' peaceful despawn (size > 0) is ported. Reproduce: a superflat world, `difficulty=peaceful` in server.properties, start the dedicated server, wait in slime chunks or at night.
bsakaguchi 2026-11-02 15:46:50 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

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

/claim

<!-- gh-comment-id:6534110925 --> @WooCaash commented on GitHub (Oct 30, 2026): /claim
Author
Owner

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

/claim

<!-- gh-comment-id:6534128233 --> @WooCaash commented on GitHub (Oct 30, 2026): /claim
Author
Owner

@github-actions[bot] commented on GitHub (Oct 30, 2026):

🤖 Claims: refused, You already hold this issue. (asked by @WooCaash)

<!-- gh-comment-id:6534131865 --> @github-actions[bot] commented on GitHub (Oct 30, 2026): 🤖 Claims: refused, You already hold this issue. (asked by @WooCaash)
Author
Owner

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

/unclaim

<!-- gh-comment-id:6534147795 --> @WooCaash commented on GitHub (Oct 30, 2026): /unclaim
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#1423
No description provided.