mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-23 08:20:21 +01:00
use unified dyes' on_rotate handler for some nodes
This commit is contained in:
parent
6c0dd2d31a
commit
18d2e492af
@ -86,6 +86,7 @@ homedecor.register("book", {
|
|||||||
unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
|
unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
|
||||||
return itemstack
|
return itemstack
|
||||||
end,
|
end,
|
||||||
|
on_rotate = unifieddyes.fix_after_screwdriver_nsew,
|
||||||
on_dig = book_dig,
|
on_dig = book_dig,
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
@ -107,6 +108,7 @@ homedecor.register("book_open", {
|
|||||||
palette = "unifieddyes_palette_colorwallmounted.png",
|
palette = "unifieddyes_palette_colorwallmounted.png",
|
||||||
after_place_node = unifieddyes.fix_rotation_nsew,
|
after_place_node = unifieddyes.fix_rotation_nsew,
|
||||||
after_dig_node = unifieddyes.after_dig_node,
|
after_dig_node = unifieddyes.after_dig_node,
|
||||||
|
on_rotate = unifieddyes.fix_after_screwdriver_nsew,
|
||||||
on_dig = book_dig,
|
on_dig = book_dig,
|
||||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
|
@ -59,6 +59,7 @@ homedecor.register("kitchen_chair_wood", {
|
|||||||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2, ud_param2_colorable = 1},
|
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2, ud_param2_colorable = 1},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
after_place_node = unifieddyes.fix_rotation_nsew,
|
after_place_node = unifieddyes.fix_rotation_nsew,
|
||||||
|
on_rotate = unifieddyes.fix_after_screwdriver_nsew,
|
||||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||||
pos.y = pos.y+0 -- where do I put my ass ?
|
pos.y = pos.y+0 -- where do I put my ass ?
|
||||||
homedecor.sit(pos, node, clicker)
|
homedecor.sit(pos, node, clicker)
|
||||||
@ -82,6 +83,7 @@ homedecor.register("kitchen_chair_padded", {
|
|||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
after_place_node = unifieddyes.fix_rotation_nsew,
|
after_place_node = unifieddyes.fix_rotation_nsew,
|
||||||
after_dig_node = unifieddyes.after_dig_node,
|
after_dig_node = unifieddyes.after_dig_node,
|
||||||
|
on_rotate = unifieddyes.fix_after_screwdriver_nsew,
|
||||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||||
pos.y = pos.y+0 -- where do I put my ass ?
|
pos.y = pos.y+0 -- where do I put my ass ?
|
||||||
homedecor.sit(pos, node, clicker)
|
homedecor.sit(pos, node, clicker)
|
||||||
@ -105,6 +107,7 @@ homedecor.register("armchair", {
|
|||||||
node_box = ac_cbox,
|
node_box = ac_cbox,
|
||||||
after_place_node = unifieddyes.fix_rotation_nsew,
|
after_place_node = unifieddyes.fix_rotation_nsew,
|
||||||
after_dig_node = unifieddyes.after_dig_node,
|
after_dig_node = unifieddyes.after_dig_node,
|
||||||
|
on_rotate = unifieddyes.fix_after_screwdriver_nsew,
|
||||||
})
|
})
|
||||||
|
|
||||||
local ob_cbox = {
|
local ob_cbox = {
|
||||||
|
@ -494,7 +494,8 @@ homedecor.register("desk_lamp", {
|
|||||||
walkable = false,
|
walkable = false,
|
||||||
groups = {snappy=3, ud_param2_colorable = 1},
|
groups = {snappy=3, ud_param2_colorable = 1},
|
||||||
after_place_node = unifieddyes.fix_rotation_nsew,
|
after_place_node = unifieddyes.fix_rotation_nsew,
|
||||||
after_dig_node = unifieddyes.after_dig_node
|
after_dig_node = unifieddyes.after_dig_node,
|
||||||
|
on_rotate = unifieddyes.fix_after_screwdriver_nsew
|
||||||
})
|
})
|
||||||
|
|
||||||
-- "kitchen"/"dining room" ceiling lamp
|
-- "kitchen"/"dining room" ceiling lamp
|
||||||
|
@ -23,8 +23,9 @@ minetest.register_node("lrfurn:armchair", {
|
|||||||
groups = {snappy=3, ud_param2_colorable = 1},
|
groups = {snappy=3, ud_param2_colorable = 1},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
node_box = armchair_cbox,
|
node_box = armchair_cbox,
|
||||||
after_place_node = unifieddyes.fix_rotation,
|
after_place_node = unifieddyes.fix_rotation_nsew,
|
||||||
after_dig_node = unifieddyes.after_dig_node,
|
after_dig_node = unifieddyes.after_dig_node,
|
||||||
|
on_rotate = unifieddyes.fix_after_screwdriver_nsew,
|
||||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||||
if not clicker:is_player() then
|
if not clicker:is_player() then
|
||||||
return itemstack
|
return itemstack
|
||||||
|
Loading…
Reference in New Issue
Block a user