Advertisement
Guest User

Untitled

a guest
May 22nd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.89 KB | None | 0 0
  1.     for Z=Z-6, Z+9, 6 do
  2.            
  3.         for X=X-6, X+9, 6 do
  4.                        
  5.             for Y=Y-6, Y+9, 6 do
  6.                
  7.                 if Y<=5 then                    
  8.                        
  9.                     blockPresent = TableCheck(X, Y, Z)
  10.                     print (blockPresent)        
  11.                        
  12.                     if not blockPresent then
  13.                         if X==36 or Z==36 then --or Y == 0 once if Y<=5 loop is removed for impenetrable roof
  14.                            
  15.                             NoMineGen(X, Y, Z) --This gets unminable blocks for boundaries
  16.                            
  17.                         else
  18.                                
  19.                         local random = rng:NextInteger(0,100)
  20.                            
  21.                             if random <= 85 then
  22.                            
  23.                                 StoneGen(X, Y, Z)
  24.                                
  25.                             elseif random > 85 and random <= 95 then
  26.                                
  27.                                 SlateGen(X,Y,Z)
  28.                                
  29.                             elseif random > 95    and random <= 99 then
  30.                                
  31.                                 CopperGen(X,Y,Z)
  32.                                
  33.                             elseif random == 100 then        
  34.                                
  35.                                 GoldGen(X,Y,Z)
  36.  
  37.                                 veinStuff(X, Y, Z)    --This triggers the vein generation function
  38.                                
  39.                             end
  40.                            
  41.                         end
  42.                    
  43.                     end                    
  44.                    
  45.                 end
  46.                
  47.             end
  48.            
  49.         end
  50.        
  51.     end
  52.    
  53. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement