Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for Z=Z-6, Z+9, 6 do
- for X=X-6, X+9, 6 do
- for Y=Y-6, Y+9, 6 do
- if Y<=5 then
- blockPresent = TableCheck(X, Y, Z)
- print (blockPresent)
- if not blockPresent then
- if X==36 or Z==36 then --or Y == 0 once if Y<=5 loop is removed for impenetrable roof
- NoMineGen(X, Y, Z) --This gets unminable blocks for boundaries
- else
- local random = rng:NextInteger(0,100)
- if random <= 85 then
- StoneGen(X, Y, Z)
- elseif random > 85 and random <= 95 then
- SlateGen(X,Y,Z)
- elseif random > 95 and random <= 99 then
- CopperGen(X,Y,Z)
- elseif random == 100 then
- GoldGen(X,Y,Z)
- veinStuff(X, Y, Z) --This triggers the vein generation function
- end
- end
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement