#Change a mobs texture when it has a certain name

5 messages · Page 1 of 1 (latest)

true zealot
#

I've been trying to find out how to do this for a bit now, mostly unable to find anything about it online. I'm trying to make it so a rabbit changes its texture when it has a specific name and I'm not sure where to start.

dusty raven
#

you can look at how a rabbit named Toast does it, check RabbitEntityRenderer and RabbitEntityRenderState (yarn)

true zealot
#

ive done that, but im not sure how i would do a mixin for it or what i would do with it

fringe wolf
#

use fabric api's FabricRenderState implementation to setData a boolean or whatever on the renderstate based on the name (see createRenderState), then getDataOrDefault that boolean in the getTexture method

sudden verge
#

Resource packs