Spawning a random mob

Started by Coolmanz7 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Spawning a random mob

I am trying to make an item that spawns a random mob. I have already made a tag for every mob a want to be ableto spawn but I can't find anything to spawn a random mob from that tag. I looked online to see if anyone else had this problem and the only solution I found was a massive if/else if chain. Is there anything I can do to make this without way too many if statements?