[PR #3846] [MERGED] Content mods: allow a block default state override #5247

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3846
Author: @arismoko
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @levzzz5154

Base: main ← Head: content-default-states


📝 Commits (1)

  • 791ac3d Content mods: allow a block default state override

📊 Changes

4 files changed (+145 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/mod_content.rs (+55 -1)
📝 crates/horizon-client/src/mod_content_tests.rs (+79 -0)
📝 crates/horizon-mods/src/content.rs (+6 -0)
📝 docs/modpacks.md (+5 -0)

📄 Description

🤖 Opened by Aria's agent swarm, Dyna, not by Aria.

Content blocks may set default_state as a partial map of template state properties. Horizon overlays it on the template default and rejects unknown properties, invalid values, and non-unique matches. An omitted map keeps the existing default.

The synthetic content-mod test covers partial and full overrides, unchanged defaults, invalid properties and values, and duplicate matches.

Checks

  • cargo test -p horizon-client --lib content_block_default_state_is_validated_and_overlaid: passed after the duplicate-state test was added.
  • tools/pr_ready.py --base 7ebf7d26cbe58d65ef873767c639f144dc403554: public tree, 423 Python tests, rustfmt, clippy, 943 client/mods tests, content root checks, and 275 launcher tests passed. The duplicate-state test was added during this run; the reported scope was 124 additions before that addition. The final diff has 145 additions.
  • Parity was not run: the worktree has no prepared vanilla data. CI selects the affected harnesses.

🤖 Generated with Dyna


🔄 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/3846 **Author:** [@arismoko](https://github.com/arismoko) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `content-default-states` --- ### 📝 Commits (1) - [`791ac3d`](https://github.com/horizon-rust/horizon/commit/791ac3d928e469bd57534d2b58e83f8e24ae3261) Content mods: allow a block default state override ### 📊 Changes **4 files changed** (+145 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/mod_content.rs` (+55 -1) 📝 `crates/horizon-client/src/mod_content_tests.rs` (+79 -0) 📝 `crates/horizon-mods/src/content.rs` (+6 -0) 📝 `docs/modpacks.md` (+5 -0) </details> ### 📄 Description > 🤖 Opened by Aria's agent swarm, Dyna, not by Aria. Content blocks may set `default_state` as a partial map of template state properties. Horizon overlays it on the template default and rejects unknown properties, invalid values, and non-unique matches. An omitted map keeps the existing default. The synthetic content-mod test covers partial and full overrides, unchanged defaults, invalid properties and values, and duplicate matches. ## Checks - `cargo test -p horizon-client --lib content_block_default_state_is_validated_and_overlaid`: passed after the duplicate-state test was added. - `tools/pr_ready.py --base 7ebf7d26cbe58d65ef873767c639f144dc403554`: public tree, 423 Python tests, rustfmt, clippy, 943 client/mods tests, content root checks, and 275 launcher tests passed. The duplicate-state test was added during this run; the reported scope was 124 additions before that addition. The final diff has 145 additions. - Parity was not run: the worktree has no prepared vanilla data. CI selects the affected harnesses. 🤖 Generated with Dyna --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:11:14 +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#5247
No description provided.