forked from mtcontrib/homedecor_modpack
Compare commits
2 Commits
2018-09-13
...
nalc-1.0
Author | SHA1 | Date | |
---|---|---|---|
5d4c64d3b2 | |||
4eb9ffb088 |
@ -4,4 +4,6 @@ local modpath = minetest.get_modpath("building_blocks")
|
|||||||
dofile(modpath.."/alias.lua")
|
dofile(modpath.."/alias.lua")
|
||||||
dofile(modpath.."/node_stairs.lua")
|
dofile(modpath.."/node_stairs.lua")
|
||||||
dofile(modpath.."/others.lua")
|
dofile(modpath.."/others.lua")
|
||||||
dofile(modpath.."/recipes.lua")
|
dofile(modpath.."/recipes.lua")
|
||||||
|
|
||||||
|
minetest.log("action", "[building_blocks] loaded.")
|
||||||
|
@ -177,3 +177,5 @@ minetest.register_craft({
|
|||||||
{'technic:brass_ingot', 'technic:brass_ingot', 'technic:brass_ingot'},
|
{'technic:brass_ingot', 'technic:brass_ingot', 'technic:brass_ingot'},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.log("action", "[chains] loaded.")
|
||||||
|
@ -97,3 +97,5 @@ dofile(MODPATH.."/computers.lua")
|
|||||||
dofile(MODPATH.."/miscitems.lua")
|
dofile(MODPATH.."/miscitems.lua")
|
||||||
dofile(MODPATH.."/recipes.lua")
|
dofile(MODPATH.."/recipes.lua")
|
||||||
dofile(MODPATH.."/tetris.lua")
|
dofile(MODPATH.."/tetris.lua")
|
||||||
|
|
||||||
|
minetest.log("action", "[computer] loaded.")
|
||||||
|
@ -214,3 +214,5 @@ minetest.register_alias("fake_fire:smokeless_ice_fire", "fake_fire:ice_fire")
|
|||||||
minetest.register_alias("fake_fire:smokeless_chimney_top_stone", "fake_fire:chimney_top_stone")
|
minetest.register_alias("fake_fire:smokeless_chimney_top_stone", "fake_fire:chimney_top_stone")
|
||||||
minetest.register_alias("fake_fire:smokeless_chimney_top_sandstone", "fake_fire:chimney_top_sandstone")
|
minetest.register_alias("fake_fire:smokeless_chimney_top_sandstone", "fake_fire:chimney_top_sandstone")
|
||||||
minetest.register_alias("fake_fire:flint", "fake_fire:flint_and_steel")
|
minetest.register_alias("fake_fire:flint", "fake_fire:flint_and_steel")
|
||||||
|
|
||||||
|
minetest.log("action", "[fake_fire] loaded.")
|
||||||
|
@ -12,9 +12,12 @@ minetest.register_node("homedecor:bathroom_tiles_dark", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "color",
|
paramtype2 = "color",
|
||||||
palette = "unifieddyes_palette_extended.png",
|
palette = "unifieddyes_palette_extended.png",
|
||||||
|
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,
|
on_construct = unifieddyes.on_construct,
|
||||||
|
after_place_node = unifieddyes.recolor_on_place,
|
||||||
|
after_dig_node = unifieddyes.after_dig_node
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("homedecor:bathroom_tiles_medium", {
|
minetest.register_node("homedecor:bathroom_tiles_medium", {
|
||||||
@ -28,9 +31,12 @@ minetest.register_node("homedecor:bathroom_tiles_medium", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "color",
|
paramtype2 = "color",
|
||||||
palette = "unifieddyes_palette_extended.png",
|
palette = "unifieddyes_palette_extended.png",
|
||||||
|
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,
|
on_construct = unifieddyes.on_construct,
|
||||||
|
after_place_node = unifieddyes.recolor_on_place,
|
||||||
|
after_dig_node = unifieddyes.after_dig_node
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("homedecor:bathroom_tiles_light", {
|
minetest.register_node("homedecor:bathroom_tiles_light", {
|
||||||
@ -44,9 +50,12 @@ minetest.register_node("homedecor:bathroom_tiles_light", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "color",
|
paramtype2 = "color",
|
||||||
palette = "unifieddyes_palette_extended.png",
|
palette = "unifieddyes_palette_extended.png",
|
||||||
|
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,
|
on_construct = unifieddyes.on_construct,
|
||||||
|
after_place_node = unifieddyes.recolor_on_place,
|
||||||
|
after_dig_node = unifieddyes.after_dig_node
|
||||||
})
|
})
|
||||||
|
|
||||||
local tr_cbox = {
|
local tr_cbox = {
|
||||||
@ -164,3 +173,21 @@ minetest.register_lbm({
|
|||||||
meta:set_string("palette", "ext")
|
meta:set_string("palette", "ext")
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_lbm({
|
||||||
|
name = "homedecor:recolor_bathroom_tiles",
|
||||||
|
label = "Convert bathroom tiles to use UD extended palette",
|
||||||
|
run_at_every_load = false,
|
||||||
|
nodenames = {
|
||||||
|
"homedecor:bathroom_tiles_light",
|
||||||
|
"homedecor:bathroom_tiles_medium",
|
||||||
|
"homedecor:bathroom_tiles_dark",
|
||||||
|
},
|
||||||
|
action = function(pos, node)
|
||||||
|
local meta = minetest.get_meta(pos)
|
||||||
|
if meta:get_string("palette") ~= "ext" then
|
||||||
|
minetest.swap_node(pos, { name = node.name, param2 = unifieddyes.convert_classic_palette[node.param2] })
|
||||||
|
meta:set_string("palette", "ext")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
})
|
||||||
|
@ -52,11 +52,13 @@ homedecor.register("bed_regular", {
|
|||||||
on_rotate = screwdriver.disallow,
|
on_rotate = screwdriver.disallow,
|
||||||
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
||||||
unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
|
unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
|
||||||
|
unifieddyes.recolor_on_place(pos, placer, itemstack, pointed_thing)
|
||||||
if not placer:get_player_control().sneak then
|
if not placer:get_player_control().sneak then
|
||||||
return homedecor.bed_expansion(pos, placer, itemstack, pointed_thing)
|
return homedecor.bed_expansion(pos, placer, itemstack, pointed_thing)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
||||||
|
unifieddyes.after_dig_node(pos, oldnode, oldmetadata, digger)
|
||||||
homedecor.unextend_bed(pos)
|
homedecor.unextend_bed(pos)
|
||||||
end,
|
end,
|
||||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||||
@ -89,7 +91,9 @@ homedecor.register("bed_extended", {
|
|||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
expand = { forward = "air" },
|
expand = { forward = "air" },
|
||||||
on_rotate = screwdriver.disallow,
|
on_rotate = screwdriver.disallow,
|
||||||
|
after_place_node = unifieddyes.recolor_on_place,
|
||||||
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
||||||
|
unifieddyes.after_dig_node(pos, oldnode, oldmetadata, digger)
|
||||||
homedecor.unextend_bed(pos)
|
homedecor.unextend_bed(pos)
|
||||||
end,
|
end,
|
||||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||||
@ -120,8 +124,10 @@ homedecor.register("bed_kingsize", {
|
|||||||
on_rotate = screwdriver.disallow,
|
on_rotate = screwdriver.disallow,
|
||||||
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
||||||
unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
|
unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
|
||||||
|
unifieddyes.recolor_on_place(pos, placer, itemstack, pointed_thing)
|
||||||
end,
|
end,
|
||||||
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
||||||
|
unifieddyes.after_dig_node(pos, oldnode, oldmetadata, digger)
|
||||||
local inv = digger:get_inventory()
|
local inv = digger:get_inventory()
|
||||||
if digger:get_player_control().sneak and inv:room_for_item("main", "homedecor:bed_regular 2") then
|
if digger:get_player_control().sneak and inv:room_for_item("main", "homedecor:bed_regular 2") then
|
||||||
inv:remove_item("main", "homedecor:bed_kingsize 1")
|
inv:remove_item("main", "homedecor:bed_kingsize 1")
|
||||||
@ -131,7 +137,7 @@ homedecor.register("bed_kingsize", {
|
|||||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||||
homedecor.beds_on_rightclick(pos, node, clicker)
|
homedecor.beds_on_rightclick(pos, node, clicker)
|
||||||
return itemstack
|
return itemstack
|
||||||
end,
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
for _, w in pairs({ N_("mahogany"), N_("oak") }) do
|
for _, w in pairs({ N_("mahogany"), N_("oak") }) do
|
||||||
|
@ -546,17 +546,6 @@ minetest.register_craft( {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
unifieddyes.register_color_craft({
|
|
||||||
output = "homedecor:shutter_colored",
|
|
||||||
palette = "wallmounted",
|
|
||||||
type = "shapeless",
|
|
||||||
neutral_node = "homedecor:shutter",
|
|
||||||
recipe = {
|
|
||||||
"NEUTRAL_NODE",
|
|
||||||
"MAIN_DYE"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "fuel",
|
type = "fuel",
|
||||||
recipe = "homedecor:shutter_oak",
|
recipe = "homedecor:shutter_oak",
|
||||||
@ -878,28 +867,6 @@ minetest.register_craft( {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
unifieddyes.register_color_craft({
|
|
||||||
output = "homedecor:curtain_closed",
|
|
||||||
palette = "wallmounted",
|
|
||||||
type = "shapeless",
|
|
||||||
neutral_node = "homedecor:curtain_closed",
|
|
||||||
recipe = {
|
|
||||||
"NEUTRAL_NODE",
|
|
||||||
"MAIN_DYE"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
unifieddyes.register_color_craft({
|
|
||||||
output = "homedecor:curtain_open",
|
|
||||||
palette = "wallmounted",
|
|
||||||
type = "shapeless",
|
|
||||||
neutral_node = "homedecor:curtain_open",
|
|
||||||
recipe = {
|
|
||||||
"NEUTRAL_NODE",
|
|
||||||
"MAIN_DYE"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
local mats = {
|
local mats = {
|
||||||
{ "brass", "homedecor:pole_brass" },
|
{ "brass", "homedecor:pole_brass" },
|
||||||
{ "wrought_iron", "homedecor:pole_wrought_iron" },
|
{ "wrought_iron", "homedecor:pole_wrought_iron" },
|
||||||
@ -1228,6 +1195,7 @@ minetest.register_craft( {
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "homedecor:glowlight_half 6",
|
output = "homedecor:glowlight_half 6",
|
||||||
recipe = {
|
recipe = {
|
||||||
|
{ "dye:white", "dye:white", "dye:white" },
|
||||||
{ "default:glass", "homedecor:power_crystal", "default:glass", },
|
{ "default:glass", "homedecor:power_crystal", "default:glass", },
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -1235,38 +1203,11 @@ minetest.register_craft({
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "homedecor:glowlight_half 6",
|
output = "homedecor:glowlight_half 6",
|
||||||
recipe = {
|
recipe = {
|
||||||
|
{ "dye:white", "dye:white", "dye:white" },
|
||||||
{"moreblocks:super_glow_glass", "moreblocks:glow_glass", "moreblocks:super_glow_glass", },
|
{"moreblocks:super_glow_glass", "moreblocks:glow_glass", "moreblocks:super_glow_glass", },
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "homedecor:glowlight_half",
|
|
||||||
recipe = {
|
|
||||||
{"homedecor:glowlight_small_cube","homedecor:glowlight_small_cube"},
|
|
||||||
{"homedecor:glowlight_small_cube","homedecor:glowlight_small_cube"}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "homedecor:glowlight_half",
|
|
||||||
type = "shapeless",
|
|
||||||
recipe = {
|
|
||||||
"homedecor:glowlight_quarter",
|
|
||||||
"homedecor:glowlight_quarter"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
unifieddyes.register_color_craft({
|
|
||||||
output = "homedecor:glowlight_half",
|
|
||||||
palette = "wallmounted",
|
|
||||||
type = "shapeless",
|
|
||||||
neutral_node = "homedecor:glowlight_half",
|
|
||||||
recipe = {
|
|
||||||
"NEUTRAL_NODE",
|
|
||||||
"MAIN_DYE"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "homedecor:glowlight_quarter 6",
|
output = "homedecor:glowlight_quarter 6",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -1274,17 +1215,6 @@ minetest.register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
unifieddyes.register_color_craft({
|
|
||||||
output = "homedecor:glowlight_quarter",
|
|
||||||
palette = "wallmounted",
|
|
||||||
type = "shapeless",
|
|
||||||
neutral_node = "homedecor:glowlight_quarter",
|
|
||||||
recipe = {
|
|
||||||
"NEUTRAL_NODE",
|
|
||||||
"MAIN_DYE"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "homedecor:glowlight_small_cube 8",
|
output = "homedecor:glowlight_small_cube 8",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -1309,14 +1239,20 @@ minetest.register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
unifieddyes.register_color_craft({
|
minetest.register_craft({
|
||||||
output = "homedecor:glowlight_small_cube",
|
output = "homedecor:glowlight_half",
|
||||||
palette = "wallmounted",
|
recipe = {
|
||||||
type = "shapeless",
|
{"homedecor:glowlight_small_cube","homedecor:glowlight_small_cube"},
|
||||||
neutral_node = "homedecor:glowlight_small_cube",
|
{"homedecor:glowlight_small_cube","homedecor:glowlight_small_cube"}
|
||||||
recipe = {
|
}
|
||||||
"NEUTRAL_NODE",
|
})
|
||||||
"MAIN_DYE"
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "homedecor:glowlight_half",
|
||||||
|
type = "shapeless",
|
||||||
|
recipe = {
|
||||||
|
"homedecor:glowlight_quarter",
|
||||||
|
"homedecor:glowlight_quarter"
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -2291,17 +2227,6 @@ minetest.register_craft( {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
unifieddyes.register_color_craft({
|
|
||||||
output = "homedecor:bathroom_tiles_light",
|
|
||||||
palette = "extended",
|
|
||||||
type = "shapeless",
|
|
||||||
neutral_node = "homedecor:bathroom_tiles_light",
|
|
||||||
recipe = {
|
|
||||||
"NEUTRAL_NODE",
|
|
||||||
"MAIN_DYE"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "homedecor:bathroom_tiles_medium 4",
|
output = "homedecor:bathroom_tiles_medium 4",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -2310,17 +2235,6 @@ minetest.register_craft( {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
unifieddyes.register_color_craft({
|
|
||||||
output = "homedecor:bathroom_tiles_medium",
|
|
||||||
palette = "extended",
|
|
||||||
type = "shapeless",
|
|
||||||
neutral_node = "homedecor:bathroom_tiles_medium",
|
|
||||||
recipe = {
|
|
||||||
"NEUTRAL_NODE",
|
|
||||||
"MAIN_DYE"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "homedecor:bathroom_tiles_dark 4",
|
output = "homedecor:bathroom_tiles_dark 4",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -2329,17 +2243,6 @@ minetest.register_craft( {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
unifieddyes.register_color_craft({
|
|
||||||
output = "homedecor:bathroom_tiles_dark",
|
|
||||||
palette = "extended",
|
|
||||||
type = "shapeless",
|
|
||||||
neutral_node = "homedecor:bathroom_tiles_dark",
|
|
||||||
recipe = {
|
|
||||||
"NEUTRAL_NODE",
|
|
||||||
"MAIN_DYE"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
-- misc electrical
|
-- misc electrical
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
@ -2573,17 +2476,6 @@ minetest.register_craft( {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
unifieddyes.register_color_craft({
|
|
||||||
output = "homedecor:bed_regular",
|
|
||||||
palette = "wallmounted",
|
|
||||||
type = "shapeless",
|
|
||||||
neutral_node = "homedecor:bed_regular",
|
|
||||||
recipe = {
|
|
||||||
"NEUTRAL_NODE",
|
|
||||||
"MAIN_DYE"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "homedecor:bed_kingsize",
|
output = "homedecor:bed_kingsize",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -2591,29 +2483,6 @@ minetest.register_craft( {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
unifieddyes.register_color_craft({
|
|
||||||
output = "homedecor:bed_kingsize",
|
|
||||||
palette = "wallmounted",
|
|
||||||
type = "shapeless",
|
|
||||||
neutral_node = "homedecor:bed_kingsize",
|
|
||||||
recipe = {
|
|
||||||
"NEUTRAL_NODE",
|
|
||||||
"MAIN_DYE"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
unifieddyes.register_color_craft({
|
|
||||||
output = "homedecor:bed_kingsize",
|
|
||||||
palette = "wallmounted",
|
|
||||||
type = "shapeless",
|
|
||||||
neutral_node = "homedecor:bed_regular",
|
|
||||||
recipe = {
|
|
||||||
"NEUTRAL_NODE",
|
|
||||||
"NEUTRAL_NODE",
|
|
||||||
"MAIN_DYE"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "homedecor:bottle_green",
|
output = "homedecor:bottle_green",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -2974,17 +2843,6 @@ minetest.register_craft({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
unifieddyes.register_color_craft({
|
|
||||||
output = "homedecor:desk_lamp",
|
|
||||||
palette = "wallmounted",
|
|
||||||
type = "shapeless",
|
|
||||||
neutral_node = "homedecor:desk_lamp",
|
|
||||||
recipe = {
|
|
||||||
"NEUTRAL_NODE",
|
|
||||||
"MAIN_DYE"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "homedecor:hanging_lantern 2",
|
output = "homedecor:hanging_lantern 2",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -3273,19 +3131,6 @@ for i in ipairs(homedecor.banister_materials) do
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
unifieddyes.register_color_craft({
|
|
||||||
output = "",
|
|
||||||
palette = "split",
|
|
||||||
neutral_node = "homedecor:banister_wood_horizontal",
|
|
||||||
type = "shapeless",
|
|
||||||
output_prefix = "homedecor:banister_wood_horizontal_",
|
|
||||||
output_suffix = "",
|
|
||||||
recipe = {
|
|
||||||
"NEUTRAL_NODE",
|
|
||||||
"MAIN_DYE",
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
if (minetest.get_modpath("technic") and minetest.get_modpath("dye") and minetest.get_modpath("bees")) then
|
if (minetest.get_modpath("technic") and minetest.get_modpath("dye") and minetest.get_modpath("bees")) then
|
||||||
technic.register_separating_recipe({ input = {"bees:wax 1"}, output = {"homedecor:oil_extract 2","dye:yellow 1"} })
|
technic.register_separating_recipe({ input = {"bees:wax 1"}, output = {"homedecor:oil_extract 2","dye:yellow 1"} })
|
||||||
end
|
end
|
||||||
|
@ -13,4 +13,3 @@ beds?
|
|||||||
flowers?
|
flowers?
|
||||||
3d_armor?
|
3d_armor?
|
||||||
skinsdb?
|
skinsdb?
|
||||||
mesecons?
|
|
||||||
|
@ -4,8 +4,6 @@ local S = homedecor_i18n.gettext
|
|||||||
|
|
||||||
local function N_(x) return x end
|
local function N_(x) return x end
|
||||||
|
|
||||||
local m_rules = mesecon and mesecon.rules and mesecon.rules.pplate
|
|
||||||
|
|
||||||
-- doors
|
-- doors
|
||||||
|
|
||||||
local function isSolid(pos, adjust)
|
local function isSolid(pos, adjust)
|
||||||
@ -266,7 +264,6 @@ for i, side in ipairs(sides) do
|
|||||||
drop = "homedecor:door_"..doorname.."_left",
|
drop = "homedecor:door_"..doorname.."_left",
|
||||||
mesecons = {
|
mesecons = {
|
||||||
effector = {
|
effector = {
|
||||||
rules = m_rules,
|
|
||||||
action_on = function(pos,node)
|
action_on = function(pos,node)
|
||||||
local isClosed = getClosed(pos)
|
local isClosed = getClosed(pos)
|
||||||
if isClosed then
|
if isClosed then
|
||||||
@ -408,7 +405,6 @@ for i, g in ipairs(gate_list) do
|
|||||||
end,
|
end,
|
||||||
mesecons = {
|
mesecons = {
|
||||||
effector = {
|
effector = {
|
||||||
rules = m_rules,
|
|
||||||
action_on = function(pos,node) homedecor.flip_gate(pos,node,nil,gate, "closed") end
|
action_on = function(pos,node) homedecor.flip_gate(pos,node,nil,gate, "closed") end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -437,7 +433,6 @@ for i, g in ipairs(gate_list) do
|
|||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
def.mesecons.effector = {
|
def.mesecons.effector = {
|
||||||
rules = m_rules,
|
|
||||||
action_off = function(pos,node) homedecor.flip_gate(pos,node,nil,gate, "open") end
|
action_off = function(pos,node) homedecor.flip_gate(pos,node,nil,gate, "open") end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -83,7 +83,9 @@ homedecor.register("kitchen_chair_padded", {
|
|||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
||||||
unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
|
unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
|
||||||
|
unifieddyes.recolor_on_place(pos, placer, itemstack, pointed_thing)
|
||||||
end,
|
end,
|
||||||
|
after_dig_node = unifieddyes.after_dig_node,
|
||||||
on_rotate = unifieddyes.fix_after_screwdriver_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 ?
|
||||||
@ -108,7 +110,9 @@ homedecor.register("armchair", {
|
|||||||
node_box = ac_cbox,
|
node_box = ac_cbox,
|
||||||
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
||||||
unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
|
unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
|
||||||
|
unifieddyes.recolor_on_place(pos, placer, itemstack, pointed_thing)
|
||||||
end,
|
end,
|
||||||
|
after_dig_node = unifieddyes.after_dig_node,
|
||||||
on_rotate = unifieddyes.fix_after_screwdriver_nsew,
|
on_rotate = unifieddyes.fix_after_screwdriver_nsew,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -70,17 +70,6 @@ minetest.register_craft({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
unifieddyes.register_color_craft({
|
|
||||||
output = "homedecor:armchair",
|
|
||||||
palette = "wallmounted",
|
|
||||||
type = "shapeless",
|
|
||||||
neutral_node = "homedecor:armchair",
|
|
||||||
recipe = {
|
|
||||||
"NEUTRAL_NODE",
|
|
||||||
"MAIN_DYE"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "homedecor:kitchen_chair_padded",
|
output = "homedecor:kitchen_chair_padded",
|
||||||
@ -90,17 +79,6 @@ minetest.register_craft({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
unifieddyes.register_color_craft({
|
|
||||||
output = "homedecor:kitchen_chair_padded",
|
|
||||||
palette = "wallmounted",
|
|
||||||
type = "shapeless",
|
|
||||||
neutral_node = "homedecor:kitchen_chair_padded",
|
|
||||||
recipe = {
|
|
||||||
"NEUTRAL_NODE",
|
|
||||||
"MAIN_DYE"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "fuel",
|
type = "fuel",
|
||||||
recipe = "homedecor:kitchen_chair_wood",
|
recipe = "homedecor:kitchen_chair_wood",
|
||||||
@ -128,17 +106,6 @@ minetest.register_craft({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
unifieddyes.register_color_craft({
|
|
||||||
output = "homedecor:standing_lamp_off",
|
|
||||||
palette = "extended",
|
|
||||||
type = "shapeless",
|
|
||||||
neutral_node = "homedecor:standing_lamp_off",
|
|
||||||
recipe = {
|
|
||||||
"NEUTRAL_NODE",
|
|
||||||
"MAIN_DYE"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "fuel",
|
type = "fuel",
|
||||||
recipe = "homedecor:table_lamp_off",
|
recipe = "homedecor:table_lamp_off",
|
||||||
@ -181,15 +148,13 @@ minetest.register_craft({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
unifieddyes.register_color_craft({
|
minetest.register_craft({
|
||||||
output = "homedecor:table_lamp_off",
|
output = "homedecor:standing_lamp_off",
|
||||||
palette = "extended",
|
|
||||||
type = "shapeless",
|
|
||||||
neutral_node = "homedecor:table_lamp_off",
|
|
||||||
recipe = {
|
recipe = {
|
||||||
"NEUTRAL_NODE",
|
{ "homedecor:table_lamp_off"},
|
||||||
"MAIN_DYE"
|
{ "group:stick"},
|
||||||
}
|
{ "group:stick"},
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
@ -211,21 +211,22 @@ function homedecor.bed_expansion(pos, placer, itemstack, pointed_thing, trybunks
|
|||||||
local rightnode = minetest.get_node(rightpos)
|
local rightnode = minetest.get_node(rightpos)
|
||||||
|
|
||||||
local inv = placer:get_inventory()
|
local inv = placer:get_inventory()
|
||||||
|
local lastdye = unifieddyes.last_used_dye[placer_name]
|
||||||
|
|
||||||
if leftnode.name == "homedecor:bed_regular" then
|
if leftnode.name == "homedecor:bed_regular" then
|
||||||
local newname = string.gsub(thisnode.name, "_regular", "_kingsize")
|
local newname = string.gsub(thisnode.name, "_regular", "_kingsize")
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(leftpos)
|
||||||
local leftmeta = minetest.get_meta(leftpos)
|
|
||||||
|
|
||||||
minetest.set_node(pos, {name = "air"})
|
minetest.set_node(pos, {name = "air"})
|
||||||
minetest.swap_node(leftpos, { name = newname, param2 = param2})
|
minetest.set_node(leftpos, { name = newname, param2 = param2})
|
||||||
|
meta:set_string("dye", lastdye)
|
||||||
|
inv:add_item("main", lastdye)
|
||||||
elseif rightnode.name == "homedecor:bed_regular" then
|
elseif rightnode.name == "homedecor:bed_regular" then
|
||||||
local newname = string.gsub(thisnode.name, "_regular", "_kingsize")
|
local newname = string.gsub(thisnode.name, "_regular", "_kingsize")
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(rightpos)
|
||||||
local rightmeta = minetest.get_meta(rightpos)
|
|
||||||
|
|
||||||
minetest.set_node(rightpos, {name = "air"})
|
minetest.set_node(rightpos, {name = "air"})
|
||||||
minetest.swap_node(pos, { name = newname, param2 = param2})
|
minetest.set_node(pos, { name = newname, param2 = param2})
|
||||||
|
meta:set_string("dye", lastdye)
|
||||||
|
inv:add_item("main", lastdye)
|
||||||
end
|
end
|
||||||
|
|
||||||
local toppos = {x=pos.x, y=pos.y+1.0, z=pos.z}
|
local toppos = {x=pos.x, y=pos.y+1.0, z=pos.z}
|
||||||
@ -234,7 +235,14 @@ function homedecor.bed_expansion(pos, placer, itemstack, pointed_thing, trybunks
|
|||||||
if trybunks and is_buildable_to(placer_name, toppos, topposfwd) then
|
if trybunks and is_buildable_to(placer_name, toppos, topposfwd) then
|
||||||
local newname = string.gsub(thisnode.name, "_regular", "_extended")
|
local newname = string.gsub(thisnode.name, "_regular", "_extended")
|
||||||
local newparam2 = param2 % 8
|
local newparam2 = param2 % 8
|
||||||
minetest.swap_node(toppos, { name = thisnode.name, param2 = param2})
|
if inv:contains_item("main", lastdye) then
|
||||||
|
minetest.set_node(toppos, { name = thisnode.name, param2 = param2})
|
||||||
|
if lastdye then inv:remove_item("main", lastdye.." 1") end
|
||||||
|
else
|
||||||
|
minetest.set_node(toppos, { name = thisnode.name, param2 = newparam2})
|
||||||
|
minetest.chat_send_player(placer_name, "Ran out of "..lastdye..", using neutral color.")
|
||||||
|
unifieddyes.last_used_dye[placer_name] = nil
|
||||||
|
end
|
||||||
minetest.swap_node(pos, { name = newname, param2 = param2})
|
minetest.swap_node(pos, { name = newname, param2 = param2})
|
||||||
itemstack:take_item()
|
itemstack:take_item()
|
||||||
end
|
end
|
||||||
@ -257,8 +265,6 @@ function homedecor.place_banister(itemstack, placer, pointed_thing)
|
|||||||
if not pos then return itemstack end
|
if not pos then return itemstack end
|
||||||
|
|
||||||
local fdir = minetest.dir_to_facedir(placer:get_look_dir())
|
local fdir = minetest.dir_to_facedir(placer:get_look_dir())
|
||||||
local meta = itemstack:get_meta()
|
|
||||||
local pindex = meta:get_int("palette_index")
|
|
||||||
|
|
||||||
local abovepos = { x=pos.x, y=pos.y+1, z=pos.z }
|
local abovepos = { x=pos.x, y=pos.y+1, z=pos.z }
|
||||||
local abovenode = minetest.get_node(abovepos)
|
local abovenode = minetest.get_node(abovepos)
|
||||||
@ -373,7 +379,7 @@ function homedecor.place_banister(itemstack, placer, pointed_thing)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.set_node(pos, {name = new_place_name, param2 = fdir+pindex})
|
minetest.set_node(pos, {name = new_place_name, param2 = fdir})
|
||||||
itemstack:take_item()
|
itemstack:take_item()
|
||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
|
@ -119,6 +119,6 @@ dofile(modpath.."/wardrobe.lua")
|
|||||||
|
|
||||||
dofile(modpath.."/crafts.lua")
|
dofile(modpath.."/crafts.lua")
|
||||||
|
|
||||||
if minetest.settings:get_bool("log_mod") then
|
if minetest.settings:get_bool("log_mods") then
|
||||||
minetest.log("action", "[HomeDecor] " .. S("Loaded!"))
|
minetest.log("action", "[HomeDecor] " .. S("Loaded!"))
|
||||||
end
|
end
|
||||||
|
@ -46,7 +46,10 @@ minetest.register_node("homedecor:glowlight_half", {
|
|||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
||||||
unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing)
|
unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing)
|
||||||
|
unifieddyes.recolor_on_place(pos, placer, itemstack, pointed_thing)
|
||||||
end,
|
end,
|
||||||
|
after_dig_node = unifieddyes.after_dig_node,
|
||||||
|
drop = "homedecor:glowlight_half"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("homedecor:glowlight_quarter", {
|
minetest.register_node("homedecor:glowlight_quarter", {
|
||||||
@ -84,7 +87,10 @@ minetest.register_node("homedecor:glowlight_quarter", {
|
|||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
||||||
unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing)
|
unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing)
|
||||||
|
unifieddyes.recolor_on_place(pos, placer, itemstack, pointed_thing)
|
||||||
end,
|
end,
|
||||||
|
after_dig_node = unifieddyes.after_dig_node,
|
||||||
|
drop = "homedecor:glowlight_quarter"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("homedecor:glowlight_small_cube", {
|
minetest.register_node("homedecor:glowlight_small_cube", {
|
||||||
@ -122,7 +128,10 @@ minetest.register_node("homedecor:glowlight_small_cube", {
|
|||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
||||||
unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing)
|
unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing)
|
||||||
|
unifieddyes.recolor_on_place(pos, placer, itemstack, pointed_thing)
|
||||||
end,
|
end,
|
||||||
|
after_dig_node = unifieddyes.after_dig_node,
|
||||||
|
drop = "homedecor:glowlight_small_cube"
|
||||||
})
|
})
|
||||||
|
|
||||||
homedecor.register("plasma_lamp", {
|
homedecor.register("plasma_lamp", {
|
||||||
@ -443,6 +452,7 @@ local function reg_lamp(suffix, nxt, light, brightness)
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "color",
|
paramtype2 = "color",
|
||||||
palette = "unifieddyes_palette_extended.png",
|
palette = "unifieddyes_palette_extended.png",
|
||||||
|
place_param2 = 240,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
light_source = light,
|
light_source = light,
|
||||||
selection_box = tlamp_cbox,
|
selection_box = tlamp_cbox,
|
||||||
@ -450,17 +460,14 @@ local function reg_lamp(suffix, nxt, light, brightness)
|
|||||||
groups = {cracky=2,oddly_breakable_by_hand=1, ud_param2_colorable = 1,
|
groups = {cracky=2,oddly_breakable_by_hand=1, ud_param2_colorable = 1,
|
||||||
not_in_creative_inventory=((light ~= nil) and 1) or nil,
|
not_in_creative_inventory=((light ~= nil) and 1) or nil,
|
||||||
},
|
},
|
||||||
|
drop = "homedecor:table_lamp_off",
|
||||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||||
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,
|
on_construct = unifieddyes.on_construct,
|
||||||
drop = {
|
after_place_node = unifieddyes.recolor_on_place,
|
||||||
items = {
|
after_dig_node = unifieddyes.after_dig_node
|
||||||
{items = {"homedecor:table_lamp_off"}, inherit_color = true },
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
homedecor.register("standing_lamp_"..suffix, {
|
homedecor.register("standing_lamp_"..suffix, {
|
||||||
@ -476,6 +483,7 @@ local function reg_lamp(suffix, nxt, light, brightness)
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "color",
|
paramtype2 = "color",
|
||||||
palette = "unifieddyes_palette_extended.png",
|
palette = "unifieddyes_palette_extended.png",
|
||||||
|
place_param2 = 240,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
light_source = light,
|
light_source = light,
|
||||||
groups = {cracky=2,oddly_breakable_by_hand=1, ud_param2_colorable = 1,
|
groups = {cracky=2,oddly_breakable_by_hand=1, ud_param2_colorable = 1,
|
||||||
@ -484,17 +492,15 @@ local function reg_lamp(suffix, nxt, light, brightness)
|
|||||||
selection_box = slamp_cbox,
|
selection_box = slamp_cbox,
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
on_rotate = screwdriver.rotate_simple,
|
on_rotate = screwdriver.rotate_simple,
|
||||||
|
drop = "homedecor:standing_lamp_off",
|
||||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||||
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,
|
on_construct = unifieddyes.on_construct,
|
||||||
--expand = { top="air" },
|
after_place_node = unifieddyes.recolor_on_place,
|
||||||
drop = {
|
after_dig_node = unifieddyes.after_dig_node,
|
||||||
items = {
|
expand = { top="air" },
|
||||||
{items = {"homedecor:standing_lamp_off"}, inherit_color = true },
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
-- for old maps that had the original 3dforniture mod
|
-- for old maps that had the original 3dforniture mod
|
||||||
@ -531,9 +537,12 @@ homedecor.register("desk_lamp", {
|
|||||||
node_box = dlamp_cbox,
|
node_box = dlamp_cbox,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
groups = {snappy=3, ud_param2_colorable = 1},
|
groups = {snappy=3, ud_param2_colorable = 1},
|
||||||
|
drop = "homedecor:desk_lamp",
|
||||||
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
||||||
unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
|
unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
|
||||||
|
unifieddyes.recolor_on_place(pos, placer, itemstack, pointed_thing)
|
||||||
end,
|
end,
|
||||||
|
after_dig_node = unifieddyes.after_dig_node,
|
||||||
on_rotate = unifieddyes.fix_after_screwdriver_nsew
|
on_rotate = unifieddyes.fix_after_screwdriver_nsew
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -735,3 +744,28 @@ minetest.register_lbm({
|
|||||||
meta:set_string("dye", "unifieddyes:"..color)
|
meta:set_string("dye", "unifieddyes:"..color)
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_lbm({
|
||||||
|
name = "homedecor:recolor_lighting",
|
||||||
|
label = "Convert some kinds of lights to use UD extended palette",
|
||||||
|
run_at_every_load = false,
|
||||||
|
nodenames = {
|
||||||
|
"homedecor:table_lamp_off",
|
||||||
|
"homedecor:table_lamp_low",
|
||||||
|
"homedecor:table_lamp_med",
|
||||||
|
"homedecor:table_lamp_hi",
|
||||||
|
"homedecor:table_lamp_max",
|
||||||
|
"homedecor:standing_lamp_off",
|
||||||
|
"homedecor:standing_lamp_low",
|
||||||
|
"homedecor:standing_lamp_med",
|
||||||
|
"homedecor:standing_lamp_hi",
|
||||||
|
"homedecor:standing_lamp_max",
|
||||||
|
},
|
||||||
|
action = function(pos, node)
|
||||||
|
local meta = minetest.get_meta(pos)
|
||||||
|
if meta:get_string("palette") ~= "ext" then
|
||||||
|
minetest.swap_node(pos, { name = node.name, param2 = unifieddyes.convert_classic_palette[node.param2] })
|
||||||
|
meta:set_string("palette", "ext")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
})
|
||||||
|
@ -483,19 +483,23 @@ for _, side in ipairs({"diagonal_left", "diagonal_right", "horizontal"}) do
|
|||||||
local name, matdesc, tile1, tile2 = unpack(mat)
|
local name, matdesc, tile1, tile2 = unpack(mat)
|
||||||
local nodename = "banister_"..name.."_"..side
|
local nodename = "banister_"..name.."_"..side
|
||||||
|
|
||||||
|
local groups = { snappy = 3, not_in_creative_inventory = 1 }
|
||||||
local cbox = {
|
local cbox = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = { -9/16, -3/16, 5/16, 9/16, 24/16, 8/16 }
|
fixed = { -9/16, -3/16, 5/16, 9/16, 24/16, 8/16 }
|
||||||
}
|
}
|
||||||
|
|
||||||
if side == "horizontal" then
|
if side == "horizontal" then
|
||||||
|
groups = { snappy = 3 }
|
||||||
cbox = {
|
cbox = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = { -8/16, -8/16, 5/16, 8/16, 8/16, 8/16 }
|
fixed = { -8/16, -8/16, 5/16, 8/16, 8/16, 8/16 }
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
minetest.register_alias(string.gsub("homedecor:"..nodename, "diagonal_", ""), "homedecor:"..nodename)
|
||||||
end
|
end
|
||||||
|
|
||||||
local def = {
|
homedecor.register(nodename, {
|
||||||
description = S("Banister for Stairs (@1, @2)", matdesc, sidedesc),
|
description = S("Banister for Stairs (@1, @2)", matdesc, sidedesc),
|
||||||
mesh = "homedecor_banister_"..side..".obj",
|
mesh = "homedecor_banister_"..side..".obj",
|
||||||
tiles = {
|
tiles = {
|
||||||
@ -503,36 +507,12 @@ for _, side in ipairs({"diagonal_left", "diagonal_right", "horizontal"}) do
|
|||||||
tile2,
|
tile2,
|
||||||
},
|
},
|
||||||
inventory_image = "homedecor_banister_"..name.."_inv.png",
|
inventory_image = "homedecor_banister_"..name.."_inv.png",
|
||||||
|
groups = groups,
|
||||||
selection_box = cbox,
|
selection_box = cbox,
|
||||||
collision_box = cbox,
|
collision_box = cbox,
|
||||||
groups = { snappy = 3},
|
|
||||||
on_place = homedecor.place_banister,
|
on_place = homedecor.place_banister,
|
||||||
drop = "homedecor:banister_"..name.."_horizontal",
|
drop = "homedecor:banister_"..name.."_horizontal",
|
||||||
}
|
})
|
||||||
|
|
||||||
if side ~= "horizontal" then
|
|
||||||
def.groups.not_in_creative_inventory = 1
|
|
||||||
end
|
|
||||||
|
|
||||||
if name == "wood" then
|
|
||||||
def.airbrush_replacement_node = "homedecor:banister_wood_"..side.."_grey"
|
|
||||||
def.groups.ud_param2_colorable = 1
|
|
||||||
def.paramtype2 = "colorfacedir"
|
|
||||||
end
|
|
||||||
homedecor.register(nodename, def)
|
|
||||||
|
|
||||||
if name == "wood" then
|
|
||||||
local nn = "homedecor:"..nodename
|
|
||||||
local def2 = table.copy(minetest.registered_items[nn])
|
|
||||||
def2.tiles = {
|
|
||||||
homedecor.white_wood,
|
|
||||||
homedecor.white_wood
|
|
||||||
}
|
|
||||||
def2.inventory_image = "homedecor_banister_wood_colored_inv.png"
|
|
||||||
def2.groups.not_in_creative_inventory = 1
|
|
||||||
|
|
||||||
unifieddyes.generate_split_palette_nodes(nn, def2, "homedecor:banister_"..name.."_horizontal")
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -41,7 +41,9 @@ homedecor.register("shutter", {
|
|||||||
node_box = shutter_cbox,
|
node_box = shutter_cbox,
|
||||||
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
||||||
unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing)
|
unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing)
|
||||||
|
unifieddyes.recolor_on_place(pos, placer, itemstack, pointed_thing)
|
||||||
end,
|
end,
|
||||||
|
after_dig_node = unifieddyes.after_dig_node
|
||||||
})
|
})
|
||||||
|
|
||||||
homedecor.register("shutter_colored", {
|
homedecor.register("shutter_colored", {
|
||||||
@ -58,7 +60,10 @@ homedecor.register("shutter_colored", {
|
|||||||
node_box = shutter_cbox,
|
node_box = shutter_cbox,
|
||||||
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
||||||
unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing)
|
unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing)
|
||||||
|
unifieddyes.recolor_on_place(pos, placer, itemstack, pointed_thing)
|
||||||
end,
|
end,
|
||||||
|
after_dig_node = unifieddyes.after_dig_node,
|
||||||
|
drop = "homedecor:shutter"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_alias("homedecor:shutter_purple", "homedecor:shutter_violet")
|
minetest.register_alias("homedecor:shutter_purple", "homedecor:shutter_violet")
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 2.4 KiB |
@ -112,8 +112,10 @@ minetest.register_node("homedecor:curtain_closed", {
|
|||||||
paramtype2 = "colorwallmounted",
|
paramtype2 = "colorwallmounted",
|
||||||
palette = "unifieddyes_palette_colorwallmounted.png",
|
palette = "unifieddyes_palette_colorwallmounted.png",
|
||||||
selection_box = { type = "wallmounted" },
|
selection_box = { type = "wallmounted" },
|
||||||
|
after_dig_node = unifieddyes.after_dig_node,
|
||||||
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
||||||
unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing)
|
unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing)
|
||||||
|
unifieddyes.recolor_on_place(pos, placer, itemstack, pointed_thing)
|
||||||
end,
|
end,
|
||||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||||
local topnode = minetest.get_node({x=pos.x, y=pos.y+1.0, z=pos.z})
|
local topnode = minetest.get_node({x=pos.x, y=pos.y+1.0, z=pos.z})
|
||||||
@ -139,8 +141,10 @@ minetest.register_node("homedecor:curtain_open", {
|
|||||||
paramtype2 = "colorwallmounted",
|
paramtype2 = "colorwallmounted",
|
||||||
palette = "unifieddyes_palette_colorwallmounted.png",
|
palette = "unifieddyes_palette_colorwallmounted.png",
|
||||||
selection_box = { type = "wallmounted" },
|
selection_box = { type = "wallmounted" },
|
||||||
|
after_dig_node = unifieddyes.after_dig_node,
|
||||||
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
||||||
unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing)
|
unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing)
|
||||||
|
unifieddyes.recolor_on_place(pos, placer, itemstack, pointed_thing)
|
||||||
end,
|
end,
|
||||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||||
local topnode = minetest.get_node({x=pos.x, y=pos.y+1.0, z=pos.z})
|
local topnode = minetest.get_node({x=pos.x, y=pos.y+1.0, z=pos.z})
|
||||||
|
@ -89,3 +89,5 @@ if minetest.get_modpath("moreblocks") then
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
minetest.log("action", "[homedecor_3d_extra] loaded.")
|
||||||
|
@ -5,3 +5,5 @@ homedecor_i18n = { }
|
|||||||
|
|
||||||
local MP = minetest.get_modpath(minetest.get_current_modname())
|
local MP = minetest.get_modpath(minetest.get_current_modname())
|
||||||
homedecor_i18n.gettext, homedecor_i18n.ngettext = dofile(MP.."/intllib.lua")
|
homedecor_i18n.gettext, homedecor_i18n.ngettext = dofile(MP.."/intllib.lua")
|
||||||
|
|
||||||
|
minetest.log("action", "[homedecor_i18n] loaded.")
|
||||||
|
@ -126,3 +126,5 @@ function inbox.get_inbox_insert_formspec(pos)
|
|||||||
"listring[]"
|
"listring[]"
|
||||||
return formspec
|
return formspec
|
||||||
end
|
end
|
||||||
|
|
||||||
|
minetest.log("action", "[inbox] loaded.")
|
||||||
|
@ -299,4 +299,6 @@ minetest.register_craft({
|
|||||||
if minetest.get_modpath("mesecons_mvps") then
|
if minetest.get_modpath("mesecons_mvps") then
|
||||||
mesecon.register_mvps_stopper("itemframes:frame")
|
mesecon.register_mvps_stopper("itemframes:frame")
|
||||||
mesecon.register_mvps_stopper("itemframes:pedestal")
|
mesecon.register_mvps_stopper("itemframes:pedestal")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
minetest.log("action", "[itemframes] loaded.")
|
||||||
|
@ -28,6 +28,7 @@ minetest.register_node("lavalamp:lavalamp", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "color",
|
paramtype2 = "color",
|
||||||
palette = "unifieddyes_palette_extended.png",
|
palette = "unifieddyes_palette_extended.png",
|
||||||
|
place_param2 = 240,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
light_source = 14,
|
light_source = 14,
|
||||||
@ -38,6 +39,8 @@ 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,
|
on_construct = unifieddyes.on_construct,
|
||||||
|
after_place_node = unifieddyes.recolor_on_place,
|
||||||
|
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"
|
||||||
minetest.swap_node(pos, node)
|
minetest.swap_node(pos, node)
|
||||||
@ -56,6 +59,7 @@ minetest.register_node("lavalamp:lavalamp_off", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "color",
|
paramtype2 = "color",
|
||||||
palette = "unifieddyes_palette_extended.png",
|
palette = "unifieddyes_palette_extended.png",
|
||||||
|
place_param2 = 240,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
selection_box = {
|
selection_box = {
|
||||||
@ -66,16 +70,13 @@ minetest.register_node("lavalamp:lavalamp_off", {
|
|||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
drop = "lavalamp:lavalamp",
|
drop = "lavalamp:lavalamp",
|
||||||
on_construct = unifieddyes.on_construct,
|
on_construct = unifieddyes.on_construct,
|
||||||
|
after_place_node = unifieddyes.recolor_on_place,
|
||||||
|
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"
|
||||||
minetest.swap_node(pos, node)
|
minetest.swap_node(pos, node)
|
||||||
return itemstack
|
return itemstack
|
||||||
end,
|
end,
|
||||||
drop = {
|
|
||||||
items = {
|
|
||||||
{items = {"lavalamp:lavalamp"}, inherit_color = true },
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
@ -87,17 +88,6 @@ minetest.register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
unifieddyes.register_color_craft({
|
|
||||||
output = "lavalamp:lavalamp",
|
|
||||||
palette = "extended",
|
|
||||||
type = "shapeless",
|
|
||||||
neutral_node = "lavalamp:lavalamp",
|
|
||||||
recipe = {
|
|
||||||
"NEUTRAL_NODE",
|
|
||||||
"MAIN_DYE"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
-- convert to param2 coloring
|
-- convert to param2 coloring
|
||||||
|
|
||||||
local colors = {
|
local colors = {
|
||||||
@ -146,3 +136,22 @@ minetest.register_lbm({
|
|||||||
|
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_lbm({
|
||||||
|
name = "lavalamp:recolor",
|
||||||
|
label = "Convert 89-color lamps to use UD extended palette",
|
||||||
|
run_at_every_load = false,
|
||||||
|
nodenames = {
|
||||||
|
"lavalamp:lavalamp",
|
||||||
|
"lavalamp:lavalamp_off"
|
||||||
|
},
|
||||||
|
action = function(pos, node)
|
||||||
|
local meta = minetest.get_meta(pos)
|
||||||
|
if meta:get_string("palette") ~= "ext" then
|
||||||
|
minetest.swap_node(pos, { name = node.name, param2 = unifieddyes.convert_classic_palette[node.param2] })
|
||||||
|
meta:set_string("palette", "ext")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.log("action", "[lavalamp] loaded.")
|
||||||
|
@ -25,7 +25,9 @@ minetest.register_node("lrfurn:armchair", {
|
|||||||
node_box = armchair_cbox,
|
node_box = armchair_cbox,
|
||||||
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
||||||
unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
|
unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
|
||||||
|
unifieddyes.recolor_on_place(pos, placer, itemstack, pointed_thing)
|
||||||
end,
|
end,
|
||||||
|
after_dig_node = unifieddyes.after_dig_node,
|
||||||
on_rotate = unifieddyes.fix_after_screwdriver_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)
|
||||||
if not clicker:is_player() then
|
if not clicker:is_player() then
|
||||||
@ -56,17 +58,6 @@ minetest.register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
unifieddyes.register_color_craft({
|
|
||||||
output = "lrfurn:armchair",
|
|
||||||
palette = "wallmounted",
|
|
||||||
type = "shapeless",
|
|
||||||
neutral_node = "lrfurn:armchair",
|
|
||||||
recipe = {
|
|
||||||
"NEUTRAL_NODE",
|
|
||||||
"MAIN_DYE"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
-- convert old static nodes to param2 color
|
-- convert old static nodes to param2 color
|
||||||
|
|
||||||
lrfurn.old_static_armchairs = {}
|
lrfurn.old_static_armchairs = {}
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
local S = homedecor_i18n.gettext
|
|
||||||
|
|
||||||
lrfurn = {}
|
lrfurn = {}
|
||||||
screwdriver = screwdriver or {}
|
screwdriver = screwdriver or {}
|
||||||
@ -61,11 +60,10 @@ end
|
|||||||
|
|
||||||
function lrfurn.fix_sofa_rotation_nsew(pos, placer, itemstack, pointed_thing)
|
function lrfurn.fix_sofa_rotation_nsew(pos, placer, itemstack, pointed_thing)
|
||||||
local node = minetest.get_node(pos)
|
local node = minetest.get_node(pos)
|
||||||
local colorbits = node.param2 - (node.param2 % 8)
|
|
||||||
local yaw = placer:get_look_yaw()
|
local yaw = placer:get_look_yaw()
|
||||||
local dir = minetest.yaw_to_dir(yaw-1.5)
|
local dir = minetest.yaw_to_dir(yaw-1.5)
|
||||||
local fdir = minetest.dir_to_wallmounted(dir)
|
local fdir = minetest.dir_to_wallmounted(dir)
|
||||||
minetest.swap_node(pos, { name = node.name, param2 = fdir+colorbits })
|
minetest.swap_node(pos, { name = node.name, param2 = fdir })
|
||||||
end
|
end
|
||||||
|
|
||||||
dofile(minetest.get_modpath("lrfurn").."/longsofas.lua")
|
dofile(minetest.get_modpath("lrfurn").."/longsofas.lua")
|
||||||
@ -73,3 +71,5 @@ dofile(minetest.get_modpath("lrfurn").."/sofas.lua")
|
|||||||
dofile(minetest.get_modpath("lrfurn").."/armchairs.lua")
|
dofile(minetest.get_modpath("lrfurn").."/armchairs.lua")
|
||||||
dofile(minetest.get_modpath("lrfurn").."/coffeetable.lua")
|
dofile(minetest.get_modpath("lrfurn").."/coffeetable.lua")
|
||||||
dofile(minetest.get_modpath("lrfurn").."/endtable.lua")
|
dofile(minetest.get_modpath("lrfurn").."/endtable.lua")
|
||||||
|
|
||||||
|
minetest.log("action", "[lrfurn] loaded.")
|
||||||
|
@ -26,6 +26,7 @@ minetest.register_node("lrfurn:longsofa", {
|
|||||||
on_rotate = screwdriver.disallow,
|
on_rotate = screwdriver.disallow,
|
||||||
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
||||||
lrfurn.fix_sofa_rotation_nsew(pos, placer, itemstack, pointed_thing)
|
lrfurn.fix_sofa_rotation_nsew(pos, placer, itemstack, pointed_thing)
|
||||||
|
unifieddyes.recolor_on_place(pos, placer, itemstack, pointed_thing)
|
||||||
local playername = placer:get_player_name()
|
local playername = placer:get_player_name()
|
||||||
if minetest.is_protected(pos, placer:get_player_name()) then return true end
|
if minetest.is_protected(pos, placer:get_player_name()) then return true end
|
||||||
|
|
||||||
@ -41,6 +42,7 @@ minetest.register_node("lrfurn:longsofa", {
|
|||||||
end
|
end
|
||||||
return itemstack
|
return itemstack
|
||||||
end,
|
end,
|
||||||
|
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)
|
||||||
if not clicker:is_player() then
|
if not clicker:is_player() then
|
||||||
return itemstack
|
return itemstack
|
||||||
@ -70,17 +72,6 @@ minetest.register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
unifieddyes.register_color_craft({
|
|
||||||
output = "lrfurn:longsofa",
|
|
||||||
palette = "wallmounted",
|
|
||||||
type = "shapeless",
|
|
||||||
neutral_node = "lrfurn:longsofa",
|
|
||||||
recipe = {
|
|
||||||
"NEUTRAL_NODE",
|
|
||||||
"MAIN_DYE"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
-- convert old static nodes to param2 colorization
|
-- convert old static nodes to param2 colorization
|
||||||
|
|
||||||
lrfurn.old_static_longsofas = {}
|
lrfurn.old_static_longsofas = {}
|
||||||
|
@ -26,6 +26,7 @@ minetest.register_node("lrfurn:sofa", {
|
|||||||
on_rotate = screwdriver.disallow,
|
on_rotate = screwdriver.disallow,
|
||||||
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
||||||
lrfurn.fix_sofa_rotation_nsew(pos, placer, itemstack, pointed_thing)
|
lrfurn.fix_sofa_rotation_nsew(pos, placer, itemstack, pointed_thing)
|
||||||
|
unifieddyes.recolor_on_place(pos, placer, itemstack, pointed_thing)
|
||||||
local playername = placer:get_player_name()
|
local playername = placer:get_player_name()
|
||||||
if minetest.is_protected(pos, placer:get_player_name()) then return true end
|
if minetest.is_protected(pos, placer:get_player_name()) then return true end
|
||||||
|
|
||||||
@ -41,6 +42,7 @@ minetest.register_node("lrfurn:sofa", {
|
|||||||
end
|
end
|
||||||
return itemstack
|
return itemstack
|
||||||
end,
|
end,
|
||||||
|
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)
|
||||||
if not clicker:is_player() then
|
if not clicker:is_player() then
|
||||||
return itemstack
|
return itemstack
|
||||||
@ -70,17 +72,6 @@ minetest.register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
unifieddyes.register_color_craft({
|
|
||||||
output = "lrfurn:sofa",
|
|
||||||
palette = "wallmounted",
|
|
||||||
type = "shapeless",
|
|
||||||
neutral_node = "lrfurn:sofa",
|
|
||||||
recipe = {
|
|
||||||
"NEUTRAL_NODE",
|
|
||||||
"MAIN_DYE"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
-- convert old static nodes to param2 color
|
-- convert old static nodes to param2 color
|
||||||
|
|
||||||
lrfurn.old_static_sofas = {}
|
lrfurn.old_static_sofas = {}
|
||||||
|
@ -186,3 +186,5 @@ minetest.register_craft({
|
|||||||
{'group:stick', 'default:coal_lump', 'group:stick'},
|
{'group:stick', 'default:coal_lump', 'group:stick'},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.log("action", "[plasmascreen] loaded.")
|
||||||
|
Reference in New Issue
Block a user