Making mobs with multiple textures?

Started by pretztail777 on

Topic category: Advanced modding

Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Making mobs with multiple textures?

Hello! I am making a mostly-animals mod, and most of them are going to have many different colors. Is there a way I could code one mob to load one of many different textures on spawning (kind of like vanilla cats) so I don't have to make a bunch of the same mob? Thank you in advance!

Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Does anyone know?
Sun, 01/08/2017 - 17:24

Does anyone know?

Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think you have to edit the
Sun, 01/08/2017 - 18:52

I think you have to edit the java of the mob after it's created, and add it in, since I'm sure MCreator doesn't have any texture variation yet

Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:I think you have to edit the
Sun, 01/08/2017 - 21:31

@#2 Thank you, but I know I have to do that and have tried to. I just don't know what code to put in. ^^

Joined Jul 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:RE:I think you have to edit the
Sun, 01/08/2017 - 23:36

@#2.1 try looking in cat code

Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:RE:RE:I think you have to edit the
Mon, 01/09/2017 - 00:32

@#2.1.1 I've thought about doing that, I just can't quite figure out how to access the base Minecraft code. I have MCP installed but I'm not sure how to decompile it.

Joined Jul 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:RE:RE:RE:I think you have to edit the
Mon, 01/09/2017 - 02:29

@#2.1.1.1 Don'y need to download anything, go into Mcreator folder-forge-build-tmp-recompSrc-net-minecraft-entity-passive. Then open ocelot.java with a text porgram.

Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:RE:RE:RE:RE:I think you have to edit the
Mon, 01/09/2017 - 02:38

@#2.1.1.1.1 I will try that. Thank you very much!

Joined Jul 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Maybe make multiple mobs...?
Mon, 01/09/2017 - 05:38

Maybe make multiple mobs...?

Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:Maybe make multiple mobs...?
Wed, 01/11/2017 - 20:22

@#3  He already said:

so I don't have to make a bunch of the same mob?

Joined Jul 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:RE:Maybe make multiple mobs...?
Thu, 01/12/2017 - 11:08

@#3.1 oh...

Joined Mar 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So have you discovered?
Wed, 02/01/2017 - 21:40

So have you discovered?

I want to know too...

 

Joined Mar 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Try making a item that spawns
Fri, 03/03/2017 - 12:08

Try making a item that spawns the mob instead of the spawn egg, and make multiple mobs with different textures, in the events page for the item. Try to make different percentages and likelyhoods of spawning different  types of mob.

Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hi, I know that this has…
Thu, 09/06/2018 - 12:43

Hi, I know that this has some time, but since I am looking for this also for mcreator 1.8.0 there are some things that I have to say about some comments, for example the ocelot data is a good suggestion but it has a problem, the problem is that only serves for domesticable mobs, then this is the problem of the object to generate it this will not work for the commands that is basically one of the things I'm looking for, that's why I've tested with the data of the flame and the parrot, but there is an error, this is the error: can not find symbol return FORMER_TEXTURES [entity.getVariant ()];

                                                                                  ^

Symbol: method getVariant ()

location: variable entity of type Entity.
the FORMER_TEXTURES is to differentiate the mob, I will try to find the solution and when I find it I will put the code here, but if someone finds it before please put the code that is very important for many of the users of mcreator.

Joined Nov 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I know this is pretty old,…
Fri, 03/22/2019 - 14:39

I know this is pretty old, but I've been looking into the same thing, and I just came up with something. You guys can test it if you want. I'm not too coding savvy, but I know some stuff about it. 

You could create multiple mobs, and an item as the egg, but then go into the code and then try to set the egg to be the item egg you made for each of them, along with a random chance for each, but you'll have to state that if one appears, to prevent any more from spawning. 

Idk though, just a thought. Also, look into villagers code. that should help.