Posted October 27, 20214 yr I'm working on an entity, which texture should have several variations. You know, there is blue sheep, black sheep, white sheep. I want to do the same thing. How should I do that? I'm working with Geckolib.
October 27, 20214 yr 1 hour ago, urabaros said: I'm working on an entity, which texture should have several variations. You know, there is blue sheep, black sheep, white sheep. I want to do the same thing. How should I do that? I'm working with Geckolib. You can save the color of your entity in it's class (make sure it's saved to the NBT and is synced) and after that use the instance that's passed to the method for the texture in your model to check for the color and pass a different texture depending on that. You can have an enum with all your colors and then save the ordinal of the color to the NBT.
October 27, 20214 yr Author Hi! Sorry, didin't understand how exactly I should randomize what color to use. If I have an enum in my entity class, how should I randlomly pick one?
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.