mojira.dev
MC-276587

Custom enchantments with slot "any" doesn't account for saddle slots

When making a custom enchantment or modifying a vanilla enchantment, one can set the applicable slots for the enchantment to be "any". However, this does not seem to take into account the slot for saddles, preventing any enchantment from taking effect if placed there.

Steps To Reproduce:
1. Load into a world with the saddle testing datapack attached. It adds saddles to the enchantable/equippable tag, and adds a new enchantment called "test saddle", which adds +2 to the user's movement but also has the prevent_armor_change effect component.
2. Find/spawn a horse and tame it.
3. Give it a standard saddle to observe the riding capabilities.
4. Enchant the saddle with "test saddle". Notice how the movement effect gets applied when the player is holding the item, signified by the FOV change.
5. Place the enchanted saddle into the horse's saddle slot, and observe any changes.

Expected Result:
The horse gets an increase to it's movement speed, but the saddle cannot be removed afterwards.

Actual Result:
No change to the horse's movement speed attribute, and the saddle can be freely removed from the horse.

Attachments

Comments 2

Thank you for your report!
After consideration, the issue is being closed as Invalid.

You have posted a feature request or a suggestion. This site is for bug reports only.
For suggestions, please visit The official Minecraft feedback site or visit the Minecraft Feedback Discord server.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

miziragamez

(Unassigned)

Community Consensus

Data Packs, Enchantments

datapack, saddle, slot_any

1.21.1

Retrieved