Started by
Shtumers
on
Topic category: Troubleshooting, bugs, and solutions
I've been having difficulty trying to work out a procedure that detects if it is night.
Is Not Daytime
doesn't work for some reason (ill give specifics if needed)
I tried also doing a:
Get World Time > 13000 AND Get World Time < 23000
But that doesn't work for future nights that go beyond the time 23000
Currently I'm trying to make a procedure that turns an entity transparent during the nighttime. Any way I can do this?
I have the same issue too. It didn't work with variables but it worked with some procedure blocks (like spawning item) and i haven't founded another way to check if its not day
You can easily fix it by using modulo for world time:
(World Time % 24000) > 13000
AND
(World Time % 24000) < 23000
Honestly the most reliable and easy way of fixing this problem I found is to make a procedure that constantly resets the gametime to 0 whenever it goes past 23999 ticks and then use "If World Time < 13000 then" to check if it's daytime (this even allows selecting more specific times of the day).
Please keep in mind that this will constantly keep the day count to 0 though.