mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
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.
This commit is contained in:
parent
b5e7280708
commit
1d04903c19
15 changed files with 299 additions and 28 deletions
|
@ -673,7 +673,8 @@ void read_content_features(lua_State *L, ContentFeatures &f, int index)
|
|||
!(f.param_type_2 == CPT2_COLOR ||
|
||||
f.param_type_2 == CPT2_COLORED_FACEDIR ||
|
||||
f.param_type_2 == CPT2_COLORED_WALLMOUNTED ||
|
||||
f.param_type_2 == CPT2_COLORED_DEGROTATE))
|
||||
f.param_type_2 == CPT2_COLORED_DEGROTATE ||
|
||||
f.param_type_2 == CPT2_COLORED_4DIR))
|
||||
warningstream << "Node " << f.name.c_str()
|
||||
<< " has a palette, but not a suitable paramtype2." << std::endl;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue