-How to change the mob texture-

Started by Ellivers on

Topic category: Help with MCreator software

Last seen on 19:56, 11. Aug 2019
Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
-How to change the mob texture-
Thu, 09/07/2017 - 15:36 (edited)

I wonder how I can change the texture of a mob when it sees you. Without removing the mob or replacing it with another one.

Need this for making a zelda: breath of the wild mod. I need the guardians to change color when they see you like they do in the game, if you know what I mean.

Another thing is making the mob (guardian) to be solid. I have already thought of making a custom block being over it's head all the time.

Just wondering if there is a more simple way to do this.

 

This would be very helpful!

Edited by Ellivers on Thu, 09/07/2017 - 15:36
Last seen on 14:48, 10. Nov 2018
Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
well... if im replacing a mob
Fri, 09/08/2017 - 21:50

well... if im replacing a mob texture, i just add an additional word to the name of the texture you want to use to replace with, and it works

Last seen on 19:56, 11. Aug 2019
Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:well... if im replacing a mob
Sat, 09/09/2017 - 06:41

@#1 Thanks for your help! But I don't really understand. How do I make so the mob's texture changes when it becomes hostile against a player (sees a player)?

Last seen on 12:58, 23. Sep 2019
Joined Aug 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:RE:well... if im replacing a mob
Sat, 09/09/2017 - 10:00

@#1.1 Try to take a look to the minecraft wolf code, even if it's a bit different, maybe the method could be the same

Last seen on 19:56, 11. Aug 2019
Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:RE:RE:well... if im replacing a mob
Sat, 09/09/2017 - 14:42

@#1.1.1 How do I find the wolf code? Is there a wolf AI option?

Last seen on 17:17, 10. Jan 2024
Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
In a Render class, that is a
Sat, 09/09/2017 - 15:08

In a Render class, that is a parent for renderers of all entities in Render#doRender() is a field of type Entity. In case of your entity, it will be an instance of your entity. Now, the method usually binds always the very same ResourceLocation, however, you can of course use some other ResourceLocation pointing to a different texture. For start, you could check for a target of the entity.

Last seen on 19:56, 11. Aug 2019
Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:In a Render class, that is a
Sat, 09/09/2017 - 17:30

@#2 Sounds good! I have not made the mob yet but when I have done that I can send you the code.

Last seen on 14:48, 10. Nov 2018
Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:RE:In a Render class, that is a
Tue, 09/12/2017 - 11:51

@#2.1 you could make a separate mob, for when its angry, and make it so that if the player hits (or sees you, idk) it kills the peaceful mob and spawns the new one, :/ just a theory

Last seen on 19:56, 11. Aug 2019
Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:RE:RE:In a Render class, that is a
Thu, 09/14/2017 - 14:53

@#2.1.1 Thats just what I don't want to do.

I have thought of that before but I don't want to kill the mob in any way (plus I don't know how to do that) because it would look wierd and the new mob would spawn in a different direction etc. That's why I just want to change the mob texture