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

Enchantments are saved as shorts, but are loaded as and function with integers values

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.13-pre1, Minecraft 1.13.2, Minecraft 18w50a
    • Fix Version/s: None
    • Confirmation Status:
      Community Consensus
    • Category:
      (Unassigned)

      Description

      See title.
      The game saves natural enchantments as shorts, yet using integer values (eg 32768 (max short + 1)) makes the game load them fine as integers numbers.

      example command:

      /give @s stick{Enchantments:[{id:"sharpness",lvl:32768}]}

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              urielsalis [Mod] Urielsalis
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                CHK: