Random Entity from tag

Started by Catnip on

Topic category: Help with modding (Java Edition)

Last seen on 17:10, 16. Apr 2024
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Random Entity from tag

I was wondering if anybody knew how to get a random entity from a tag, similar to getting a random block from a tag.  I am fine with using custom coding, I just need to know how to get the entity itself.

For context, I am trying to make a oneblock mod that is customizable with datapacks, and I would like it to be able to spawn entities occasionally from a tag.