How to make entities only spawn on blocks

Started by SirPogsalot on

Topic category: Help with modding (Java Edition)

Last seen on 04:15, 27. Mar 2024
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make entities only spawn on blocks

I'm looking for a way to make it so that a mob can only spawn on a solid block; how would I do that? It is an ocean mob, so it would spawn in water, but I need it to also spawn on the ocean floor only.