Want more features on Pastebin? Sign Up, it's FREE!
Guest

Sudo Code Modded Mobs for Indoor Spawning

By: a guest on Apr 23rd, 2013  |  syntax: None  |  size: 0.39 KB  |  views: 29  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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
clone this paste RAW Paste Data