How to make different mobs spawn out of 1 spawn egg

Started by CircleF1sh on Mon, 01/18/2021 - 23:15

Topic category: Help with modding (Java Edition)

Last seen on 15:39, 26. Mar 2021
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make different mobs spawn out of 1 spawn egg
Mon, 01/18/2021 - 23:16 (edited)

So I am going to add a mob to my mod and I made multiple variations for it and I want the spawn egg to have a random chance of spawning one of those variations without creating spawn eggs for each variation. Does anyone know the procedure for this?

Edited by CircleF1sh on Mon, 01/18/2021 - 23:16
Last seen on 22:51, 5. May 2021
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
use a randomizer combined…
Tue, 01/26/2021 - 16:45

use a randomizer combined with the differnt mobs with the custom spawn egg aka use a randomizer to make the egg decide witch one to spawn

Last seen on 15:39, 26. Mar 2021
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Wait how do I make this…
Fri, 02/19/2021 - 20:43

Wait how do I make this randomizer?

Last seen on 22:21, 4. Jun 2022
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
In the procedure templates…
Wed, 05/26/2021 - 16:23

In the procedure templates their is a "with a 70%". Keep in mind that the first digit is last and the second is first. So for a 50% you would do 0.5 and for a 20% you would do 0.2 and so own. So in the do area you would put what you want to happen with a blank%.