#✅ | Days played logic

1 messages · Page 1 of 1 (latest)

iron pebble
#

how would i display the accurate days played with text

graceful hazelBOT
# iron pebble how would i display the accurate days played with text

You can display world days with the game_time placeholder, but for accurate days played there isn’t a dedicated placeholder for that in Spiffy/FancyMenu docs right now.

If you mean Minecraft in-game days, you can calculate it from ticks:

{"placeholder":"calc","values":{"decimal":"false","expression":"{"placeholder":"game_time"} / 24000"}}

That gives you the number of full days.

If you want it as text, just put that placeholder into a Text element.

If you mean a true “days played” stat from player stats, I can’t confirm a supported placeholder for that from the docs.

iron pebble
#

i mean in world days that pass

graceful hazelBOT
# iron pebble i mean in world days that pass

Yep — for world days that pass, use the world time tick counter and divide by 24000 🙂

Use this in a Text element:

{"placeholder":"calc","values":{"decimal":"false","expression":"{"placeholder":"game_time"} / 24000"}}

That will show the number of full in-game days passed.

If you want, I can also show you how to format it like:

  • Days Played: 12
  • Day 12
  • 12 days passed
iron pebble
#

it doesnt seem to be going up when i add time to the world

graceful hazelBOT
# iron pebble it doesnt seem to be going up when i add time to the world

That placeholder is based on the world tick time, so it only increases when the world is actually running.

If it isn’t going up, check these two things first:

  • Are you testing in a loaded world and not just in menus?
  • Are you maybe using a static value somewhere instead of the live game_time placeholder?

Also, if you want day count, game_time / 24000 can stay the same for a long time because it only changes once every full day.

If you want, send me:

  • the exact text/placeholder you used
  • whether this is in a Text element or a Progress Bar
  • your Minecraft + Spiffy/FancyMenu version

Then I can help you narrow it down 🙂

iron pebble
#

i used the extact code you gave me

graceful hazelBOT
# iron pebble i used the extact code you gave me

Then the most likely issue is that game_time is not the right placeholder for what you want.

For actual passing world days, try using the world daytime placeholder instead:

{"placeholder":"calc","values":{"decimal":"false","expression":"{"placeholder":"world_daytime"} / 24000"}}

But note: world_daytime is the current time of day, so it resets every Minecraft day.

If you want a counter that keeps increasing day by day, FancyMenu’s docs don’t show a dedicated placeholder for that. In that case, I can’t confirm a working built-in solution from the docs.

If you want, I can help you make a day counter with a variable + ticker instead.