Mob with various textures

Started by tetch_wolf on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Mob with various textures

Hello, how are you?
So, I'm creating a mod that has several creatures with varying texture, I took the spawn egg from a certain type of creature and made an item to serve as a general spawn

(item)

I wish there was a chance for each creature to be born, so I did this procedure for when I right-clicked on a block

(procedure)

so far so good, the problem is that when I enter the game, only the entity "ruby one" spawna, while "ruby two", no

can someone help me? am i doing something wrong? if someone is watching this and is willing to help me, please explain me with prints, because i am brazilian and i use the translator

thx

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
change the else if to else
Fri, 07/10/2020 - 15:50

change the else if to else

Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
hum thats a good way to turn…
Fri, 07/10/2020 - 18:46

hum thats a good way to turn around the multiple textures thing... so you made a new 'egg' item that has that procedure when you right click a block i imagine... i guess you could use 2 'If, Do' instead of just one like that too. everytime i use 'else' i got errors too

Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
can you explain me why you …
Fri, 07/10/2020 - 18:46

can you explain me why you 'random 0,1' instead of 'random 1' ? i dont understand this part much yet..

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it means generate a pseudo…
Sat, 07/11/2020 - 05:09

it means generate a pseudo random double value from 0.0 to 1.0

Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Remove the condition from…
Sat, 07/11/2020 - 08:31

Remove the condition from the else if, just turn it into an else (like N4zaris said)

The first condition is only true if the variable is littler than 0.5. If it isn't, it will try to trigger the second one, which will never be true, since the variable can't be littler than 0.5 if we have just said it isn't.

Simply removing the condition from the second part should fix the procedure

(I'm sorry for my bad English)

Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thx guys :D
Mon, 07/13/2020 - 23:23

thx guys :D

Joined Mar 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I get my "random"…
Wed, 03/31/2021 - 06:49

How do I get my "random" variable into the "set___ to" procedure? How do I also create the XYZ dependancies? sorry a little know to local variables

 

Joined Mar 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there a way to do this…
Wed, 03/31/2021 - 08:15

Is there a way to do this with 4 model/mobs/skins..etc... I have it set up that way except it spawns two mobs at a time with the random variable? is there a way to pick 1 of 4?

Use an item NBT tag to…
Mon, 04/05/2021 - 18:50

Use an item NBT tag to determine the random value beforehand, rather than determining it per event. What's happening in yours is most likely that it's picking a new random number for every possibility, which means that instead of getting one result based on a random chance, you're getting multiple results because there were multiple chances that succeeded.

Joined Mar 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
are you able to post an…
Tue, 04/06/2021 - 16:57

are you able to post an example of what you mean?

Joined Mar 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
what are the specific…
Fri, 04/09/2021 - 18:44

what are the specific procedures that you would need to use in this instance! I've looked through some of them Im just uncertain of how to arrange them

Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Anyone figured out how to…
Tue, 12/28/2021 - 06:13

Anyone figured out how to make more than one variant?