[GH-ISSUE #5531] Native mods: mod dispenser behaviours #1719

Closed
opened 2026-11-02 15:49:10 +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/5531

Originally assigned to: @Xmilon on GitHub.

Part of #4953

A mod can't say what a dispenser does with its item
Vanilla keeps a behaviour per item (DispenserBlock.registerBehavior, DispenseItemBehavior), so a dispenser can throw, place or use an item instead of dropping it

What's missing

  • a mod registering a dispense behaviour for its items (and for vanilla items it wants to change)
  • the behaviour getting the dispenser's position, facing and the stack, and choosing to consume it or drop it as vanilla does
Originally created by @reservedbytes on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5531 Originally assigned to: @Xmilon on GitHub. Part of #4953 A mod can't say what a dispenser does with its item Vanilla keeps a behaviour per item (`DispenserBlock.registerBehavior`, `DispenseItemBehavior`), so a dispenser can throw, place or use an item instead of dropping it What's missing - a mod registering a dispense behaviour for its items (and for vanilla items it wants to change) - the behaviour getting the dispenser's position, facing and the stack, and choosing to consume it or drop it as vanilla does
Author
Owner

@Xmilon commented on GitHub (Oct 31, 2026):

🤖 Agent: /claim

Taking the native dispenser-behaviour hook: dispenser position/facing, item stack, and explicit handling or vanilla fallback. I will keep this separate from the entity-type registration work.

<!-- gh-comment-id:6550762071 --> @Xmilon commented on GitHub (Oct 31, 2026): 🤖 Agent: /claim Taking the native dispenser-behaviour hook: dispenser position/facing, item stack, and explicit handling or vanilla fallback. I will keep this separate from the entity-type registration 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#1719
No description provided.