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

Store lock data result is the digit count not the the complete integer.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.20.2
    • None
    • mc1.20.2, Java21, Win10,22H2,
    • Unconfirmed
    • (Unassigned)

      Block Lock data:
      25259067

      Command used:
      /execute store result score b k_knl run data get block ^ ^1 ^ Lock

      result inside scoreboards & storage:
      8

      expected result:
      25259067

      Note:
      Even the output of the of the command is outputting the right number, the scoreboard and the storage is saving the wrong result. It saving the digit length of the number not the number itself. (see pic.)

      Recreate with these commands:

      • /scoreboard objectives add test dummy
      • /scoreboard objectives setdisplay sidebar test
      • (place a chest in front of the player and look at it)
      • /data merge block ^ ^1 ^ {Lock:"123"}
      • /execute store result score test test run data get block ^ ^1 ^ Lock

            Unassigned Unassigned
            Kathezel Kathezel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: