forked from Apancore.Studio/simple-makes-complex
Mapgen: write SuperUltraSigmaMapgen part 7.2
This commit is contained in:
@@ -38,7 +38,7 @@ function Cavern:new(name, def)
|
||||
local _noise = {} -- note: must be nil until luanti mapgen objects are loaded.
|
||||
|
||||
if def.threshold == nil then
|
||||
def.threshold = 0.0
|
||||
def.threshold = 0.1
|
||||
end
|
||||
|
||||
local _groups
|
||||
@@ -63,9 +63,9 @@ function Cavern:new(name, def)
|
||||
end
|
||||
|
||||
function instance:initNoise()
|
||||
--if not table.is_empty(_noise) then
|
||||
-- minetest.log('warning', 'Cavern noise has already been initialized. Re-initialization is not recommended.')
|
||||
--end
|
||||
if not table.is_empty(_noise) then
|
||||
minetest.log('warning', 'Cavern noise has already been initialized. Re-initialization is not recommended.')
|
||||
end
|
||||
|
||||
_noise = core.get_value_noise(_noiseParams)
|
||||
end
|
||||
|
||||
@@ -17,8 +17,13 @@ dofile(core.get_modpath('smc__api__require')..'/init.lua')
|
||||
-- Mod
|
||||
dofile(core.get_modpath('smc__api__mod')..'/init.lua')
|
||||
|
||||
-- TODO: исправить загрузку строковых библиотек (хотя они пока что не юзаются в мапгене)
|
||||
-- Они не работают из-за get_current_modname внутри utf8
|
||||
-- UTF-8
|
||||
-- dofile(core.get_modpath('smc__api__utf8')..'/init.lua')
|
||||
|
||||
-- String
|
||||
dofile(core.get_modpath('smc__api__string')..'/init.lua')
|
||||
-- dofile(core.get_modpath('smc__api__string')..'/init.lua')
|
||||
|
||||
-- Table
|
||||
dofile(core.get_modpath('smc__api__table')..'/init.lua')
|
||||
@@ -142,6 +147,7 @@ mapGenerator:registerCavern('world', 'cavern1', {
|
||||
minY = -100,
|
||||
maxY = -10,
|
||||
smoothDistance = 20,
|
||||
threshold = 0.3,
|
||||
noiseParams ={
|
||||
offset = 0,
|
||||
scale = 1,
|
||||
|
||||
Reference in New Issue
Block a user