Some more tweaks. Lets merge BLOCKS back into ITEMS because some blocks are also items, and... its just better this way.
This commit is contained in:
parent
cf3b53df77
commit
0242488c9e
22 changed files with 828 additions and 739 deletions
|
@ -13,5 +13,56 @@
|
|||
|
||||
vox_mapgen_core = { }
|
||||
|
||||
-- Variables
|
||||
-- Also run...
|
||||
dofile(minetest.get_modpath("vox_mapgen_core").."/ores.lua")
|
||||
|
||||
-- Disable minetest dungeons. We're making our own with blackjack and hookers.
|
||||
minetest.set_mapgen_setting("mg_flags", "dungeons", false)
|
||||
|
||||
-- Some adjustments based on different generators.
|
||||
-- For now we allow v7, and haven't looked at the other generators.
|
||||
if mg_name == "v7" then
|
||||
minetest.set_mapgen_setting("mg7_cavern_threshold", 0.2, true)
|
||||
minetest.set_mapgen_setting("mg_flags", "dungeons", false)
|
||||
end
|
||||
|
||||
-- And some superflat tweaks.
|
||||
if superflat then
|
||||
-- Disable caves
|
||||
minetest.set_mapgen_setting("mg_flags", "caves", false)
|
||||
-- Disable dungeons
|
||||
minetest.set_mapgen_setting("mg_flags", "dungeons", false)
|
||||
-- Disable decorations
|
||||
minetest.set_mapgen_setting("mg_flags", "decoration", false)
|
||||
minetest.set_mapgen_setting("mgflat_spflags", "nocaves,nohills", true)
|
||||
end
|
||||
|
||||
|
||||
-- Generate flat bedrock at the lowest point of the world, -10000.
|
||||
local function generate_bedrock(minp, maxp, data)
|
||||
local vi = 0
|
||||
for z = minp.z, maxp.z do
|
||||
for x = minp.x, maxp.x do
|
||||
for y = -10000, -10000 do
|
||||
local c_air = minetest.get_content_id("air")
|
||||
data[vi] = c_air
|
||||
vi = vi + 1
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- Put air/void beneath bedrock
|
||||
local function generate_void(minp, maxp, data)
|
||||
local vi = 0
|
||||
for z = minp.z, maxp.z do
|
||||
for x = minp.x, maxp.x do
|
||||
for y = -10001, -31000 do
|
||||
local c_air = minetest.get_content_id("air")
|
||||
data[vi] = c_air
|
||||
vi = vi + 1
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue