First of all I want to say the new stopwatch
command is very appreciated and I love to be able to replace jank in my code, like (ab-)using the worldborder for something like this. π
The Bug
The /stopwatch query
command does not return a useful value for command output. While simple testing whether a specific time has been reach is easily doable with the new /execute if stopwatch
sub command, this is not sufficient for displaying elapsed time to the player, for example in an actionbar timer.
Since according to the changelog the intend is to replace the /worldborder
functionality fully, I believe this has not been achieved yet.
Functionality to obtain fractional seconds would also be required here, for example by adding an optional [<scale>]
argument. This was possible before by setting the worldborder to change more than one block per second. I agree that ms as the finest granularity should be sufficient.
Currently, the βbestβ way to do this with the stopwatch command would be to setup a command block with a stopwatch <id> query
command and parse its command output, which isnβt ideal π
Steps to Reproduce
Set up a stopwatch:
/stopwatch neun:test create
Set up a scoreboard objective:
/scoreboard objectives add stopwatch dummy
Make it visible in the sidebar:
/scoreboard objectives setdisplay sidebar stopwatch
Query the stopwatch and save the
result
to your scoreboard:/execute store result score $time stopwatch run stopwatch neun:test query
Observed Result
The value on the scoreboard is always 1
(if your stopwatch exists)
Expected Result
The elapsed time is saved to the scoreboard
Thank you for your report!
After consideration, the issue is being closed as Invalid.
You have posted a feature request or a suggestion. This site is for bug reports only.
For suggestions, please visit The official Minecraft feedback site or visit the Minecraft Feedback Discord server.
Quick Links:
π Bug Tracker Guidelines β π¬ Community Support β π§ Mojang Support (Technical Issues) β π§ Microsoft Support (Account Issues)
π Project Summary β βοΈ Feedback and Suggestions β π Game Wiki