Multiple Textures

Started by PhoenixB55 on

Topic category: Feature requests and ideas for MCreator

Last seen on 23:29, 20. Dec 2020
Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Multiple Textures
Wed, 06/03/2020 - 06:47 (edited)

I believe it would be very nice to have an easy feature within the entities to be able to select multiple textures for one entity (example: horses, rabbits, and villagers). There's a mod I'm making that requires multiple entities and for some I've wanted the option for them to spawn in a variety of different textures yet I can't find a way to make that happen. So personally (even if there is a way through coding), I would find it really nice to have an easy and simple option to select multiple textures for one entity. Thank you if you read into this and I hope it can be considered for a future update! (Again, I don't doubt that there is a way to do this in coding but I just personally feel like this would be a nice and easy way to make it happen).

Edited by PhoenixB55 on Wed, 06/03/2020 - 06:47
Last seen on 04:35, 17. Jan 2021
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I've done this before (not…
Thu, 06/04/2020 - 01:51

I've done this before (not on MCreator) using EntityDataManager. So if you really need to get this done, and I always down to help😁. That being said, I am not 100% sure how MCreator renders their entity but I probably could figure it out🤗🤗🤗

Last seen on 17:47, 28. Mar 2024
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
For entitys is kinda "easy"…
Sun, 09/24/2023 - 19:30

For entitys is kinda "easy" for you change

open the render of your entity 

in this part

@Override 
        public ResourceLocation getTextureLocation(Entity entity) {
             return new ResourceLocation("ANYTEXTURE"); 
 }

do something like this 

@Override 
        public ResourceLocation getTextureLocation(Entity entity) { 
          float entityHealth = entity.getHealth(); 
       /*Change for what you want*/ if (entityHealth > 50 && entityHealth < 30) { 
             return new ResourceLocation("texture1"); 
           } else { 
             return new ResourceLocation("texture2");
             }
           if (entityHealth > 30){ 
              return new ResourceLocation("texture3");
     }
 }