mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
added (optional) support for 6d facedir in dir_to_facedir and added facedir_to_dir
This commit is contained in:
parent
0b4b9e7f3a
commit
a0f5b70568
2 changed files with 64 additions and 4 deletions
|
@ -1270,8 +1270,10 @@ minetest.inventorycube(img1, img2, img3)
|
|||
^ Returns a string for making an image of a cube (useful as an item image)
|
||||
minetest.get_pointed_thing_position(pointed_thing, above)
|
||||
^ Get position of a pointed_thing (that you can get from somewhere)
|
||||
minetest.dir_to_facedir(dir)
|
||||
^ Convert a vector to a facedir value, used in param2 for paramtype2="facedir"
|
||||
minetest.dir_to_facedir(dir, is6d)
|
||||
^ Convert a vector to a facedir value, used in param2 for paramtype2="facedir"; passing something non-nil/false for the optional second parameter causes it to take the y component into account
|
||||
minetest.facedir_to_dir(facedir)
|
||||
^ Convert a facedir back into a vector aimed directly out the "back" of a node
|
||||
minetest.dir_to_wallmounted(dir)
|
||||
^ Convert a vector to a wallmounted value, used for paramtype2="wallmounted"
|
||||
minetest.get_node_drops(nodename, toolname)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue