[GH-ISSUE #6803] Can't leash/unleash mobs with a lead #2221

Closed
opened 2026-11-02 15:53:07 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @kira-horizon[bot] on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6803

Originally assigned to: @4404c on GitHub.

Version: Nightly 2026-11-01 · c9d474d · OS: Windows 11 (25H2), Intel i5-10400f, RTX 3060 Ti (copied from the report)

What I did:
RMB click on a mob while holding a lead to leash it;
Click on a nearby fence to leash the mob to this fence.
What happened: The lead appear on the fence only for a brief moment, then it goes back [attached] to me and the mob.
What I expected: The mob would become leashed to the fence, like in vanilla Minecraft.
Does it happen every time? - Yes, after almost every click (like 99% of times). Though sometimes it does succeed on leashing an animal to a fence, but only after smashing the RMB dozens of times, and to unleash it back - it requires the same smashing since it unleashes it for the same brief moment.
Horizon version: Nightly 2026-11-01 · c9d474d (this version contained some other lead f​ix, before it - leasing to a fence wasn't working at all, so this current bug might be connected to that)
OS, CPU, GPU: Windows 11 (25H2), Intel i5-10400f, RTX 3060 Ti

Reported on Discord by Ling in #horizon-bugs · Discord thread
Tags: gameplay

Attachments (Discord links expire after a while; the thread keeps them)

Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.

Originally created by @kira-horizon[bot] on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6803 Originally assigned to: @4404c on GitHub. **Version:** Nightly 2026-11-01 · c9d474d · **OS:** Windows 11 (25H2), Intel i5-10400f, RTX 3060 Ti <sub>(copied from the report)</sub> > What I did: > RMB click on a mob while holding a lead to leash it; > Click on a nearby fence to leash the mob to this fence. > What happened: The lead appear on the fence only for a brief moment, then it goes back [attached] to me and the mob. > What I expected: The mob would become leashed to the fence, like in vanilla Minecraft. > Does it happen every time? - Yes, after almost every click (like 99% of times). Though sometimes it does succeed on leashing an animal to a fence, but only after smashing the RMB dozens of times, and to *un*leash it back - it requires the same smashing since it unleashes it for the same brief moment. > Horizon version: Nightly 2026-11-01 · c9d474d (this version contained some other lead f​ix, before it - leasing to a fence wasn't working at all, so this current bug might be connected to that) > OS, CPU, GPU: Windows 11 (25H2), Intel i5-10400f, RTX 3060 Ti Reported on Discord by **Ling** in #horizon-bugs · [Discord thread](https://discord.com/channels/1559227979002028052/1566690981540134982) Tags: gameplay **Attachments** (Discord links expire after a while; the thread keeps them) - [Medaltvhorizon20261102162741088.mp4](https://cdn.discordapp.com/attachments/1566690981540134982/1566690982173343825/Medaltvhorizon20261102162741088.mp4?ex=6ae9762d&is=6ae824ad&hm=cce9fdd9173aa6d6e661afcd709c02761194a9aadfe14302195bee182bb818fd&) <sub>Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.</sub><!-- kira -->
Author
Owner

@DUzzL commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim
Filed by DUzzL's AI agent (Claude Code), not by DUzzL personally. I will reproduce the lead flicker when leashing a mob to a fence and compare it with vanilla 26.3 (LeadItem.bindPlayerMobs, Leashable.setLeashedTo and the interaction order). I will keep clear of #6798 (where a golem's or fox's lead hangs).

<!-- gh-comment-id:6570152756 --> @DUzzL commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim Filed by DUzzL's AI agent (Claude Code), not by DUzzL personally. I will reproduce the lead flicker when leashing a mob to a fence and compare it with vanilla 26.3 (LeadItem.bindPlayerMobs, Leashable.setLeashedTo and the interaction order). I will keep clear of #6798 (where a golem's or fox's lead hangs).
Author
Owner

@DUzzL commented on GitHub (Nov 2, 2026):

🤖 Agent: /unclaim
Written by DUzzL's AI agent (Claude Code), not by DUzzL personally. On current main (single player, server-thread path, scratch world) a short click ties the cow to the fence and it stays tied. What looks like the lead flashing on the fence and returning to the player is vanilla behaviour when the right button is held for about 5 ticks (about 200 ms): Minecraft.startUseItem sets rightClickDelay = 4 and repeats while the button is down, and the second use hits the knot, where LeashFenceKnotEntity.interact hands the mobs back to the player. Horizon's interact_knot matches vanilla's LeadItem.bindPlayerMobs and LeashFenceKnotEntity.interact. I did not test a LAN or server connection or a real mouse. Could you say whether you hold the button down when clicking, and whether this was single player or a server? Releasing the claim.

<!-- gh-comment-id:6570666200 --> @DUzzL commented on GitHub (Nov 2, 2026): 🤖 Agent: /unclaim Written by DUzzL's AI agent (Claude Code), not by DUzzL personally. On current main (single player, server-thread path, scratch world) a short click ties the cow to the fence and it stays tied. What looks like the lead flashing on the fence and returning to the player is vanilla behaviour when the right button is held for about 5 ticks (about 200 ms): `Minecraft.startUseItem` sets `rightClickDelay = 4` and repeats while the button is down, and the second use hits the knot, where `LeashFenceKnotEntity.interact` hands the mobs back to the player. Horizon's `interact_knot` matches vanilla's `LeadItem.bindPlayerMobs` and `LeashFenceKnotEntity.interact`. I did not test a LAN or server connection or a real mouse. Could you say whether you hold the button down when clicking, and whether this was single player or a server? Releasing the claim.
bsakaguchi 2026-11-03 04:05:44 +07:00
Author
Owner

@4404c commented on GitHub (Nov 2, 2026):

/claim

<!-- gh-comment-id:6580002696 --> @4404c commented on GitHub (Nov 2, 2026): /claim
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#2221
No description provided.