Add garnet and zoisite functions.
This commit is contained in:
parent
f438090899
commit
e6f482c9d5
4 changed files with 91 additions and 15 deletions
|
@ -38,11 +38,12 @@ end
|
|||
-- end
|
||||
--end
|
||||
|
||||
fun_caves.is_fortress = function(pos, cs, debug)
|
||||
fun_caves.is_fortress = function(pos, cs)
|
||||
-- Fix this to get csize, somehow.
|
||||
-- Remember that this function may be called
|
||||
-- before any chunks are generated.
|
||||
|
||||
pos = vector.round(pos)
|
||||
local cs = cs or {x=80, y=80, z=80}
|
||||
local offset = math.floor(cs.y / 2) - 8 + 1
|
||||
|
||||
|
@ -59,10 +60,8 @@ fun_caves.is_fortress = function(pos, cs, debug)
|
|||
|
||||
local n = minetest.get_perlin(fortress_noise):get3d({x=x, y=y, z=z})
|
||||
if fun_caves.DEBUG and math.floor((n * 10000) % 4) == 1 then
|
||||
--print('fortress ('..x..','..y..','..z..')')
|
||||
return true
|
||||
end
|
||||
if math.floor((n * 10000) % 19) == 1 then
|
||||
elseif math.floor((n * 10000) % 19) == 1 then
|
||||
return true
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue