mojira.dev
MC-302852

Command /stopwatch query always returns value 1

/... query subcommands are expected not only to print out the queried value but also return this value as the return value of the commands.

For example, /time query could return the current gametime while printing it out, so does /tick query.

However, /stopwatch ... query always returns 1 as its return value no matter what the actual value of the stopwatch is.

(Plus, as /stopwatch is totally not an async command, not returning something containing the information needed is unreasonable.)

How To Reproduce

  1. /scoreboard objectives add test dummy

  2. /stopwatch test:1 add

  3. Wait for 27.255 seconds for example.

  4. /execute store result score #test test run stopwatch test:1 query

  5. /scoreboard players get #test test

Expected Output

Step 4 print out the stopwatch value (27.255s), and step 5 could get the value 27 in the scoreboard.

Actual Output

Step 4 print out the stopwatch value, but step 5 always gets the value 1.

Linked issues

Attachments

Comments 1

Thank you for your report!
We're tracking this issue in MC-302701, so this ticket is being resolved and linked as a duplicate.

That ticket has already been resolved as invalid. Please take a look at the parent ticket (MC-302701) and see if an explanation is provided there in the description of the ticket or in the comments for why this issue is invalid.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

LeatherSword

(Unassigned)

Unconfirmed

(Unassigned)

25w41a

Retrieved