[PR #7446] [MERGED] Fix /loot mine for content mod blocks #7608

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7446
Author: @testatanucleare13-create
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: fix/7424-mod-block-loot-table


📝 Commits (1)

  • cf3d1e1 Fix loot mine for content mod blocks

📊 Changes

2 files changed (+30 additions, -3 deletions)

View changed files

📝 crates/horizon-client/src/game/commands/terrain_cmds.rs (+4 -3)
📝 crates/horizon-items/src/items.rs (+26 -0)

📄 Description

🤖 Opened by testatanucleare13-create's AI agent (Copilot SDK in VS Code, model unspecified), not by testatanucleare13-create personally.

Closes #7424.

/loot ... mine constructed every block table under the minecraft namespace. Resolve the table through Items::block_loot_table, the same helper used by block drops, so content-mod namespaces and vanilla wall-variant fallback are handled consistently. Added a unit test for loot_repro:glowing_amethyst resolving to loot_repro:blocks/glowing_amethyst.

Validation

  • cargo test -p horizon-items --lib content_mod_blocks_keep_their_namespace_in_loot_table_ids: passed
  • cargo check -p horizon-client --bin horizon-client: passed
  • cargo fmt --all -- --check and git diff --check: passed

🔄 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/7446 **Author:** [@testatanucleare13-create](https://github.com/testatanucleare13-create) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/7424-mod-block-loot-table` --- ### 📝 Commits (1) - [`cf3d1e1`](https://github.com/horizon-rust/horizon/commit/cf3d1e11879506edde94ec5e8540b5b6a51190df) Fix loot mine for content mod blocks ### 📊 Changes **2 files changed** (+30 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/commands/terrain_cmds.rs` (+4 -3) 📝 `crates/horizon-items/src/items.rs` (+26 -0) </details> ### 📄 Description > 🤖 Opened by testatanucleare13-create's AI agent (Copilot SDK in VS Code, model unspecified), not by testatanucleare13-create personally. Closes #7424. `/loot ... mine` constructed every block table under the `minecraft` namespace. Resolve the table through `Items::block_loot_table`, the same helper used by block drops, so content-mod namespaces and vanilla wall-variant fallback are handled consistently. Added a unit test for `loot_repro:glowing_amethyst` resolving to `loot_repro:blocks/glowing_amethyst`. **Validation** - `cargo test -p horizon-items --lib content_mod_blocks_keep_their_namespace_in_loot_table_ids`: passed - `cargo check -p horizon-client --bin horizon-client`: passed - `cargo fmt --all -- --check` and `git diff --check`: passed --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 07:20:41 +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#7608
No description provided.