Quantcast
Channel: SpigotMC - High Performance Minecraft
Viewing all articles
Browse latest Browse all 128654

Custom Mob Spawning Mechanics - Getting Location

$
0
0
What I'm trying to do, is spawn entities around a player, however I'm not sure how to get a viable location for spawning these entities.

Example:

Player A is walking around, and wherever he walks, mobs spawn around him (obviously at random intervals and not exactly on the players position)

How could I get 1x1x2 open areas of space which could support spawning of the entities (not causing them to suffocate or fall)?

Viewing all articles
Browse latest Browse all 128654

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>