Posted June 30, 20169 yr Hello, I have been making this spawner stick that throws an egg, but I can't seem to find a way to make the stick have a different color on the texture based on what parameters are passed in. I have looked throughout all of the source of minecraft, and I couldn't find how spawn eggs are given different textures. And to clarify, I am trying to use a gray-scaled, two-layered model, and changing the color scheme of it, and by giving it a different parameter, I can get a different colored texture with the same look.
June 30, 20169 yr You'll need to create a class that implements IItemColor and register it with the ItemColors class, there's a getter for ItemColors in Minecraft(The class) . Do not ever reference your IItemColor server-side, IItemColor is client-side only so it does not exist in the server .jar.
June 30, 20169 yr Your IItemColor#getColorFromItemstack implementation receives a tint index argument telling it which part of the model is being coloured. This also applies to IBlockColor , which is used to colour blocks. For regular models, the tint index is specified per face of each element. For models that extend builtin/generated (or item/generated , which extends builtin/generated ), the tint index is the texture's layer number (0 for the layer0 texture). Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
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.