[PR #632] [MERGED] Per-mod parity harness against a dev-only NeoForge oracle #2684

Closed
opened 2026-11-02 15:58:13 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: feat/neoforge-oracle-harness


📝 Commits (3)

  • ddc115e Content mods: load real carried-over mods (large tables, convention tags, mod recipes)
  • 886def4 horizon-port-pack carry: templates and numbers from the NeoForge oracle, 1.21.1 loot upgraded
  • 32f5f01 Per-mod parity harness against a dev-only NeoForge oracle

📊 Changes

22 files changed (+2131 additions, -95 deletions)

View changed files

➕ crates/horizon-client/examples/mod_port_probe.rs (+271 -0)
📝 crates/horizon-client/src/collisions.rs (+1 -1)
📝 crates/horizon-client/src/items.rs (+14 -6)
📝 crates/horizon-client/src/light.rs (+1 -1)
📝 crates/horizon-client/src/mod_content.rs (+81 -2)
📝 crates/horizon-client/src/mod_content_tests.rs (+18 -4)
📝 crates/horizon-client/src/models.rs (+1 -1)
📝 crates/horizon-client/src/motion.rs (+1 -1)
📝 crates/horizon-client/src/stations.rs (+17 -10)
📝 crates/horizon-mods/src/content.rs (+10 -6)
📝 crates/horizon-port-pack/src/carry.rs (+358 -35)
📝 crates/horizon-port-pack/src/jar.rs (+16 -0)
📝 crates/horizon-port-pack/src/main.rs (+56 -7)
➕ crates/horizon-port-pack/src/oracle.rs (+384 -0)
📝 crates/horizon-world/src/nbt.rs (+12 -0)
📝 crates/horizon-world/src/worldgen/generator_blocks.rs (+6 -8)
📝 docs/modpacks.md (+66 -10)
📝 docs/mods.md (+6 -3)
➕ mods/horizon/src/neoforge-oracle/java/dev/horizonlab/neoforge/FactsExporter.java (+426 -0)
➕ mods/horizon/src/neoforge-oracle/resources/META-INF/neoforge.mods.toml (+11 -0)

...and 2 more files

📄 Description

The per-mod harness from the modpack design, for data-tier mods, against a dev-only NeoForge oracle.

  • tools/neoforge_oracle.py installs a NeoForge 21.1.259 server (ATM10's version) under .local/neoforge-oracle. It builds the exporter in mods/horizon/src/neoforge-oracle (our code, MIT, never shipped) and runs it headless with the user's jars, in about 30 s. It writes every block of the mods' namespaces: class chain and states; per state the hardness, light, tool need, map colour, sounds, outline and collision; drops for hand, diamond tools, shears and silk touch; placement; BlockSetType and WoodType. It also writes the namespaces' items, recipes and tags, plus vanilla's blocks so templates can be chosen.
  • crates/horizon-client/examples/mod_port_probe.rs builds the content root from the carried mods and dumps what Horizon's loaders make of the same things.
  • tools/mod_port_harness.py compares the two per mod and writes <work>/mods/<id>/harness/result.json. 1.21.1 sound events map to 26.3's through the vanilla blocks both versions have. Vanilla items newer than 1.21.1 are not counted against a recipe.

Results on ATM10's own jars (all MIT), checks passed / compared

mod blocks properties sounds shapes drops placement tags recipes items
Macaw's Trapdoors 179/179 11456/11456 11456/11456 11456/11456 10024/10024 358/358 534/534 191/191 191/191
Macaw's Doors 239/245 15296/15296 15296/15296 12352/15296 13384/13384 478/478 941/941 256/257 251/257
Macaw's Fences 150/180 4800/4800 4800/4800 4032/4800 33600/33600 300/300 432/432 222/222 150/180
Macaw's Paths 234/315 4602/4602 4602/4602 4472/4602 6734/6734 468/468 416/416 315/315 234/315
Glassential 105/114 5177/5177 5177/5177 4727/5177 6447/6447 210/210 105/105 143/143 106/115
Factory Blocks 42/49 42/42 0/42 42/42 294/294 84/84 42/42 1/1 42/49
Cloud Glass 16/16 16/16 16/16 0/16 112/112 32/32 – 31/31 16/16

Every drop, tag and placement matches, and every recipe but one of Doors'. What still fails is what API 0.2 cannot express: shapes of their own (Doors, Fences, Paths, Glassential, Cloud Glass's collision), sound events of their own (Factory Blocks), and blocks whose class no vanilla block shares, which are left out with the reason. Moog's Voyager Structures (worldgen only) is carried but not read yet. Jars, facts and results stay in the work folder.

Stack: #630 → #631 → this → #633 → #648 (state limit, measured against NeoForge); #647 (textures past 2048 layers) is separate, on main. Not merged by me.

Checks

  • cargo fmt --all --check: clean
  • cargo clippy --workspace --all-targets -- -D warnings (release profile, -j $FLEET_LOAD_JOBS): clean
  • Crate tests: horizon-client mod_content (6), horizon-mods, horizon-port-pack (17): pass
  • Local parity on the top of this stack (tools/parity.py --changed origin/main, Mac mini, 3 jobs): 293 passed, 0 failed in 225 min

🤖 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/632 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/17/2026 **Status:** ✅ Merged **Merged:** 10/17/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/neoforge-oracle-harness` --- ### 📝 Commits (3) - [`ddc115e`](https://github.com/horizon-rust/horizon/commit/ddc115e969690c3a868283b540af534cc9465310) Content mods: load real carried-over mods (large tables, convention tags, mod recipes) - [`886def4`](https://github.com/horizon-rust/horizon/commit/886def4360a904802f30d1e053281ef35cf6b4d6) horizon-port-pack carry: templates and numbers from the NeoForge oracle, 1.21.1 loot upgraded - [`32f5f01`](https://github.com/horizon-rust/horizon/commit/32f5f01e22fb4fcbb0017d4951560d27459f8525) Per-mod parity harness against a dev-only NeoForge oracle ### 📊 Changes **22 files changed** (+2131 additions, -95 deletions) <details> <summary>View changed files</summary> ➕ `crates/horizon-client/examples/mod_port_probe.rs` (+271 -0) 📝 `crates/horizon-client/src/collisions.rs` (+1 -1) 📝 `crates/horizon-client/src/items.rs` (+14 -6) 📝 `crates/horizon-client/src/light.rs` (+1 -1) 📝 `crates/horizon-client/src/mod_content.rs` (+81 -2) 📝 `crates/horizon-client/src/mod_content_tests.rs` (+18 -4) 📝 `crates/horizon-client/src/models.rs` (+1 -1) 📝 `crates/horizon-client/src/motion.rs` (+1 -1) 📝 `crates/horizon-client/src/stations.rs` (+17 -10) 📝 `crates/horizon-mods/src/content.rs` (+10 -6) 📝 `crates/horizon-port-pack/src/carry.rs` (+358 -35) 📝 `crates/horizon-port-pack/src/jar.rs` (+16 -0) 📝 `crates/horizon-port-pack/src/main.rs` (+56 -7) ➕ `crates/horizon-port-pack/src/oracle.rs` (+384 -0) 📝 `crates/horizon-world/src/nbt.rs` (+12 -0) 📝 `crates/horizon-world/src/worldgen/generator_blocks.rs` (+6 -8) 📝 `docs/modpacks.md` (+66 -10) 📝 `docs/mods.md` (+6 -3) ➕ `mods/horizon/src/neoforge-oracle/java/dev/horizonlab/neoforge/FactsExporter.java` (+426 -0) ➕ `mods/horizon/src/neoforge-oracle/resources/META-INF/neoforge.mods.toml` (+11 -0) _...and 2 more files_ </details> ### 📄 Description The per-mod harness from the modpack design, for data-tier mods, against a **dev-only NeoForge oracle**. - `tools/neoforge_oracle.py` installs a NeoForge 21.1.259 server (ATM10's version) under `.local/neoforge-oracle`. It builds the exporter in `mods/horizon/src/neoforge-oracle` (our code, MIT, never shipped) and runs it headless with the user's jars, in about 30 s. It writes every block of the mods' namespaces: class chain and states; per state the hardness, light, tool need, map colour, sounds, outline and collision; drops for hand, diamond tools, shears and silk touch; placement; BlockSetType and WoodType. It also writes the namespaces' items, recipes and tags, plus vanilla's blocks so templates can be chosen. - `crates/horizon-client/examples/mod_port_probe.rs` builds the content root from the carried mods and dumps what Horizon's loaders make of the same things. - `tools/mod_port_harness.py` compares the two per mod and writes `<work>/mods/<id>/harness/result.json`. 1.21.1 sound events map to 26.3's through the vanilla blocks both versions have. Vanilla items newer than 1.21.1 are not counted against a recipe. ### Results on ATM10's own jars (all MIT), checks passed / compared | mod | blocks | properties | sounds | shapes | drops | placement | tags | recipes | items | |---|---|---|---|---|---|---|---|---|---| | Macaw's Trapdoors | 179/179 | 11456/11456 | 11456/11456 | 11456/11456 | 10024/10024 | 358/358 | 534/534 | 191/191 | 191/191 | | Macaw's Doors | 239/245 | 15296/15296 | 15296/15296 | 12352/15296 | 13384/13384 | 478/478 | 941/941 | 256/257 | 251/257 | | Macaw's Fences | 150/180 | 4800/4800 | 4800/4800 | 4032/4800 | 33600/33600 | 300/300 | 432/432 | 222/222 | 150/180 | | Macaw's Paths | 234/315 | 4602/4602 | 4602/4602 | 4472/4602 | 6734/6734 | 468/468 | 416/416 | 315/315 | 234/315 | | Glassential | 105/114 | 5177/5177 | 5177/5177 | 4727/5177 | 6447/6447 | 210/210 | 105/105 | 143/143 | 106/115 | | Factory Blocks | 42/49 | 42/42 | 0/42 | 42/42 | 294/294 | 84/84 | 42/42 | 1/1 | 42/49 | | Cloud Glass | 16/16 | 16/16 | 16/16 | 0/16 | 112/112 | 32/32 | – | 31/31 | 16/16 | Every drop, tag and placement matches, and every recipe but one of Doors'. What still fails is what API 0.2 cannot express: shapes of their own (Doors, Fences, Paths, Glassential, Cloud Glass's collision), sound events of their own (Factory Blocks), and blocks whose class no vanilla block shares, which are left out with the reason. Moog's Voyager Structures (worldgen only) is carried but not read yet. Jars, facts and results stay in the work folder. Stack: #630 → #631 → **this** → #633 → #648 (state limit, measured against NeoForge); #647 (textures past 2048 layers) is separate, on main. Not merged by me. ## Checks - `cargo fmt --all --check`: clean - `cargo clippy --workspace --all-targets -- -D warnings` (release profile, `-j $FLEET_LOAD_JOBS`): clean - Crate tests: `horizon-client` mod_content (6), `horizon-mods`, `horizon-port-pack` (17): pass - Local parity on the top of this stack (`tools/parity.py --changed origin/main`, Mac mini, 3 jobs): **293 passed, 0 failed** in 225 min 🤖 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-02 15:58:13 +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#2684
No description provided.