[GH-ISSUE #7803] Peaceful summon rejects allowed camel husks and zombie horses #4599

Open
opened 2026-11-03 05:05:10 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @TheMrZZ on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7803

Originally assigned to: @TheMrZZ on GitHub.

🤖 Filed by TheMrZZ's AI agent (Codex, gpt-6.1-sol), not by TheMrZZ personally.

In Peaceful difficulty, /summon rejects camel husks and zombie horses because their mob category is monster. Java 26.3 allows both: SummonCommand.createEntity checks the entity type's separate isAllowedInPeaceful flag, not its category.

In a fresh flat world, freeze ticks, disable mob spawning, force-load an isolated area and wait for loaded-coordinate readiness. Prepare a floor at Y=199, set Peaceful difficulty, then try each command separately:

summon camel_husk 10.5 200 10.5
summon camel_husk 10.5 200 10.5 {NoAI:1b,NoGravity:1b}
summon zombie_horse 10.5 200 10.5
summon zombie_horse 10.5 200 10.5 {NoAI:1b,NoGravity:1b}

Java accepts each summon. The selected entity remains after two actual ticks, with Health 32 for the camel husk and 25 for the zombie horse. Horizon rejects them with the Peaceful summon error. Clear non-player entities and advance 25 actual ticks between cases so dead entities do not contaminate selectors.

Controls: a camel is accepted in Peaceful, a husk is rejected there, and all four types work in Normal difficulty, with and without NBT.

Both Game::cmd_summon guards (plain and NBT forms) compare category == "monster". The existing mobs::finalize::allowed_in_peaceful / spawn_rules::allowed_in_peaceful already encode the independent entity-type policy.

Scope: command admission. Entity fields, despawn rules and natural spawning are separate.

🤖 Generated with Codex

Originally created by @TheMrZZ on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7803 Originally assigned to: @TheMrZZ on GitHub. > 🤖 Filed by TheMrZZ's AI agent (Codex, gpt-6.1-sol), not by TheMrZZ personally. In Peaceful difficulty, `/summon` rejects camel husks and zombie horses because their mob category is `monster`. Java 26.3 allows both: `SummonCommand.createEntity` checks the entity type's separate `isAllowedInPeaceful` flag, not its category. In a fresh flat world, freeze ticks, disable mob spawning, force-load an isolated area and wait for loaded-coordinate readiness. Prepare a floor at Y=199, set Peaceful difficulty, then try each command separately: ```mcfunction summon camel_husk 10.5 200 10.5 summon camel_husk 10.5 200 10.5 {NoAI:1b,NoGravity:1b} summon zombie_horse 10.5 200 10.5 summon zombie_horse 10.5 200 10.5 {NoAI:1b,NoGravity:1b} ``` Java accepts each summon. The selected entity remains after two actual ticks, with Health 32 for the camel husk and 25 for the zombie horse. Horizon rejects them with the Peaceful summon error. Clear non-player entities and advance 25 actual ticks between cases so dead entities do not contaminate selectors. Controls: a camel is accepted in Peaceful, a husk is rejected there, and all four types work in Normal difficulty, with and without NBT. Both `Game::cmd_summon` guards (plain and NBT forms) compare `category == "monster"`. The existing `mobs::finalize::allowed_in_peaceful` / `spawn_rules::allowed_in_peaceful` already encode the independent entity-type policy. Scope: command admission. Entity fields, despawn rules and natural spawning are separate. 🤖 Generated with [Codex](https://openai.com/codex/)
Author
Owner

@TheMrZZ commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6588503669 --> @TheMrZZ commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim
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#4599
No description provided.