Advertisement
Guest User

Sudo Code Modded Mobs for Indoor Spawning

a guest
Apr 23rd, 2013
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. - Every X ticks, search in a radius(sphere or box) of Z
  2. - Choose random block from that array
  3.  
  4. if (Block != Material.AIR ) {
  5. if ((block.location +1 in Y) == Material.AIR) {
  6. if ((block.location +2 in Y) == Material.AIR) {
  7. //spawn zombie
  8. }else //find new random block and repeat
  9. }else //find new random block and repeat
  10. }else //find new random block and repeat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement