mirror of
https://github.com/minetest-mods/magma_conduits.git
synced 2024-12-30 09:07:36 +01:00
665dbe2636
* Initial stab at volcano mapgen * Make caldera conical, randomized size a bit * remove grass from underwater soil * add snow, fix some errors in mountain shape calculations * improved soil and snow generation, more efficient mapgen * add some configuration for volcanos, and a find volcanoes command for debugging * enhance findvolcano, chunk sizes limited to multiples of mapblocks * more volcano options, also add soil cooking * update readme and screenshot * cosmetic tweaks, slight change to default slope range * fixed the mapgen v7 glitch via a horrible hack :( * fix the need-to-make-changes test * use biome-defined material to decorate slopes * apparently set_lighting and calc_lighting are only supposed to be called on mapgen voxelmanipulators * add magma chambers at the base of the volcano pipe * fixes to large-scale grid calculations * remove a line I added for debugging purposes * bringing back configurable limits now that the bug's been fixed for six months * generalizing the heating/cooling ABM * actually turn the cooling material into the targeted material. * Revert "actually turn the cooling material into the targeted material." This reverts commit 508e10acc7c3871cc56fb8347e7931e5595b5f54. * Fix cooling target node type for real * very strange, abms don't seem to be updating node groups somehow. * Workaround for Minetest issue #7864 * using minetest.after proved unreliable, trying different approach * remove the lava cutoff setting, no longer needed now that veins are fixed * improve findvolcano command * using the same solution for v7 mapgen bug as for the lava crash This is still not 100% reliable, but it's still better than the post-gen patching. * fix randomization of lava depth * remove debugging * extinct volcano lava depth wasn't working right either
22 lines
555 B
Lua
22 lines
555 B
Lua
magma_conduits = {}
|
|
|
|
local modpath = minetest.get_modpath(minetest.get_current_modname())
|
|
dofile(modpath.."/config.lua")
|
|
dofile(modpath.."/voxelarea_iterator.lua")
|
|
dofile(modpath.."/hot_rock.lua")
|
|
|
|
if magma_conduits.config.remove_default_lava then
|
|
minetest.register_alias_force("mapgen_lava_source", "air")
|
|
end
|
|
|
|
if magma_conduits.config.magma_veins then
|
|
dofile(modpath.."/magma_veins.lua")
|
|
end
|
|
if magma_conduits.config.volcanoes then
|
|
dofile(modpath.."/volcanoes.lua")
|
|
end
|
|
if magma_conduits.config.cook_soil then
|
|
dofile(modpath.."/cook_soil.lua")
|
|
end
|
|
|