Is it possible to make a Day Counter

Started by ClOud1076 on

Topic category: Help with modding (Java Edition)

Last seen on 11:43, 29. Mar 2024
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.

Last seen on 15:24, 24. Apr 2024
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

Last seen on 11:43, 29. Mar 2024
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

Last seen on 11:43, 29. Mar 2024
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?

Last seen on 05:54, 10. Apr 2024
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.

Last seen on 04:28, 26. Jan 2024
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

Last seen on 05:54, 10. Apr 2024
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?

Last seen on 04:28, 26. Jan 2024
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

Last seen on 05:54, 10. Apr 2024
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.