From 87ad4d8e7f25210cd28d9f2b372aa00aa3dab929 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 17 Apr 2018 14:54:50 +0100 Subject: Add online content repository Replaces mods and texture pack tabs with a single content tab --- doc/lua_api.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'doc/lua_api.txt') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 0c7d44adf..70eb48c12 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -55,10 +55,10 @@ Where `gameid` is unique to each game. The game directory can contain the following files: -* `game.conf`, which contains: - * `name = ` e.g. `name = Minetest` - * Optionally, game.conf can also contain - `disallowed_mapgens = ` +* `game.conf`, with the following keys: + * `name` - required, human readable name e.g. `name = Minetest` + * `description` - Short description to be shown in the content tab + * `disallowed_mapgens = ` e.g. `disallowed_mapgens = v5,v6,flat` These mapgens are removed from the list of mapgens for the game. * `minetest.conf`: @@ -2544,6 +2544,9 @@ Helper functions * returns time with microsecond precision. May not return wall time. * `table.copy(table)`: returns a table * returns a deep copy of `table` +* `table.insert_all(table, other_table)`: + * Appends all values in `other_table` to `table` - uses `#table + 1` to + find new indices. * `minetest.pointed_thing_to_face_pos(placer, pointed_thing)`: returns a position. * returns the exact position on the surface of a pointed node -- cgit v1.2.3