minetest.dir_to_wallmounted - Uberi/MineTest-API GitHub Wiki

minetest.dir_to_wallmounted

Description

Convert a vector to a wallmounted value, used for paramtype2="wallmounted"

Syntax

[wallmounted](../type/wallmounted.html) dir_to_wallmounted([vector](../type/vector.html) dir)

Examples

local wallmounted = minetest.dir_to_wallmounted({x=0,y=0,z=1})
⚠️ **GitHub.com Fallback** ⚠️