settingtypes.txt

From Minetest Developer Wiki
Revision as of 10:54, 10 January 2018 by Naj (talk | contribs) (Created page with "Settingtypes.txt files contains mods settings displayed in the settings menu. Settings can be accessed with minetest.setting_get method. == General format == <source>na...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Settingtypes.txt files contains mods settings displayed in the settings menu.

Settings can be accessed with minetest.setting_get method.

General format

name (Readable name) type type_args

Note that the parts are separated by exactly one space

type can be:

  • int
  • string
  • bool
  • float
  • enum
  • path
  • filepath
  • key (will be ignored in GUI, since a special key change dialog exists)
  • flags
  • noise_params_2d
  • noise_params_3d
  • v3f

type_args can be:

int:

  • default
  • default min max

string:

  • default (if default is not specified then "" is set)

bool:

  • default

float:

  • default
  • default min max

enum:

  • default value1,value2,...

path:

  • default (if default is not specified then "" is set)

filepath:

  • default (if default is not specified then "" is set)

key:

  • default

flags:

Flags are always separated by comma without spaces.

  • default possible_flags

noise_params_2d:

Format is <offset>, <scale>, (<spreadX>, <spreadY>, <spreadZ>), <seed>, <octaves>, <persistance>, <lacunarity>[, <default flags>]

  • default

noise_params_3d:

Format is <offset>, <scale>, (<spreadX>, <spreadY>, <spreadZ>), <seed>, <octaves>, <persistance>, <lacunarity>[, <default flags>]

  • default

v3f:

Format is (<X>, <Y>, <Z>)

  • default