mojira.dev
MC-272501

Data Driven Enchantment do not work in predicates

Hello,

Having a custom enchantment as a predicate condition does not work in the latest snapshot. I checked against vanilla ones which work fine.

Trying to get a output from something like "/execute if items entity @s weapon.mainhand #enchantencore:all_enchantable[minecraft:enchantments={levels:{"enchantencore:handyman":1}}]" also does not work

 

Steps to Reproduce:
1. set up custom enchant
2. try having it as a condition in /execute if items or as a predicate

Observed Results:
output failed

Expected Results:
output should be true

Attachments

Comments 5

Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response.

Just a reminder, to make your bug report as effective as possible, please try and include the following steps to reproduce the problem:

Steps to Reproduce:
1.
2.
3.

Observed Results:
(Briefly describe what happens)

Expected Results:
(Briefly describe what should happen)

If your ticket does not look like the example given here, then it's likely to be closed as Incomplete.

This ticket will automatically reopen when you reply.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

fixed report as mentioned from automod

Please attach the affected data pack, or an example data pack that showcases the issue.

attached the datapack I am working on. as mentioned above I can not get a positive output when using any custom enchantment as a condition. also tested this a bit further yesterday and it does also effect new enchantments in the minecraft namespace

Cannot reproduce, please remember that component checks require an exact match. If you want to do a partial match, use a subpredicate

*[enchantments~[{enchantments:"enchantencore:handyman",levels:1}]]

NiceRon

(Unassigned)

Unconfirmed

(Unassigned)

24w21b

Retrieved