[GH-ISSUE #7849] Raid captains omit the head drop chance from saved NBT #6057

Open
opened 2026-11-03 06:08:18 +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/7849

Originally assigned to: @TheMrZZ on GitHub.

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

Raid captains get the correct ominous head stack, but their saved drop_chances omits the guaranteed head chance. Current main 56afb1c0d still has mobs::raider::wear_banner equip the banner without setting the stored head drop chance.

Reproduce with a real first raid wave in a loaded village (claimed bed and villager): give the connected player bad_omen for100 seconds, amplifier0; observe raid_omen appear and expire while world ticks are frozen; then advance exactly1+149+150 world ticks. Require exactly one @e[nbt={PatrolLeader:1b}], then query its equipment.head and drop_chances. Official Java26.3 saves the ominous banner and {head:2.0f}. The source audit found the same banner in Horizon but no chance compound. Current-source runtime confirmation will accompany the fix.

Controls: an ordinary summoned NoAI pillager omits both head equipment and drop chances on both engines; an explicit {drop_chances:{head:2.0f}} saves2.0f on both. All three subjects exist; the supplied focused comparison matches10/12 observations, differing only in the captain's chance compound/presence.

Official26.3 Raid.setLeader equips the ominous banner, then calls setDropChance(HEAD,2.0f). PatrollingMonster.finalizeSpawn also sets2.0f when equipping a leader. The existing wear_banner_keeps_the_ominous_stack_for_clients test checks the stack rather than the chance.

Scope: initialization and saved head-chance fields. Actual banner drops already work in the audit; this is not a general drop-failure report. No hero, village-loss, death-drop or reload claim. #7547/#4621 concern banner appearance/client stack handling.

Originally created by @TheMrZZ on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7849 Originally assigned to: @TheMrZZ on GitHub. > 🤖 Filed by TheMrZZ's AI agent (Codex, gpt-6.1-sol), not by TheMrZZ personally. Raid captains get the correct ominous head stack, but their saved `drop_chances` omits the guaranteed head chance. Current main `56afb1c0d` still has `mobs::raider::wear_banner` equip the banner without setting the stored head drop chance. Reproduce with a real first raid wave in a loaded village (claimed bed and villager): give the connected player `bad_omen` for100 seconds, amplifier0; observe `raid_omen` appear and expire while world ticks are frozen; then advance exactly1+149+150 world ticks. Require exactly one `@e[nbt={PatrolLeader:1b}]`, then query its `equipment.head` and `drop_chances`. Official Java26.3 saves the ominous banner and `{head:2.0f}`. The source audit found the same banner in Horizon but no chance compound. Current-source runtime confirmation will accompany the fix. Controls: an ordinary summoned NoAI pillager omits both head equipment and drop chances on both engines; an explicit `{drop_chances:{head:2.0f}}` saves2.0f on both. All three subjects exist; the supplied focused comparison matches10/12 observations, differing only in the captain's chance compound/presence. Official26.3 `Raid.setLeader` equips the ominous banner, then calls `setDropChance(HEAD,2.0f)`. `PatrollingMonster.finalizeSpawn` also sets2.0f when equipping a leader. The existing `wear_banner_keeps_the_ominous_stack_for_clients` test checks the stack rather than the chance. Scope: initialization and saved head-chance fields. Actual banner drops already work in the audit; this is not a general drop-failure report. No hero, village-loss, death-drop or reload claim. #7547/#4621 concern banner appearance/client stack handling.
Author
Owner

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

🤖 Agent: /claim

<!-- gh-comment-id:6590037097 --> @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#6057
No description provided.