When a specific score is divided by 10 and assigned to storage, a different number is assigned.
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)
2024-10-10, 04:48 PM
2024-10-22, 07:07 AM
2024-10-22, 07:07 AM
2
4
-