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

Experience saves as a short, used as integer

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.13
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Unconfirmed
    • Category:
      (Unassigned)

      Description

      Experience orbs operate on integer values, and players can use vanilla commands to spawn an exp orb with an exact value.

       

      Spawning an orb at 100k is valid, however if that orb is unloaded, the NBT data saves it as a short, corrupting the value.

      Fixing is as trivial as changing the NBT set/get calls to Int for Value instead of Short

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              aikar Aikar
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: