minetest.dir to wallmounted

Description
Convert a vector to a wallmounted value, used for