From Minetest Developer Wiki
Jump to navigation Jump to search

Mbox warning.png This page has been proposed for deletion for the following reason: " Deprecated in favour of minetest.Settings"
If you don't think that this page should be deleted, please explain why on the talk page.




Returns the position that is stored in minetest.conf under the variable <source enclose="none">name</source>, or <source enclose="none">nil</source> if the value is not found.

The syntax in the config file is as follows:

<source lang="text"> varname = X, Y, Z </source>

Where X, Y, and Z are numbers.


<source> local pos = minetest.setting_get_pos("my_spawnpoint") player:setpos(pos) </source>

See Also