From 1d04903c1973591e795d3275b900d76d7cb7877a Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 16 Sep 2022 13:18:55 +0200 Subject: 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. --- src/script/common/c_content.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/script/common/c_content.cpp') diff --git a/src/script/common/c_content.cpp b/src/script/common/c_content.cpp index f15d41f96..da54edb96 100644 --- a/src/script/common/c_content.cpp +++ b/src/script/common/c_content.cpp @@ -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; -- cgit v1.2.3