Instantly share code, notes, and snippets.

Embed
What would you like to do?
minetest.register_on_mapgen_init(function(params)
minetest.set_mapgen_params({
mgname = "v7",
seed = params.seed,
water_level = 1,
flags = {
trees = false,
caves = true,
flat = false,
dungeons = false,
light = true,
},
})
end)
-- Result in map_meta.txt: mg_flags = trees, caves, dungeons, noflat, light
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment