]> git.lizzy.rs Git - minetest.git/commit
Add paramtype2s for 4 horizontal rotations and 64 colors (#11431)
authorWuzzy <Wuzzy@disroot.org>
Fri, 16 Sep 2022 11:18:55 +0000 (13:18 +0200)
committerGitHub <noreply@github.com>
Fri, 16 Sep 2022 11:18:55 +0000 (13:18 +0200)
commit1d04903c1973591e795d3275b900d76d7cb7877a
tree06891c6fe3075c1868832bc0007308e525cef70f
parentb5e7280708221cdcca89df7d16f2aea19e4b3c4c
Add paramtype2s for 4 horizontal rotations and 64 colors (#11431)

4dir is like facedir, but only for 4 horizontal directions: NESW. It is identical in behavior to facedir otherwise. The reason why game makers would want to use this over facedir is 1) simplicity and 2) you get 6 free bits.
It can be used for things like chests and furnaces and you don't need or want them to "flip them on the side" (like you could with facedir).

color4dir is like colorfacedir, but you get 64 colors instead of only 8.
15 files changed:
builtin/game/falling.lua
builtin/game/item.lua
builtin/game/item_s.lua
doc/lua_api.txt
games/devtest/mods/testnodes/meshes.lua
games/devtest/mods/testnodes/nodeboxes.lua
games/devtest/mods/testnodes/param2.lua
games/devtest/mods/testnodes/textures/testnodes_palette_4dir.png [new file with mode: 0644]
src/client/content_mapblock.cpp
src/client/game.cpp
src/mapnode.cpp
src/nodedef.cpp
src/nodedef.h
src/script/common/c_content.cpp
src/script/cpp_api/s_node.cpp