[GH-ISSUE #5522] Native mods: change vanilla loot tables and drops #1711

Closed
opened 2026-11-02 15:49:07 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @reservedbytes on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5522

Part of #4953

A mod can't add to or change a loot table it didn't make (a chest's loot, a block's or a mob's drops)
NeoForge has LootTableLoadEvent and global loot modifiers, and Fabric has LootTableEvents.MODIFY / MODIFY_DROPS, so a mod can add pools or entries to vanilla's tables
Mod loot functions and conditions are #5451, this is the other half: editing existing tables

What's missing

  • a mod adding pools or entries to an existing loot table when tables load
  • a mod changing a block's or entity's drops as they happen, with the loot context
Originally created by @reservedbytes on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5522 Part of #4953 A mod can't add to or change a loot table it didn't make (a chest's loot, a block's or a mob's drops) NeoForge has `LootTableLoadEvent` and global loot modifiers, and Fabric has `LootTableEvents.MODIFY` / `MODIFY_DROPS`, so a mod can add pools or entries to vanilla's tables Mod loot functions and conditions are #5451, this is the other half: editing existing tables What's missing - a mod adding pools or entries to an existing loot table when tables load - a mod changing a block's or entity's drops as they happen, with the loot context
Author
Owner

@kira-horizon[bot] commented on GitHub (Oct 31, 2026):

Claimed by ! on Discord (GitHub: some-du6e), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #5522).

<!-- gh-comment-id:6549957498 --> @kira-horizon[bot] commented on GitHub (Oct 31, 2026): Claimed by `!` on Discord (GitHub: `some-du6e`), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #5522). <!-- kira:work -->
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#1711
No description provided.