Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-274636

Enchantment predicates are now specific

XMLWordPrintable

    • Unconfirmed
    • (Unassigned)

      With the new item component system, a functionality has been removed/replaced. We can't have an advancement that would trigger if the player is wearing an equipment with a specific enchantment, as now the comparison is of type "is exactly" instead of "contains".

       

      Steps to repro:

      • have a datapack adding an advancement such as the one attached
      • go in the nether with a chestplate enchanted with the binding curse and any other enchant

      Expected behavior (as before):

      The advancement is triggered.

      Observed behavior:

      The advancement is not triggered. It can be triggered only if the chestplate has only the binding curse enchantment.

       

      Although I understand this behavior could be useful, I believe the previous one is more interesting. At least being able to choose the way the predicate is being tested would be nice.

            Unassigned Unassigned
            Pardys_ Pardys_
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: