Changing entity texture based on event or variable

Started by Wooddent on

Topic category: Help with modding (Java Edition)

Last seen on 01:40, 11. Feb 2024
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Changing entity texture based on event or variable

Is it really not possible? That seems to be the common consensus, vanilla Minecraft has several examples, e.g. wolves and ghasts. I'm willing to dig deep into the code, Indiana Jones style, just help give me directions, please. I would rather not do the whole "make another mob and replace them by killing one and spawning the other" thing, because it's noticeable and clunky.

Last seen on 20:18, 12. Mar 2024
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I looked around the Entity…
Wed, 06/28/2023 - 17:54

I looked around the Entity and LivingEntity class files and didn't see anything relevant.

If you are going to do the 'make another mob and replace them' thing, you can despawn a mob using a procedure; that works better.

Last seen on 01:40, 11. Feb 2024
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Right but it's still then a…
Sun, 07/16/2023 - 00:02

Right but it's still then a different enemy, with different health points and different name tag name for example. Killing it would be impossible if it kept spawning a new mob every time it attacked.

Last seen on 00:42, 10. Oct 2023
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Using the geckolib plugin…
Sun, 07/16/2023 - 03:00

Using the geckolib plugin and a geckolib mob theres a set entity texture procedure