[PR #5009] [MERGED] feat(mods): mod mob effects show their icons #6004

Closed
opened 2026-11-03 05:16:33 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5009
Author: @reservedbytes
Created: 10/31/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @ludovic111

Base: main ← Head: feat/mod-mob-effect-icons


📝 Commits (1)

  • d8a9bae feat(mods): mod mob effects show their icons

📊 Changes

7 files changed (+133 additions, -32 deletions)

View changed files

📝 crates/horizon-client-core/src/potions.rs (+26 -1)
📝 crates/horizon-client-render/src/hud.rs (+82 -7)
📝 crates/horizon-client-render/src/hud_layout.rs (+14 -7)
📝 crates/horizon-client-render/src/hud_overlays.rs (+1 -1)
📝 crates/horizon-client-render/src/inventory_effects.rs (+5 -11)
📝 docs/modpacks.md (+1 -1)
📝 docs/mods.md (+4 -4)

📄 Description

What and why

A mod's mob effect now shows its icon in the HUD and the inventory, from assets/<id>/textures/mob_effect/<name>.png as vanilla's do

An effect without an icon draws the missing texture, as vanilla does, not an empty frame

The effects themselves come from #4840

Kind

  • parity: Horizon now does what vanilla 26.3 does
  • bug: a crash or a breakage
  • perf: faster, or less memory
  • feature: something new for players (listed under New in the release notes)
  • extra: Horizon-only, off by default
  • tooling: tools, CI, tests, harnesses
  • docs

Vanilla reference

The sprite is the effect's id with the mob_effect/ prefix, else the missing texture (client/gui/Hud.java:538)
The atlas lists every namespace's mob_effect folder (client/data/AtlasProvider.java:84)
The missing texture's pattern (client/renderer/texture/MissingTextureAtlasSprite.java)

Self-check

Check Result
Scope ✅ 7 files, +133 −32
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 487 passed (56 s)
rustfmt ✅ (8 s)
clippy ✅ (2 min 18 s)
tests: horizon-client-core, horizon-client-render ✅ 757 passed (1 min 21 s)
doc tests ✅ 0 passed (1 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/5009 **Author:** [@reservedbytes](https://github.com/reservedbytes) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/mod-mob-effect-icons` --- ### 📝 Commits (1) - [`d8a9bae`](https://github.com/horizon-rust/horizon/commit/d8a9baec80198eaf309a0c74e04ef5e4730edf38) feat(mods): mod mob effects show their icons ### 📊 Changes **7 files changed** (+133 additions, -32 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-core/src/potions.rs` (+26 -1) 📝 `crates/horizon-client-render/src/hud.rs` (+82 -7) 📝 `crates/horizon-client-render/src/hud_layout.rs` (+14 -7) 📝 `crates/horizon-client-render/src/hud_overlays.rs` (+1 -1) 📝 `crates/horizon-client-render/src/inventory_effects.rs` (+5 -11) 📝 `docs/modpacks.md` (+1 -1) 📝 `docs/mods.md` (+4 -4) </details> ### 📄 Description ## What and why A mod's mob effect now shows its icon in the HUD and the inventory, from `assets/<id>/textures/mob_effect/<name>.png` as vanilla's do An effect without an icon draws the missing texture, as vanilla does, not an empty frame The effects themselves come from #4840 ## Kind - [ ] parity: Horizon now does what vanilla 26.3 does - [ ] bug: a crash or a breakage - [ ] perf: faster, or less memory - [x] feature: something new for players (listed under New in the release notes) - [ ] extra: Horizon-only, off by default - [ ] tooling: tools, CI, tests, harnesses - [ ] docs ## Vanilla reference The sprite is the effect's id with the `mob_effect/` prefix, else the missing texture (`client/gui/Hud.java:538`) The atlas lists every namespace's `mob_effect` folder (`client/data/AtlasProvider.java:84`) The missing texture's pattern (`client/renderer/texture/MissingTextureAtlasSprite.java`) ## Self-check | Check | Result | | --- | --- | | Scope | ✅ 7 files, +133 −32 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 487 passed (56 s) | | rustfmt | ✅ (8 s) | | clippy | ✅ (2 min 18 s) | | tests: horizon-client-core, horizon-client-render | ✅ 757 passed (1 min 21 s) | | doc tests | ✅ 0 passed (1 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:16:33 +07:00
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#6004
No description provided.