use param2 colorization for homedecor kitchen chairs and armchairs

Note that the all-wood kitchen chair cannot be colored.
This commit is contained in:
Vanessa Ezekowitz
2017-01-30 19:44:44 -05:00
parent ac9927d035
commit dd0e26d95b
8 changed files with 430 additions and 345 deletions

View File

@ -79,6 +79,14 @@ function homedecor.fix_rotation(pos, placer, itemstack, pointed_thing)
minetest.swap_node(pos, { name = node.name, param2 = fdir })
end
function homedecor.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
local node = minetest.get_node(pos)
local yaw = placer:get_look_yaw()
local dir = minetest.yaw_to_dir(yaw)
local fdir = minetest.dir_to_wallmounted(dir)
minetest.swap_node(pos, { name = node.name, param2 = fdir })
end
screwdriver = screwdriver or {}
homedecor.plain_wood = { name = "homedecor_generic_wood_plain.png", color = 0xffa76820 }