Page 1 of 1

REQUEST! Atlantis mod

PostPosted: Thu Mar 15, 2012 18:32
by Jordach
This mod make the whole map underwater (water sources are placed at X,120,Z) and at which, you have unlimited glass, torches and cobblestone. Or any materials desired.

PostPosted: Thu Mar 15, 2012 19:46
by sfan5
+5

PostPosted: Thu Mar 15, 2012 19:47
by sdzen
it needs endless san as well my favorite tool for water removal

PostPosted: Thu Mar 15, 2012 20:49
by wieszak
Something like this maybe :) ?
create directory atlantis under data/mods
create there file init.lua with this:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
--[[
atlantis mod
]]--
local water_gen = function( minp, maxp )
        if maxp.y < 70 then
                for lx = minp.x, maxp.x do
                        for ly = minp.y, maxp.y do
                                for lz = minp.z, maxp.z do
                                        local p = { x = lx, y = ly, z = lz }
                                        local n = minetest.env:get_node( p )
                                        if n.name == "air" then
                                                minetest.env:add_node( p, { name = "default:water_source" } )
                                        end
                                end
                        end
                end
        end
end
minetest.register_on_generated( water_gen )


... and start new world (if not, then things could go... weird...)

PostPosted: Thu Mar 15, 2012 21:01
by sdzen
ive got an better idea on map creation replace air with water then have plants replaced with water turn dirt with grass to dirt!
Edit this is not like the above post

PostPosted: Thu Mar 15, 2012 21:12
by wieszak
well, dirt with grass will soon be converted to dirt, and any plants underwater i think adds some feeling of land recently flooded, so it is more like atlantis on sink day :))

PostPosted: Thu Mar 15, 2012 21:13
by Jordach
Wiezak's code works.

But cross with Desert mod, then we have a winner.

PostPosted: Fri Mar 16, 2012 06:29
by sfan5
+1

PostPosted: Fri Mar 16, 2012 12:27
by jordan4ibanez
i am going to blatantly steal this and give no one credit

jk :P but lets see if we can make this happen :D

PostPosted: Fri Mar 16, 2012 13:41
by sfan5
lol

PostPosted: Fri Mar 16, 2012 16:00
by wieszak
Well, use it if you like it ;) What is given freely cannot be stolen :)

But, in fact this is rather wrong way to do it. To be right way is the land generator should be parametrized - such things as land smoothnes, density of trees and ores, volume of caves, water level and similar should be just settable in "advanced menu" before starting new world and kept with seed.

PostPosted: Fri Mar 16, 2012 16:03
by Jordach
Wieszak, I'd like to combine this with Kddekadenz's code for Atlantis.