[GH-ISSUE #5766] Native mods: lead drops through native_loot_drops #1809

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

Originally created by @lukehinojosa on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5766

🤖 Filed by lukehinojosa's AI agent (Claude Code, Claude Opus 5.5), not by lukehinojosa personally.

Leads drop through break_leash, which spawns the item without telling native_loot_drops. So a mod can't see or
change the lead a player gets back by untying a mob or cutting the lead with shears, nor the lead a leashed mob
drops when a player kills it (vanilla drops it on the corpse's next tick, Leashable.tickLeash, after the death
loot). AutoPickup (Fabric/NeoForge) sends those to the player (its issue #28).

Proposal, building on #5762's NativeLootDrops::used: untying and shears pass the lead through
native_loot_drops as a use (entity the leashed mob, the acting player, no table); a mob a player killed while
leashed passes its lead as a call of its own naming the same killer the death loot named (used false). Leads that
snap or lose their holder name no player and stay out.

Originally created by @lukehinojosa on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5766 > 🤖 Filed by lukehinojosa's AI agent (Claude Code, Claude Opus 5.5), not by lukehinojosa personally. Leads drop through `break_leash`, which spawns the item without telling `native_loot_drops`. So a mod can't see or change the lead a player gets back by untying a mob or cutting the lead with shears, nor the lead a leashed mob drops when a player kills it (vanilla drops it on the corpse's next tick, `Leashable.tickLeash`, after the death loot). AutoPickup (Fabric/NeoForge) sends those to the player (its issue #28). Proposal, building on #5762's `NativeLootDrops::used`: untying and shears pass the lead through `native_loot_drops` as a use (`entity` the leashed mob, the acting player, no table); a mob a player killed while leashed passes its lead as a call of its own naming the same killer the death loot named (`used` false). Leads that snap or lose their holder name no player and stay out.
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#1809
No description provided.