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
super_flat = true
if super_flat == true then
minetest.register_alias("mapgen_air", "air")
minetest.register_alias("mapgen_stone", "air")
minetest.register_alias("mapgen_tree", "air")
minetest.register_alias("mapgen_leaves", "air")
minetest.register_alias("mapgen_apple", "air")
minetest.register_alias("mapgen_water_source", "air")
minetest.register_alias("mapgen_dirt", "air")
minetest.register_alias("mapgen_sand", "air")
minetest.register_alias("mapgen_gravel", "air")
minetest.register_alias("mapgen_clay", "air")
minetest.register_alias("mapgen_lava_source", "air")
minetest.register_alias("mapgen_cobble", "air")
minetest.register_alias("mapgen_mossycobble", "air")
minetest.register_alias("mapgen_dirt_with_grass", "air")
minetest.register_alias("mapgen_junglegrass", "air")
minetest.register_alias("mapgen_stone_with_coal", "air")
minetest.register_alias("mapgen_stone_with_iron", "air")
minetest.register_alias("mapgen_mese", "air")
minetest.register_alias("mapgen_desert_sand", "air")
minetest.register_alias("mapgen_desert_stone", "air")
minetest.register_alias("mapgen_papyrus", "air")
minetest.register_alias("mapgen_cactus", "air")
minetest.register_alias("mapgen_torch", "air")
minetest.register_alias("mapgen_nyancat", "air")
minetest.register_alias("mapgen_nyancat_rainbow", "air")
--GENERATE THE SUPERFLAT WORLD
minetest.register_on_generated(function(minp, maxp)
if minp.y < 0 and maxp.y > 0 then
orig = minp
orig_x = minp.x
pos = minp
for i = 1,6400 do
minetest.env:add_node(pos, {name="default:stone"})
minetest.env:add_node({x=pos.x,y=pos.y+1,z=pos.z}, {name="default:dirt_with_grass"})
pos.x = pos.x + 1
if pos.x == orig_x + 80 then
pos.z = pos.z + 1
pos.x = orig_x
end
end
end
end)
end