Mob with various textures

Started by tetch_wolf on Fri, 07/10/2020 - 15:22

Topic category: Help with modding (Java Edition)

Last seen on 01:17, 8. Aug 2020
Joined Mar 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Mob with various textures
Fri, 07/10/2020 - 15:22

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

Last seen on 19:25, 8. Aug 2020
Joined Jun 2020
User points:

User statistics:

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

change the else if to else

Last seen on 06:19, 8. Aug 2020
Joined Sep 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 06:19, 8. Aug 2020
Joined Sep 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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..

Last seen on 20:54, 7. Aug 2020
Joined Nov 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 17:27, 7. Aug 2020
Joined Jun 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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)

Last seen on 01:17, 8. Aug 2020
Joined Mar 2019
User points:

User statistics:

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

thx guys :D