Started by
NextTreeUp
on
Topic category: Plugins and third-party tools
I just want to make it so when my mob sets sights on a target it'll change its texture and after eliminating set target will revert to its original texture.
Edited by NextTreeUp on Mon, 09/02/2024 - 21:00
I would recommend checking/asking that on the plugin page
I give that a try. Thanks!
*I'll give that a try. Thanks!
Just use the set texture procedure block the plugin provides
But how would I go a long doing that? Like I see the set texture block in the procedure but I'm not sure how to set it up the right way? If you could give me an example that would be amazing!
I finally figured it out! If anyone else is curious I'm using Nerdy's GeckoLib Plugin to change the texture for my mobs and it's really easy to do! For example if you set in global trigger/on initial entity spawns you can use the block (if entity element (YOUR ENTITY) is the (TARGET ENTITY) then set texture to (YOUR ENTITY TEXTURE)) and it'll change the texture of your entity.
I also figured out how to change mob texture when it's agro or not agro. Here is an example from my mod I'm working on: https://imgur.com/a/t7sTfTV
Ps make sure the procedure is in entity tick update!
Hey,
since this thread is (somewhat) recent, I wanted to quickly follow up with a question regarding the texture change procedure:
Are the changed textures assigned to the entity via the procedure only visible on client-side?
I would really like to have it work in multiplayer but I'm not sure how to do that.