Mob with various textures

Started by tetch_wolf on

Topic category: Help with Minecraft modding (Java Edition)

Active 16 minutes ago
Joined Mar 2019
Points:
772

User statistics:

  • Modifications: 4
  • Forum topics: 11
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 24
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

Active 4 years ago
Joined Jun 2020
Points:
703

User statistics:

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

change the else if to else

Active 4 years ago
Joined Sep 2016
Points:
1177

User statistics:

  • Modifications: 0
  • Forum topics: 54
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 403
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

Active 4 years ago
Joined Sep 2016
Points:
1177

User statistics:

  • Modifications: 0
  • Forum topics: 54
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 403
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..

Active 3 years ago
Joined Nov 2019
Points:
879

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 384
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

Active 4 years ago
Joined Jun 2016
Points:
3744

User statistics:

  • Modifications: 10
  • Forum topics: 39
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5484
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)

Active 16 minutes ago
Joined Mar 2019
Points:
772

User statistics:

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

thx guys :D

Active 4 months ago
Joined Mar 2016
Points:
728

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 8
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

 

Active 4 months ago
Joined Mar 2016
Points:
728

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 8
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?

Active 12 hours ago
Joined May 2018
Points:
1126

User statistics:

  • Modifications: 8
  • Forum topics: 36
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 366
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.

Active 4 months ago
Joined Mar 2016
Points:
728

User statistics:

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

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

Active 4 months ago
Joined Mar 2016
Points:
728

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 8
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

Active 2 years ago
Joined Dec 2021
Points:
524

User statistics:

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

Anyone figured out how to make more than one variant?