minetest.setting_get_pos

From Minetest Developer Wiki
Jump to: navigation, search


This page has been marked for deletion for the following reason: Deprecated in favour of minetest.Settings

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