A Minetest library for managing data files in the world directory.
Go to file
2021-05-28 00:12:11 -07:00
docs Update LuaDoc 2021-05-27 23:44:07 -07:00
api.lua Update LuaDoc 2021-05-27 23:44:07 -07:00
changelog.txt Create initial files 2021-05-27 22:15:38 -07:00
init.lua Add API for reading/writing json configs in world path 2021-05-27 23:23:51 -07:00
LICENSE.txt Create initial files 2021-05-27 22:15:38 -07:00
mod.conf Set version to 1.0 2021-05-28 00:12:11 -07:00
README.md Update README 2021-05-28 00:11:26 -07:00
TODO.txt Create initial files 2021-05-27 22:15:38 -07:00

World Config mod for Minetest

Description:

A Minetest library for managing data files in the world directory.

It takes a little work to read from & write to data in the world directory. wconfig aims to make that easier by utilizing just two simple methods.

Licensing:

Usage:

There are two methods:

- wconfig.read(fname)
  - reads json data from file in world directory & converts to a table.
  - fname:  File basename without suffix (e.g. "my_config" or "my_mod/my_config").
- wconfig.write(fname, data[, styled])
  - converts table to json data & writes to file in world directory.
  - fname:  File basename without suffix (e.g. "my_config" or "my_mod/my_config").
  - data:   Table containing data to be exported.
  - styled: Outputs in a human-readable format if this is set (default: true).

Requirements:

Depends:          none
Optional depends: none