How do I add chance in 2022.3 in spawn eggs?

Started by DatZypher on

Topic category: Help with modding (Java Edition)

Last seen on 04:49, 22. Dec 2023
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I add chance in 2022.3 in spawn eggs?

Hey I need help figuring out how t add chance in a spawn egg when there are many different entities in one spawn egg... Ex. In one spawn egg it spawn an entity with many colors... And there is a small chance it would spawn a different entity with also different colors... How would I do that? (I know how to do the different colors)(How to add the chance to spawn different entity)

Last seen on 10:16, 18. Apr 2024
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can't do that with a…
Sun, 04/02/2023 - 22:51

You can't do that with a single spawn egg, you can create a new item, go to when placed on block in triggers, and then do something like this: 

If random 0,1 = 0.5 then

spawn x y z "mob"

else

spawn x y z "mob2"