Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - Every X ticks, search in a radius(sphere or box) of Z
- - Choose random block from that array
- if (Block != Material.AIR ) {
- if ((block.location +1 in Y) == Material.AIR) {
- if ((block.location +2 in Y) == Material.AIR) {
- //spawn zombie
- }else //find new random block and repeat
- }else //find new random block and repeat
- }else //find new random block and repeat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement