minetest.setting_get_pos

From Minetest Developer Wiki
Jump to: navigation, search

Contents

Syntax

Description

Returns the position that is stored in minetest.conf under the variable name, or nil if the value is not found.

The syntax in the config file is as follows:

varname = X, Y, Z

Where X, Y, and Z are numbers.

Example

local pos = minetest.setting_get_pos("my_spawnpoint")
player:setpos(pos)

See Also

Personal tools
Namespaces

Variants
Actions
Navigation
API
Toolbox