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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.21.1
    • Community Consensus
    • Data Packs, Enchantments

      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.

        1. 2024-09-11_06.56.37.png
          2024-09-11_06.56.37.png
          644 kB
        2. 2024-09-11_06.56.43.png
          2024-09-11_06.56.43.png
          577 kB
        3. 2024-09-11_06.56.48.png
          2024-09-11_06.56.48.png
          555 kB
        4. saddle testing.zip
          2 kB

            Unassigned Unassigned
            miziragamez miziragamez
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: