[PR #631] [MERGED] horizon-port-pack carry: templates and numbers from the NeoForge oracle, 1.21.1 loot upgraded #2682

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/631
Author: @ludovic111
Created: 10/17/2026
Status: ✅ Merged
Merged: 10/17/2026
Merged by: @ludovic111

Base: main ← Head: feat/port-pack-oracle-carry


📝 Commits (2)

  • 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

📊 Changes

17 files changed (+1003 additions, -93 deletions)

View changed files

📝 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 (+21 -8)
📝 docs/mods.md (+6 -3)

📄 Description

horizon-port-pack carry stops guessing: with facts from a dev-only NeoForge oracle (#632 exports them), each mod block gets the right vanilla template and the mod's own numbers. Carrying the seven real ATM10 mods also showed what the guesses missed:

  • Loot tables. 1.21.1's conditions lists, functions and condition/function kinds become 26.3's single condition, modifier and type. Silk-touch and shears tool matches become minecraft:tool/can_silk_touch and can_shear. Before this, every drop condition was ignored: glass dropped itself by hand, upper door halves dropped doors, and double slabs dropped one slab. The upgrade is context-aware and idempotent, so 26.3 tables pass through unchanged.
  • Templates from the oracle. <work>/oracle/facts.json gives every registered block a vanilla template of the same vanilla class and states. The template is the one that best matches its shapes, sounds, BlockSetType and WoodType. The block keeps the mod's own hardness, blast resistance, light, tool need, friction, map colour and sounds. Items get their stack size and rarity. The carry report lists what a template does not reproduce, and why a block was left out.
  • Convention tags that a recipe uses (c:dyes/red) are written from the oracle's tags, keeping only vanilla and the mod's own members. The jar's own c tags stay inside the mod.
  • Without the oracle, blockstates that omit properties their models ignore (powered, waterlogged) still find their template, and names choose between fences and panes, and between doors and trapdoors.
  • version = "${file.jarVersion}" is read from MANIFEST.MF. --resources <prepared> limits templates to the blocks Horizon has.

Jars and ports stay local (work folder under /tmp). Nothing from a mod is committed.

Stack: #630 → this → #632 → #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/631 **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/port-pack-oracle-carry` --- ### 📝 Commits (2) - [`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 ### 📊 Changes **17 files changed** (+1003 additions, -93 deletions) <details> <summary>View changed files</summary> 📝 `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` (+21 -8) 📝 `docs/mods.md` (+6 -3) </details> ### 📄 Description `horizon-port-pack carry` stops guessing: with facts from a dev-only NeoForge oracle (#632 exports them), each mod block gets the right vanilla template and the mod's own numbers. Carrying the seven real ATM10 mods also showed what the guesses missed: - **Loot tables.** 1.21.1's `conditions` lists, `functions` and `condition`/`function` kinds become 26.3's single `condition`, `modifier` and `type`. Silk-touch and shears tool matches become `minecraft:tool/can_silk_touch` and `can_shear`. Before this, every drop condition was ignored: glass dropped itself by hand, upper door halves dropped doors, and double slabs dropped one slab. The upgrade is context-aware and idempotent, so 26.3 tables pass through unchanged. - **Templates from the oracle.** `<work>/oracle/facts.json` gives every registered block a vanilla template of the same vanilla class and states. The template is the one that best matches its shapes, sounds, BlockSetType and WoodType. The block keeps the mod's own hardness, blast resistance, light, tool need, friction, map colour and sounds. Items get their stack size and rarity. The carry report lists what a template does not reproduce, and why a block was left out. - **Convention tags** that a recipe uses (`c:dyes/red`) are written from the oracle's tags, keeping only vanilla and the mod's own members. The jar's own `c` tags stay inside the mod. - **Without the oracle**, blockstates that omit properties their models ignore (`powered`, `waterlogged`) still find their template, and names choose between fences and panes, and between doors and trapdoors. - `version = "${file.jarVersion}"` is read from MANIFEST.MF. `--resources <prepared>` limits templates to the blocks Horizon has. Jars and ports stay local (work folder under /tmp). Nothing from a mod is committed. Stack: #630 → **this** → #632 → #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#2682
No description provided.