Add garnet and zoisite functions.

This commit is contained in:
Duane 2016-06-22 16:01:15 -05:00
parent f438090899
commit e6f482c9d5
4 changed files with 91 additions and 15 deletions

View file

@ -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