Different models at different times of day?

I did shutters as an exercise to learn modding back in the times…:

So yes, they are totally do-able. Back then I think there was a problem with adding animations to objects that didn’t have an AI, but nowadays it should be possible, I think we added something to inject them at some point, can’t remember exactly what it is, maybe take a look at the workshop component :thinking:

You can start by reusing the lamp component, which listens to sunrise and sunset to automatically turn the lamps on and off. In the json you can specify the model variant “lamp_on” that will appear when it’s night, and when it’s day it will return to the default model.

If you want more control over when to trigger what, you can create your own component based on the lamp component, listening to specific times of the day or triggering some code at specific times of the day.

2 Likes