#Getting Tick Time Since World Start

2 messages · Page 1 of 1 (latest)

granite pulsar
#

Hello, I'm looking to get the same tick time of the world that you see when you use the command "/time query ticks", I've looked through other's code and saw online you can do this by getting the .time of the level, but it results in a different number than the Minecraft command. I'm curios how you can get the same tick amount shown by the command, and what the code below is giving me if it's less than the ticks printed by "/time query ticks".

let overworldTime = event.server.getLevel("minecraft:overworld").time

Using this ^ does seem to get an amount of ticks, as running the code every so often seemingly results in a larger number by rate of 20 times per second, so perhaps the command "/time query ticks" is showing something else? I can't figure out the discrepancy so any insight would be appreciated!

silver driftBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!