Is it possible to make a Day Counter

Started by ClOud1076 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is it possible to make a Day Counter

Is it possible to make a procedure that count in game days? im trying to make an overlay that displays how many mc days you have survived.

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Of course you can by using…
Sun, 11/07/2021 - 10:30

Of course you can by using global variables

when get current world time = 0 then add variable +1 and so on

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thank you soo much
Sun, 11/07/2021 - 10:32

thank you soo much

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ok, im kinda stuck how do i…
Mon, 11/08/2021 - 07:57

ok, im kinda stuck how do i make the procedure?

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I am searching for this…
Mon, 11/15/2021 - 13:02

I am searching for this answer too i am gonna make a mod that has a challenge when day passes.But i don't know how to do that.

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
make a global map variable…
Mon, 11/15/2021 - 17:22

make a global map variable called Days

make a procedure on world tick update that sets Global; Days + 1

then check if Global: Days = 24000 for a complete day, for a second day check if it equals 48000 etc etc

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yeah i can do that but i am…
Mon, 11/15/2021 - 18:45

Yeah i can do that but i am making for 100 days that means it will be hard to calculate all 100 days. İs there a way to make a procedure that add global days variable in every day?

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
to be fair it is only 2,400…
Mon, 11/15/2021 - 18:55

to be fair it is only 2,400,000 ticks, but alright

make 2 global map variables (Number)

one named TicksPassed and the other Days

on world tick update set Global: TicksPassed to get Global: TicksPassed + 1

then if Global: TicksPassed = 24000

            do set Global: Days to get Global: Days + 1

                  set Global: TicksPassed to 0

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thx i will try it.
Tue, 11/16/2021 - 09:48

Thx i will try it.