forked from mtcontrib/homedecor_modpack
use unified dyes on_construct handler
to set 256-color palette meta key on place for those nodes that use it
This commit is contained in:
parent
761b18c17e
commit
27eae09d93
@ -15,6 +15,7 @@ minetest.register_node("homedecor:bathroom_tiles_dark", {
|
|||||||
place_param2 = 240,
|
place_param2 = 240,
|
||||||
groups = {cracky=3, ud_param2_colorable = 1},
|
groups = {cracky=3, ud_param2_colorable = 1},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
on_construct = unifieddyes.on_construct,
|
||||||
after_dig_node = unifieddyes.after_dig_node
|
after_dig_node = unifieddyes.after_dig_node
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -32,6 +33,7 @@ minetest.register_node("homedecor:bathroom_tiles_medium", {
|
|||||||
place_param2 = 240,
|
place_param2 = 240,
|
||||||
groups = {cracky=3, ud_param2_colorable = 1},
|
groups = {cracky=3, ud_param2_colorable = 1},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
on_construct = unifieddyes.on_construct,
|
||||||
after_dig_node = unifieddyes.after_dig_node
|
after_dig_node = unifieddyes.after_dig_node
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -49,6 +51,7 @@ minetest.register_node("homedecor:bathroom_tiles_light", {
|
|||||||
place_param2 = 240,
|
place_param2 = 240,
|
||||||
groups = {cracky=3, ud_param2_colorable = 1},
|
groups = {cracky=3, ud_param2_colorable = 1},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
on_construct = unifieddyes.on_construct,
|
||||||
after_dig_node = unifieddyes.after_dig_node
|
after_dig_node = unifieddyes.after_dig_node
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -428,6 +428,7 @@ local function reg_lamp(suffix, nxt, light, brightness)
|
|||||||
node.name = "homedecor:table_lamp_"..repl[suffix]
|
node.name = "homedecor:table_lamp_"..repl[suffix]
|
||||||
minetest.set_node(pos, node)
|
minetest.set_node(pos, node)
|
||||||
end,
|
end,
|
||||||
|
on_construct = unifieddyes.on_construct,
|
||||||
after_dig_node = unifieddyes.after_dig_node
|
after_dig_node = unifieddyes.after_dig_node
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -457,6 +458,7 @@ local function reg_lamp(suffix, nxt, light, brightness)
|
|||||||
node.name = "homedecor:standing_lamp_"..repl[suffix]
|
node.name = "homedecor:standing_lamp_"..repl[suffix]
|
||||||
minetest.set_node(pos, node)
|
minetest.set_node(pos, node)
|
||||||
end,
|
end,
|
||||||
|
on_construct = unifieddyes.on_construct,
|
||||||
after_dig_node = unifieddyes.after_dig_node,
|
after_dig_node = unifieddyes.after_dig_node,
|
||||||
expand = { top="placeholder" },
|
expand = { top="placeholder" },
|
||||||
})
|
})
|
||||||
|
@ -33,6 +33,7 @@ minetest.register_node("lavalamp:lavalamp", {
|
|||||||
},
|
},
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3, ud_param2_colorable = 1},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3, ud_param2_colorable = 1},
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
|
on_construct = unifieddyes.on_construct,
|
||||||
after_dig_node = unifieddyes.after_dig_node,
|
after_dig_node = unifieddyes.after_dig_node,
|
||||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||||
node.name = "lavalamp:lavalamp_off"
|
node.name = "lavalamp:lavalamp_off"
|
||||||
@ -62,6 +63,7 @@ minetest.register_node("lavalamp:lavalamp_off", {
|
|||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3, not_in_creative_inventory=1},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3, not_in_creative_inventory=1},
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
drop = "lavalamp:lavalamp",
|
drop = "lavalamp:lavalamp",
|
||||||
|
on_construct = unifieddyes.on_construct,
|
||||||
after_dig_node = unifieddyes.after_dig_node,
|
after_dig_node = unifieddyes.after_dig_node,
|
||||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||||
node.name = "lavalamp:lavalamp"
|
node.name = "lavalamp:lavalamp"
|
||||||
|
Loading…
Reference in New Issue
Block a user