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

/give doesn't give you enchanted items

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Invalid
    • Affects Version/s: Minecraft 18w21a
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Unconfirmed

      Description

      Moderator Note

      The ench NBT tag has been renamed to Enchantments, and the numeric short IDs are now strings.
      1.12:

      /give @p diamond_sword 1 0 {ench:[{id:16s,lvl:5s},{id:21s,lvl:3s}]}
      

      1.13:

      /give @p diamond_sword{Enchantments:[{id:"minecraft:sharpness",lvl:5s},{id:"minecraft:looting",lvl:3s}]}
      

      If you give yourself a diamond sword with looting 3 using:

      /give @p diamond_sword{ench:[{id:21,lvl:3}]}

      It gives you a regular sword instead.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              Golden Drake John
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: