[GH-ISSUE #7547] Raid captain banners appear completely white #3290

Open
opened 2026-11-03 04:07:18 +07:00 by bsakaguchi · 3 comments
Owner

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

Originally assigned to: @hkancelik on GitHub.

When a Pillager Raid Captain spawns carrying an Ominous Banner, the banner appears completely white in Horizon.

The banner is missing its normal patterns and design.

In vanilla Minecraft Java Edition, the Ominous Banner displays its proper texture and patterns.

This appears to be a graphical or banner texture rendering issue.

Tested on:

  • OS: Windows PC
  • Horizon version: Nightly c9d474d

image :
Image

Originally created by @byMehd on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7547 Originally assigned to: @hkancelik on GitHub. When a Pillager Raid Captain spawns carrying an Ominous Banner, the banner appears completely white in Horizon. The banner is missing its normal patterns and design. In vanilla Minecraft Java Edition, the Ominous Banner displays its proper texture and patterns. This appears to be a graphical or banner texture rendering issue. Tested on: - OS: Windows PC - Horizon version: Nightly `c9d474d` image : <img width="459" height="999" alt="Image" src="https://github.com/user-attachments/assets/887eed63-7b9e-439b-9464-9c6211e835be" />
Author
Owner

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

Confirmed root cause in crates/horizon-client/src/mobs/finalize.rs:

In PR #4621 (wear_banner), patrol and raid leaders were updated to keep Raid.getOminousBannerInstance in armor[0] so SetEquipment packets carry the ominous banner data to clients.

However, in crates/horizon-client/src/mobs/finalize.rs:1546 (raider.finalizeSpawn):

        if super::raider::state(m).is_some_and(|s| s.patrol_leader) {
            set_item(m, HEAD, super::raider::BANNER);
            set_drop_chance(m, HEAD, 2.0);
        }

Naturally spawned patrol and outpost leaders still call set_item(m, HEAD, super::raider::BANNER) instead of super::raider::wear_banner(m).

Because armor[0] is not set to the ominous banner stack on this path, is_captain evaluates to false on the client, and CustomHeadLayer (head_item_geometry) draws minecraft:white_banner as a generic item without patterns.

Replacing set_item(m, HEAD, super::raider::BANNER); with super::raider::wear_banner(m); resolves this and renders the patterned ominous banner on leaders.

<!-- gh-comment-id:6586926247 --> @nailhakan commented on GitHub (Nov 2, 2026): Confirmed root cause in `crates/horizon-client/src/mobs/finalize.rs`: In PR #4621 (`wear_banner`), patrol and raid leaders were updated to keep `Raid.getOminousBannerInstance` in `armor[0]` so `SetEquipment` packets carry the ominous banner data to clients. However, in `crates/horizon-client/src/mobs/finalize.rs:1546` (`raider.finalizeSpawn`): ```rust if super::raider::state(m).is_some_and(|s| s.patrol_leader) { set_item(m, HEAD, super::raider::BANNER); set_drop_chance(m, HEAD, 2.0); } ``` Naturally spawned patrol and outpost leaders still call `set_item(m, HEAD, super::raider::BANNER)` instead of `super::raider::wear_banner(m)`. Because `armor[0]` is not set to the ominous banner stack on this path, `is_captain` evaluates to `false` on the client, and `CustomHeadLayer` (`head_item_geometry`) draws `minecraft:white_banner` as a generic item without patterns. Replacing `set_item(m, HEAD, super::raider::BANNER);` with `super::raider::wear_banner(m);` resolves this and renders the patterned ominous banner on leaders.
Author
Owner

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

/claim

<!-- gh-comment-id:6587207180 --> @nailhakan commented on GitHub (Nov 2, 2026): /claim
Author
Owner

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

Here is the root cause analysis for this issue across both spawning/rendering and mob drops:

1. Naturally spawned leaders missing ominous components

In crates/horizon-client/src/mobs/finalize.rs (around line 1551):

if super::raider::state(m).is_some_and(|s| s.patrol_leader) {
    set_item(m, HEAD, super::raider::BANNER);
}

It calls set_item(m, HEAD, BANNER) instead of super::raider::wear_banner(m); set_drop_chance(m, HEAD, 2.0);.
Because wear_banner is not invoked:

  • m.extra.armor[0] is not populated with ominous_banner().
  • SetEquipment does not send the ominous components to the client.
  • is_captain(m) evaluates to false on the client, causing the game to fall back to CustomHeadLayer (drawing a plain white cloth) instead of captain_banner_geometry with the ominous patterns.

2. Killed captains dropping a plain white banner

In crates/horizon-client/src/game/creatures.rs (lines 1508–1516):

drops::Drop::Item(stack) => stacks.push(
    if raider && stack.item == horizon_client::mobs::raider::BANNER {
        horizon_client::mobs::raider::ominous_banner()
    } else {
        from_loot(&stack)
    },
),
drops::Drop::Stack(stack) => stacks.push(stack),

When a raider captain dies, the worn equipment from its head slot is returned by slot_drop as drops::Drop::Stack(stack).
While Drop::Item converts BANNER into raider::ominous_banner(), Drop::Stack pushes the raw stack directly without checking if raider && stack.item == BANNER. Consequently, killed captains drop a blank minecraft:white_banner instead of an Ominous Banner.

<!-- gh-comment-id:6589033734 --> @hkancelik commented on GitHub (Nov 2, 2026): Here is the root cause analysis for this issue across both spawning/rendering and mob drops: #### 1. Naturally spawned leaders missing ominous components In `crates/horizon-client/src/mobs/finalize.rs` (around line 1551): ```rust if super::raider::state(m).is_some_and(|s| s.patrol_leader) { set_item(m, HEAD, super::raider::BANNER); } ``` It calls `set_item(m, HEAD, BANNER)` instead of `super::raider::wear_banner(m); set_drop_chance(m, HEAD, 2.0);`. Because `wear_banner` is not invoked: * `m.extra.armor[0]` is not populated with `ominous_banner()`. * `SetEquipment` does not send the ominous components to the client. * `is_captain(m)` evaluates to `false` on the client, causing the game to fall back to `CustomHeadLayer` (drawing a plain white cloth) instead of `captain_banner_geometry` with the ominous patterns. #### 2. Killed captains dropping a plain white banner In `crates/horizon-client/src/game/creatures.rs` (lines 1508–1516): ```rust drops::Drop::Item(stack) => stacks.push( if raider && stack.item == horizon_client::mobs::raider::BANNER { horizon_client::mobs::raider::ominous_banner() } else { from_loot(&stack) }, ), drops::Drop::Stack(stack) => stacks.push(stack), ``` When a raider captain dies, the worn equipment from its head slot is returned by `slot_drop` as `drops::Drop::Stack(stack)`. While `Drop::Item` converts `BANNER` into `raider::ominous_banner()`, `Drop::Stack` pushes the raw stack directly without checking `if raider && stack.item == BANNER`. Consequently, killed captains drop a blank `minecraft:white_banner` instead of an Ominous Banner.
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#3290
No description provided.