Skip to content

Instantly share code, notes, and snippets.

@cornernote
Created October 2, 2012 13:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cornernote/3818956 to your computer and use it in GitHub Desktop.
Save cornernote/3818956 to your computer and use it in GitHub Desktop.
Read Settings from minetest.conf
-- custom settings go in minetest.conf like this:
my_setting = foobar
my_other_setting = 1
-- read custom or existing settings at load time
local my_setting = minetest.setting_get("my_setting") or "barfoo"
local my_other_setting= minetest.setting_getbool("my_other_setting") or false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment