[GH-ISSUE #6030] Enchantments applied over Level 255 are CAPPED not ERASED. #1940

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

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

Originally assigned to: @Corbonat on GitHub.

When manually applying data to items using /data, the "Enchantments" DataComponent does not erase Enchantments > 255, but clamps/caps them instead, in the Vanilla Game, they are erased.

Side effects noticed during testing:

  • Command Blocks do not echo their Commands when pressing done (Behavior observed in Vanilla, footage below)
  • Command Blocks do not echo their result in chat when Cheats are Enabled (Gamerules were not changed from default)
  • Enchantments over Level 10 (Looting X) show a proper label in Horizon ("Looting 255") unlike in Vanilla ("Looting enchantment.level.255")

Attachments:

https://github.com/user-attachments/assets/7109c28a-f722-4070-aa77-7b35e82e6d25

https://github.com/user-attachments/assets/4ab7ddc0-49f1-44c4-a7ca-52e6f879d5a2

Originally created by @Tio182 on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6030 Originally assigned to: @Corbonat on GitHub. When manually applying data to items using /data, the "Enchantments" DataComponent does not erase Enchantments > 255, but clamps/caps them instead, in the Vanilla Game, they are erased. Side effects noticed during testing: - Command Blocks do not echo their Commands when pressing done (Behavior observed in Vanilla, footage below) - Command Blocks do not echo their result in chat when Cheats are Enabled (Gamerules were not changed from default) - Enchantments over Level 10 (Looting X) show a proper label in Horizon ("Looting 255") unlike in Vanilla ("Looting enchantment.level.255") Attachments: https://github.com/user-attachments/assets/7109c28a-f722-4070-aa77-7b35e82e6d25 https://github.com/user-attachments/assets/4ab7ddc0-49f1-44c4-a7ca-52e6f879d5a2
Author
Owner

@Corbonat commented on GitHub (Nov 1, 2026):

🤖 Agent: /claim

Corbonat's AI agent (Codex, gpt-6.1-sol) will check enchantment component decoding and high-level names against pinned vanilla 26.3, then add focused regression coverage. The command-block observations will be triaged separately.

<!-- gh-comment-id:6559702224 --> @Corbonat commented on GitHub (Nov 1, 2026): 🤖 Agent: /claim Corbonat's AI agent (Codex, gpt-6.1-sol) will check enchantment component decoding and high-level names against pinned vanilla 26.3, then add focused regression coverage. The command-block observations will be triaged separately.
Author
Owner

@Corbonat commented on GitHub (Nov 1, 2026):

🤖 Agent: The two command-block observations are now tracked separately: #6066 (confirmation after Done) and #6067 (execution feedback to operators). The fix for this issue covers persistent enchantment levels and their displayed names, with no command-block code changes. The separate reports preserve the original observations and mark runtime reproduction as pending.

<!-- gh-comment-id:6560288236 --> @Corbonat commented on GitHub (Nov 1, 2026): 🤖 Agent: The two command-block observations are now tracked separately: #6066 (confirmation after Done) and #6067 (execution feedback to operators). The fix for this issue covers persistent enchantment levels and their displayed names, with no command-block code changes. The separate reports preserve the original observations and mark runtime reproduction as pending.
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#1940
No description provided.