Add Minauros and zombies (only there).
This commit is contained in:
parent
d22195be27
commit
10bb057f61
19 changed files with 5781 additions and 56 deletions
52
mapgen.lua
52
mapgen.lua
|
@ -29,58 +29,6 @@ for name, desc in pairs(minetest.registered_biomes) do
|
|||
biome_ids[get_biome_id(desc.name)] = desc.name
|
||||
end
|
||||
|
||||
--local function place_schematic(pos, schem, center)
|
||||
-- local rot = rand(4) - 1
|
||||
-- local yslice = {}
|
||||
-- if schem.yslice_prob then
|
||||
-- for _, ys in pairs(schem.yslice_prob) do
|
||||
-- yslice[ys.ypos] = ys.prob
|
||||
-- end
|
||||
-- end
|
||||
--
|
||||
-- if center then
|
||||
-- pos.x = pos.x - floor(schem.size.x / 2)
|
||||
-- pos.z = pos.z - floor(schem.size.z / 2)
|
||||
-- end
|
||||
--
|
||||
-- for z1 = 0, schem.size.z - 1 do
|
||||
-- for x1 = 0, schem.size.x - 1 do
|
||||
-- local x, z
|
||||
-- if rot == 0 then
|
||||
-- x, z = x1, z1
|
||||
-- elseif rot == 1 then
|
||||
-- x, z = schem.size.z - z1 - 1, x1
|
||||
-- elseif rot == 2 then
|
||||
-- x, z = schem.size.x - x1 - 1, schem.size.z - z1 - 1
|
||||
-- elseif rot == 3 then
|
||||
-- x, z = z1, schem.size.x - x1 - 1
|
||||
-- end
|
||||
-- local dz = pos.z - minp.z + z
|
||||
-- local dx = pos.x - minp.x + x
|
||||
-- if pos.x + x > minp.x and pos.x + x < maxp.x and pos.z + z > minp.z and pos.z + z < maxp.z then
|
||||
-- local ivm = area:index(pos.x + x, pos.y, pos.z + z)
|
||||
-- local isch = z1 * schem.size.y * schem.size.x + x1 + 1
|
||||
-- for y = 0, schem.size.y - 1 do
|
||||
-- local dy = pos.y - minp.y + y
|
||||
-- if math.min(dx, csize.x - dx) + math.min(dy, csize.y - dy) + math.min(dz, csize.z - dz) > bevel then
|
||||
-- if yslice[y] or 255 >= rand(255) then
|
||||
-- local prob = schem.data[isch].prob or schem.data[isch].param1 or 255
|
||||
-- if prob >= rand(255) and schem.data[isch].name ~= "air" then
|
||||
-- data[ivm] = node[schem.data[isch].name]
|
||||
-- end
|
||||
-- local param2 = schem.data[isch].param2 or 0
|
||||
-- p2data[ivm] = param2
|
||||
-- end
|
||||
-- end
|
||||
--
|
||||
-- ivm = ivm + area.ystride
|
||||
-- isch = isch + schem.size.x
|
||||
-- end
|
||||
-- end
|
||||
-- end
|
||||
-- end
|
||||
--end
|
||||
|
||||
--local function get_decoration(biome)
|
||||
-- for i, deco in pairs(fun_caves.decorations) do
|
||||
-- if not deco.biomes or deco.biomes[biome] then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue