[PR #1538] [MERGED] Programmer Art and High Contrast: prepare them from the asset index (Golden Days looked modern) #3569

Closed
opened 2026-11-03 04:10:29 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: fix/builtin-packs


📝 Commits (1)

  • 8cce2e2 Prepare: import Programmer Art and High Contrast from the asset index

📊 Changes

4 files changed (+92 additions, -17 deletions)

View changed files

📝 crates/horizon-prepare/src/lib.rs (+2 -2)
📝 crates/horizon-prepare/src/main.rs (+8 -2)
📝 crates/horizon-prepare/src/sounds.rs (+80 -12)
📝 docs/resource-packs.md (+2 -1)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

What

Preparation now copies vanilla's two built-in resource packs, Programmer Art and High Contrast, from the asset index into the prepared resources (assets/minecraft/resourcepacks/*.zip). Without them, Horizon's pack list never offers Programmer Art. A new horizon-prepare packs subcommand repairs resources that were already prepared, the same way fonts and panorama do.

Why (Discord: Golden Days "uses modern Jappa textures")

Golden Days Base 16.5 says in its usage.txt: "This pack is meant to be put over Programmer Art." It covers about 2,060 textures and leaves the classic look of 724 more to Programmer Art (317 items, 253 blocks, 109 entities, 24 effect icons, …). Some examples are furnaces, stone bricks, crafting tables, pumpkins, TNT, logs, tools, buckets and paper.

  • Vanilla 26.3: ClientPackSource → BuiltInPackSource.populatePackList lists minecraft:resourcepacks of the vanilla pack. That pack includes the asset index, which holds minecraft/resourcepacks/programmer_art.zip (sha1 13ab19f0…) and high_contrast.zip (3d50584e…). The client JAR has neither.
  • Horizon: packs::discover already reads assets/minecraft/resourcepacks/{programmer_art,high_contrast}.zip. But horizon-prepare imports only the sounds, the panorama and Unifont from the index, so those files never existed and Programmer Art never showed up.

The pack loader itself is right: overlays (patch_21_4 … patch_26_2, shaders_*_26_3 active and [0,0] ones skipped), item definitions, models and atlases all apply. No other cause turned up.

How tested

  • cargo test -p horizon-prepare: 29 pass. A new test checks that packs puts both zips where the pack list finds them. full_preparation_keeps_placeholders_when_panorama_is_unavailable now expects the packs line too. Without the optional_assets change it fails (checked).
  • Real data: I ran horizon-prepare packs against the real 26.3 asset index (34.json, e787e8af) and objects. Output: Built-in pack assets ready: 2 files, 0.7 MB, and both zips land with their index SHA-1.
  • In game (Mac mini, Metal, offscreen, same scene): Golden Days alone gives modern furnace, stone bricks, crafting table, note blocks, TNT, logs, paper, bucket and axe. Programmer Art + Golden Days (the resources with the zip) shows them all classic.
  • Every item icon (1,658 items, survival inventory): with Golden Days alone, 320 icons look the same as no pack. With Programmer Art + Golden Days, 82 do. 78 of those 82 have no texture in either pack (music discs, banners, trim templates, etc.: they are the same in vanilla). The other 4 differ only in hand transforms or an unseen face (bow, calibrated sculk sensor), or have an item definition with a vanilla fallback (soul torch, wheat seeds).
  • fmt; cargo clippy -p horizon-prepare --all-targets -D warnings is clean. tools/parity.py --changed origin/main: 0 harnesses depend on these files.

Needs Ludovic

Existing installs keep the resources they already have, and new versions copy those resources (reuse_prepared). Players get the packs after one Prepare again on the Play page once this ships. If you want this to happen without the player doing anything, the launcher could call horizon_prepare::packs for prepared versions that lack the packs. That is a separate launcher PR, if you want it.

🤖 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/1538 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/24/2026 **Status:** ✅ Merged **Merged:** 10/24/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/builtin-packs` --- ### 📝 Commits (1) - [`8cce2e2`](https://github.com/horizon-rust/horizon/commit/8cce2e2f8a1b46230c59e47394ea50c97ae33219) Prepare: import Programmer Art and High Contrast from the asset index ### 📊 Changes **4 files changed** (+92 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-prepare/src/lib.rs` (+2 -2) 📝 `crates/horizon-prepare/src/main.rs` (+8 -2) 📝 `crates/horizon-prepare/src/sounds.rs` (+80 -12) 📝 `docs/resource-packs.md` (+2 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What Preparation now copies vanilla's two built-in resource packs, Programmer Art and High Contrast, from the asset index into the prepared resources (`assets/minecraft/resourcepacks/*.zip`). Without them, Horizon's pack list never offers Programmer Art. A new `horizon-prepare packs` subcommand repairs resources that were already prepared, the same way `fonts` and `panorama` do. ## Why (Discord: Golden Days "uses modern Jappa textures") Golden Days Base 16.5 says in its `usage.txt`: *"This pack is meant to be put over Programmer Art."* It covers about 2,060 textures and leaves the classic look of 724 more to Programmer Art (317 items, 253 blocks, 109 entities, 24 effect icons, …). Some examples are furnaces, stone bricks, crafting tables, pumpkins, TNT, logs, tools, buckets and paper. - Vanilla 26.3: `ClientPackSource` → `BuiltInPackSource.populatePackList` lists `minecraft:resourcepacks` of the vanilla pack. That pack includes the asset index, which holds `minecraft/resourcepacks/programmer_art.zip` (sha1 `13ab19f0…`) and `high_contrast.zip` (`3d50584e…`). The client JAR has neither. - Horizon: `packs::discover` already reads `assets/minecraft/resourcepacks/{programmer_art,high_contrast}.zip`. But `horizon-prepare` imports only the sounds, the panorama and Unifont from the index, so those files never existed and Programmer Art never showed up. The pack loader itself is right: overlays (`patch_21_4` … `patch_26_2`, `shaders_*_26_3` active and `[0,0]` ones skipped), item definitions, models and atlases all apply. No other cause turned up. ## How tested - `cargo test -p horizon-prepare`: 29 pass. A new test checks that `packs` puts both zips where the pack list finds them. `full_preparation_keeps_placeholders_when_panorama_is_unavailable` now expects the packs line too. Without the `optional_assets` change it **fails** (checked). - Real data: I ran `horizon-prepare packs` against the real 26.3 asset index (`34.json`, e787e8af) and objects. Output: `Built-in pack assets ready: 2 files, 0.7 MB`, and both zips land with their index SHA-1. - In game (Mac mini, Metal, offscreen, same scene): Golden Days alone gives modern furnace, stone bricks, crafting table, note blocks, TNT, logs, paper, bucket and axe. Programmer Art + Golden Days (the resources with the zip) shows them all classic. - Every item icon (1,658 items, survival inventory): with Golden Days alone, 320 icons look the same as no pack. With Programmer Art + Golden Days, 82 do. 78 of those 82 have no texture in either pack (music discs, banners, trim templates, etc.: they are the same in vanilla). The other 4 differ only in hand transforms or an unseen face (bow, calibrated sculk sensor), or have an item definition with a vanilla fallback (soul torch, wheat seeds). - fmt; `cargo clippy -p horizon-prepare --all-targets -D warnings` is clean. `tools/parity.py --changed origin/main`: 0 harnesses depend on these files. ## Needs Ludovic Existing installs keep the resources they already have, and new versions copy those resources (`reuse_prepared`). Players get the packs after one **Prepare again** on the Play page once this ships. If you want this to happen without the player doing anything, the launcher could call `horizon_prepare::packs` for prepared versions that lack the packs. That is a separate launcher PR, if you want it. 🤖 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>
bsakaguchi 2026-11-03 04:10:29 +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#3569
No description provided.