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

When a specific score is divided by 10 and assigned to storage, a different number is assigned.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • None
    • 1.21.2 Pre-Release 2
    • None
    • Community Consensus
    • (Unassigned)

      When a specific score is divided by 10 and assigned to storage, a different number is assigned.

      Step1: Create a score 

      "/scoreboard objectives add distance dummy"

      Step2:Assigning specific scores to players

      "/scoreboard players set Test distance 121"

      Step3:Divide the score by 10 and allocate storage

      "/execute store result storage distance distance double 0.1 run scoreboard players get Test distance"

      Step4:Check the number in the storage

      "/data get storage minecraft:distance"

       

      In the video and this example, we used double type, but we have confirmed a similar phenomenon with float type.

      This means the distance cannot be displayed. Waiting for a workaround or bug fix.

      (Use Google Translate)

       

       

            Unassigned Unassigned
            Rin544 Rin544
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: