Started by
Shrouded_Mist00
on
Topic category: Help with Minecraft modding (Java Edition)
So im making a mod that adds the stone Alexandrite to the game, and real Alexandrite turns red out of sunlight, so i was just wondering if its possible to make the texture change at night, ive tried making a animated texture thats 10 minutes long, but the animation only starts when you log in
You can use blockstates, change the texture based on a number nbt or data attached to the block. However this will mean it needs to be a block entity and that it needs to tick which causes lag if the block will spawn a lot.
Otherwise change your animated texture to start according to the time of day in which you spawn into a world in minecraft.
I don't know if this would help, but anyways:

you could (or not) use this thing:
I don't know how to detect or do something with textures without changing block (atleast for now and in MCreator) But theres an example procedure that i made for you to help:

i hope this would help your project!
(i'm not a pro so, sorry if that explanation is wrong or this example procedure)