summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorEzhh <owlecho@live.com>2017-12-16 16:02:08 +0000
committerSmallJoker <SmallJoker@users.noreply.github.com>2017-12-16 17:02:08 +0100
commit649eef9e4fe4ef6a59ca9f59c900c6e0900cfb3a (patch)
treeb600d8811b5a79ba509461665b418da42552e353 /doc/lua_api.txt
parent770eb09adcca5e8d7b1d3b441a130fb9338759e2 (diff)
downloadminetest-649eef9e4fe4ef6a59ca9f59c900c6e0900cfb3a.tar.gz
minetest-649eef9e4fe4ef6a59ca9f59c900c6e0900cfb3a.tar.bz2
minetest-649eef9e4fe4ef6a59ca9f59c900c6e0900cfb3a.zip
Give subgames the ability to disallow specific mapgens (#6792)
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt12
1 files changed, 11 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 7ffd17a42..aba01fa1d 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -53,7 +53,7 @@ Games are looked up from:
where `gameid` is unique to each game.
-The game directory contains the file `game.conf`, which contains these fields:
+The game directory contains the file `game.conf`, which contains:
name = <Human-readable full name of the game>
@@ -61,6 +61,16 @@ e.g.
name = Minetest
+Optionally, game.conf can also contain:
+
+ disallowed_mapgens = <comma-separated mapgens>
+
+e.g.
+
+ disallowed_mapgens = v5,v6,flat
+
+These mapgens are removed from the list of mapgens for the game.
+
The game directory can contain the file minetest.conf, which will be used
to set default settings when running the particular game.
It can also contain a settingtypes.txt in the same format as the one in builtin.