How to Perform Scoreboard Operations Efficiently?
I am converting daytime-ticks into seconds with a scoreboard operation. My question: More understandable if you've read through my code below.
Tick Function: Storing daytime-ticks into scoreboard:
execute store result score $daytime_t time run time query daytimeCopying daytime-ticks new scoreboard player:
scoreboard players operation $daytime_s time = $daytime_t time*Dividing game-ticks by 20 to get seconds: (20 stored in
#div_t@time) *scoreboard players operation $daytime_s time /= #div_t timeI will be displaying and reading data from this scoreboard^. Say if I were to read the seconds scoreboard at just the right time that it would come back with the game-ticks (Middle line). Is that a possible bug? Ik I could fix that by just having another fake player to do the operation in, then move that into the final fake player, to be read from. Would that be necessary?