Started by
ClOud1076
on
Topic category: Help with Minecraft modding (Java Edition)
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.
Topic category: Help with Minecraft modding (Java Edition)
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.
Of course you can by using global variables
when get current world time = 0 then add variable +1 and so on
thank you soo much
or if you want Real time: https://drive.google.com/file/d/1aLRZ8Jahfh--QoVJzNWShD0AZBuRaonF/view?…
ok, im kinda stuck how do i make the procedure?
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.
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
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?
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
Thx i will try it.
Guys you forgot that the player can sleep and skip time
You need to add this
Just in case if the image did not work, here:
https://drive.google.com/file/d/1eZYeUuzjvLCCD9PBE_m-hT6z8gZwf_Dg/view?usp=sharing