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

Upgrading to 1.20.5 leads to the removal of all enchantments if item had the "sweeping" enchantment without namespace

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w18a
    • 24w03a, 24w09a, 1.20.5 Release Candidate 3, 1.20.5
    • None
    • Confirmed
    • Datafixer
    • Important
    • Platform

      Summary:
      Upgrading to 1.20.5 leads to the removal of all enchantments if item had the "sweeping" enchantment without namespace.
      This problem started occurring in 24w03a when the namespace id of sweeping edge was changed.
      https://www.minecraft.net/article/minecraft-snapshot-24w03a

      The minecraft:sweeping enchantment has been renamed to minecraft:sweeping_edge

      Before version 24w09a, only the sweeping edge enchantment was removed when upgrading. When upgrading to 24w09a and higher, all enchantments are removed from the item.

      Steps to reproduce:
      You can go straight to step 4 using this world: 2024-04-22_21-31-41_New World (7).zip

      1. Create a world in 1.20.4
      2. /give @s netherite_sword{Enchantments:[{lvl:3,id:"sweeping"},{lvl:3,id:"unbreaking"}]}
      3. /give @s netherite_sword{Enchantments:[{lvl:3,id:"sweeping"}]}
      4. Upgrade to 1.20.5.
      5. Look at enchantments on items.

      Observed results:
      Enchantments have been removed.

      Expected results:
      Enchantments are not removed.

            panda4994 [Mojang] Panda
            EVGENSYPERPRO [Helper] EVGENSYPERPRO
            Votes:
            5 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: