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

Can't alter/add enchantments through /data

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 18w43a, Minecraft 18w43b
    • None
    • Unconfirmed

      To reproduce:

      • Drop a sword close by
      • execute
      /data merge entity @e[distance=..3,limit=1,type=item] {Item:{Enchantments:[{lvl:1,id:"minecraft:sharpness"}]}}
      
      • ->chat says "modified data of sword"
      • nbt stays unchanged

      i've already tried f.ex. making an armorstand invisible, that worked though.

      also giving yourself a sword with the same nbt (without Item:{} obviously) works as well

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

              Created:
              Updated:
              Resolved: