minetest.string_to_pos - Uberi/MineTest-API GitHub Wiki

minetest.string_to_pos

Description

Converts a position string of the form "X, Y, Z" to a position.

Returns nil if input is invalid.

See also: minetest.pos_to_string

Syntax

[position](../type/position.html) string_to_pos([string](../type/string.html) string)

Examples

local pos = minetest.string_to_pos("5, 18, 2")
⚠️ **GitHub.com Fallback** ⚠️