Night Procedure (or "Is Not Day") does not work.

Started by Shtumers on

Topic category: Troubleshooting, bugs, and solutions

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Night Procedure (or "Is Not Day") does not work.

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?

Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have the same issue too…
Fri, 04/28/2023 - 23:35

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

Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can easily fix it by…
Sat, 04/29/2023 - 00:09

You can easily fix it by using modulo for world time:

 

(World Time % 24000) > 13000

AND

(World Time % 24000) < 23000

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Honestly the most reliable…
Mon, 01/29/2024 - 16:04

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.