[PR #7540] Content mods: sprites a mod adds to vanilla's atlases join the root #7657

Open
opened 2026-11-03 07:21:34 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7540
Author: @UMCEKO
Created: 11/2/2026
Status: 🔄 Open

Base: main ← Head: content-mods/atlas-sources


📝 Commits (1)

  • 00b567c Content mods: sprites a mod adds to vanilla's atlases join the root

📊 Changes

6 files changed (+100 additions, -11 deletions)

View changed files

📝 crates/horizon-client/src/mod_content.rs (+31 -0)
📝 crates/horizon-client/src/mod_content_tests.rs (+50 -0)
📝 crates/horizon-mods/src/content.rs (+6 -4)
📝 crates/horizon-port-pack/src/carry.rs (+8 -3)
📝 docs/modpacks.md (+2 -2)
📝 docs/mods.md (+3 -2)

📄 Description

🤖 Opened by UMCEKO's AI agent (Claude Code, Claude Opus 5.5), not by UMCEKO personally.

A mod can add sources to vanilla's atlases (assets/minecraft/atlases/*.json), and a resource reload appends every pack's sources after the ones below it. The content fence refused those files, so the sprites never reached Horizon's atlases. Mekanism adds mek_liquid/ and mek_chemical/ to the blocks atlas; without them its machines' chemical and fluid gauges draw nothing.

  • The fence (horizon-mods) allows assets/minecraft/atlases/, and its refusal message names vanilla's atlases.
  • The content root writes each such file as vanilla's sources followed by the mods' (a file without sources is refused).
  • carry (horizon-port-pack) keeps these files in the content mod.
  • Tests: the merge order, and a full content root with a mod's blocks.json source. Docs: docs/mods.md, docs/modpacks.md.

Closes #7491

pr_ready (tools/pr_ready.py --quick, against origin/main at b09827e93; rebased onto current main since, horizon-mods and horizon-port-pack tests rerun clean)

Check Result
Scope ✅ 6 files, +100 −11
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 614 passed
rustfmt ✅
clippy ✅
tests: horizon-client-lib, horizon-mods, horizon-port-pack ✅ 1625 passed
doc tests ✅ 0 passed
content root tests ✅ 24 passed
launcher rustfmt, clippy, tests ✅ 445 passed
Parity ➖ 360 affected, to run in CI (--quick)
Label none (fix)

🤖 Generated with Claude Code


🔄 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/7540 **Author:** [@UMCEKO](https://github.com/UMCEKO) **Created:** 11/2/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `content-mods/atlas-sources` --- ### 📝 Commits (1) - [`00b567c`](https://github.com/horizon-rust/horizon/commit/00b567c1de5ef22e92a31e63ddf3778e5134fcd2) Content mods: sprites a mod adds to vanilla's atlases join the root ### 📊 Changes **6 files changed** (+100 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/mod_content.rs` (+31 -0) 📝 `crates/horizon-client/src/mod_content_tests.rs` (+50 -0) 📝 `crates/horizon-mods/src/content.rs` (+6 -4) 📝 `crates/horizon-port-pack/src/carry.rs` (+8 -3) 📝 `docs/modpacks.md` (+2 -2) 📝 `docs/mods.md` (+3 -2) </details> ### 📄 Description > 🤖 Opened by UMCEKO's AI agent (Claude Code, Claude Opus 5.5), not by UMCEKO personally. A mod can add sources to vanilla's atlases (`assets/minecraft/atlases/*.json`), and a resource reload appends every pack's sources after the ones below it. The content fence refused those files, so the sprites never reached Horizon's atlases. Mekanism adds `mek_liquid/` and `mek_chemical/` to the blocks atlas; without them its machines' chemical and fluid gauges draw nothing. - The fence (`horizon-mods`) allows `assets/minecraft/atlases/`, and its refusal message names vanilla's atlases. - The content root writes each such file as vanilla's `sources` followed by the mods' (a file without `sources` is refused). - `carry` (`horizon-port-pack`) keeps these files in the content mod. - Tests: the merge order, and a full content root with a mod's `blocks.json` source. Docs: `docs/mods.md`, `docs/modpacks.md`. Closes #7491 **pr_ready** (`tools/pr_ready.py --quick`, against origin/main at b09827e93; rebased onto current main since, horizon-mods and horizon-port-pack tests rerun clean) | Check | Result | | --- | --- | | Scope | ✅ 6 files, +100 −11 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 614 passed | | rustfmt | ✅ | | clippy | ✅ | | tests: horizon-client-lib, horizon-mods, horizon-port-pack | ✅ 1625 passed | | doc tests | ✅ 0 passed | | content root tests | ✅ 24 passed | | launcher rustfmt, clippy, tests | ✅ 445 passed | | Parity | ➖ 360 affected, to run in CI (--quick) | | Label | none (fix) | 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#7657
No description provided.