Adjust mineral spawn.
This commit is contained in:
parent
dc05865839
commit
c4dd513d88
1 changed files with 2 additions and 2 deletions
|
@ -51,7 +51,7 @@ fun_caves.cloudgen = function(minp, maxp, data, p2data, area, node)
|
||||||
local dy = y - minp.y
|
local dy = y - minp.y
|
||||||
if dy > 32 and cloud_1[index] > 15 and dy < 47 then
|
if dy > 32 and cloud_1[index] > 15 and dy < 47 then
|
||||||
if dy < 48 - (cloud_1[index] - 15) then
|
if dy < 48 - (cloud_1[index] - 15) then
|
||||||
if rand(200) == 1 then
|
if cloud == 'cloud' and rand(10000) == 1 then
|
||||||
data[ivm] = node['fun_caves:silver_lining']
|
data[ivm] = node['fun_caves:silver_lining']
|
||||||
else
|
else
|
||||||
data[ivm] = node['fun_caves:'..cloud]
|
data[ivm] = node['fun_caves:'..cloud]
|
||||||
|
@ -61,7 +61,7 @@ fun_caves.cloudgen = function(minp, maxp, data, p2data, area, node)
|
||||||
write = true
|
write = true
|
||||||
end
|
end
|
||||||
elseif cloud_1[index] > 0 and (dy <= 32 or cloud_1[index] <= 15) and dy >= 32 - cloud_1[index] and dy <= 32 + cloud_1[index] then
|
elseif cloud_1[index] > 0 and (dy <= 32 or cloud_1[index] <= 15) and dy >= 32 - cloud_1[index] and dy <= 32 + cloud_1[index] then
|
||||||
if rand(200) == 1 then
|
if cloud == 'cloud' and rand(10000) == 1 then
|
||||||
data[ivm] = node['fun_caves:silver_lining']
|
data[ivm] = node['fun_caves:silver_lining']
|
||||||
else
|
else
|
||||||
data[ivm] = node['fun_caves:'..cloud]
|
data[ivm] = node['fun_caves:'..cloud]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue