mojira.dev
MC-271694

Datapack enchanted books don't appear in the creative inventory depending on the supported_items field

When you are creating a custom enchantment through a datapack, normally the custom enchantments appear in the creative inventory. But if in the field that says "supported_item" you use an item tag that is custom from your datapack the enchanted book won't appear in the creative inventory. The enchantment will still work as intended.

 

How to replicate:

Create an item tag inside a datapack I placed this in: data\minecraft\tags\items\enchantable\

[media]



Create two enchantments, one that uses the supported_items field with minecraft tags and one that uses the custom tag, these are the ones I used which should work the same way as multishot:

[media]

and

[media]

I placed them in:

data\minecraft\enchantment\...

Open a world with the datapack in creative and in the creative search bar write multishot. Only the visible one appears.

But if you pick a bow (because the one that uses the custom tag includes bows as supported items) and try the command "/enchant @s minecraft:multishot_not_visible" on it, it will work as intended.

The only problem is that it doesn't appear with custom supported items tags in the creative inventory.

Linked issues

Attachments

Comments 1

Thank you for your report!
We're tracking this issue in MC-271634, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

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

OscarHdez103

(Unassigned)

Unconfirmed

(Unassigned)

24w18a

Retrieved