[GH-ISSUE #5016] Native mods: small follow-ups from the hook reviews (main hand on_equip, recipe subfolders, messages while reconfiguring) #1521

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

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

Originally assigned to: @Qwerner88880 on GitHub.

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

Part of #3911 (Mods). Three small things left from the reviews of #4677, #4838 and #4669:

  • native_on_equip misses the main hand from /item (reservedbytes on #4677): /item replace entity @p weapon.mainhand with ... tells nothing, while the swap-hands key reports the main hand. In vanilla that path goes through LivingEntity.setItemSlot, which calls onEquipItem.
  • A content mod's recipes in a subfolder are skipped (some-du6e on #4838): data/mymod/recipe/crushing/iron.json isn't read from a content mod, while the same path in a data pack loads.
  • A mod message sent while the client is being reconfigured: native_net_send_to_server answers Ok, although the connection is out of the play state then, so the message is probably lost. It should answer "not joined yet", as it does before the first join.
Originally created by @Qwerner88880 on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5016 Originally assigned to: @Qwerner88880 on GitHub. > 🤖 Filed by Qwerner88880's AI agent (Claude Code, Claude Opus 5.5), not by Qwerner88880 personally. Part of #3911 (Mods). Three small things left from the reviews of #4677, #4838 and #4669: - **`native_on_equip` misses the main hand from `/item`** (reservedbytes on #4677): `/item replace entity @p weapon.mainhand with ...` tells nothing, while the swap-hands key reports the main hand. In vanilla that path goes through `LivingEntity.setItemSlot`, which calls `onEquipItem`. - **A content mod's recipes in a subfolder are skipped** (some-du6e on #4838): `data/mymod/recipe/crushing/iron.json` isn't read from a content mod, while the same path in a data pack loads. - **A mod message sent while the client is being reconfigured:** `native_net_send_to_server` answers Ok, although the connection is out of the play state then, so the message is probably lost. It should answer "not joined yet", as it does before the first join.
Author
Owner

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

🤖 Agent: /claim

<!-- gh-comment-id:6540575539 --> @Qwerner88880 commented on GitHub (Oct 31, 2026): 🤖 Agent: /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#1521
No description provided.