Started by
beboblobo
on
Topic category: Help with Minecraft modding (Java Edition)
I need help making a day count telling you which day it is in the week. I want to make this for my brother for a roleplay world with mods but we need to know what day it is so i need to make a day counter. I came far but am stuck here:
https://imgur.com/a/LA5Di3z
You may need to use modulo (MOD) math operator to "wrap around" values from 0-6. You can find MOD by placing "+" procedure block and then changing it to MOD in dropdown
It needs to be able to know which day is equal to monday tuesday wensday etc. But i dont know how i can automate that cause else i will be there for forever making if = or loops
So (get local : day count (MOD) (0))?
MOD 6, where days go from 0 to 6
Or when counter reached 6, set it to 0
Maybe this can help too: https://dev.to/jvon1904/how-to-wrap-around-a-range-of-numbers-with-the-…
Thank you i got it working :)
You are welcome!