forked from mtcontrib/homedecor_modpack
Add recipes for power outlet and light switch
also fixed the group settings to make them easier to dig, and gave them nice, clear inventory images.
This commit is contained in:
parent
07f9f31e43
commit
ef0ebac4db
@ -98,6 +98,11 @@ minetest.register_craftitem("homedecor:fan_blades", {
|
|||||||
inventory_image = "homedecor_fan_blades.png"
|
inventory_image = "homedecor_fan_blades.png"
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craftitem("homedecor:copper_strip", {
|
||||||
|
description = S("Copper Strip"),
|
||||||
|
inventory_image = "homedecor_copper_strip.png"
|
||||||
|
})
|
||||||
|
|
||||||
-- alternate crafting if mesecons is/isn't installed
|
-- alternate crafting if mesecons is/isn't installed
|
||||||
|
|
||||||
if not minetest.get_modpath("mesecons") then
|
if not minetest.get_modpath("mesecons") then
|
||||||
@ -140,6 +145,13 @@ minetest.register_alias("homedecor:brass_ingot", "technic:brass_ingot")
|
|||||||
|
|
||||||
-- the actual crafts
|
-- the actual crafts
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
output = "homedecor:copper_strip 6",
|
||||||
|
recipe = {
|
||||||
|
{ "default:copper_ingot", "default:copper_ingot" }
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "homedecor:fan_blades 2",
|
output = "homedecor:fan_blades 2",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -2199,3 +2211,22 @@ for i in ipairs(color_pairings) do
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- misc electrical
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
output = "homedecor:power_outlet",
|
||||||
|
recipe = {
|
||||||
|
{"homedecor:plastic_sheeting", "homedecor:copper_strip"},
|
||||||
|
{"homedecor:plastic_sheeting", ""},
|
||||||
|
{"homedecor:plastic_sheeting", "homedecor:copper_strip"}
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
output = "homedecor:light_switch",
|
||||||
|
recipe = {
|
||||||
|
{"", "homedecor:plastic_sheeting", "homedecor:copper_strip"},
|
||||||
|
{"homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:copper_strip"},
|
||||||
|
{"", "homedecor:plastic_sheeting", "homedecor:copper_strip"}
|
||||||
|
},
|
||||||
|
})
|
||||||
|
@ -11,13 +11,14 @@ minetest.register_node("homedecor:power_outlet", {
|
|||||||
"homedecor_outlet_back.png",
|
"homedecor_outlet_back.png",
|
||||||
"homedecor_outlet_front.png"
|
"homedecor_outlet_front.png"
|
||||||
},
|
},
|
||||||
|
inventory_image = "homedecor_outlet_inv.png",
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
{-0.125, -0.5, 0.4375, 0.125, -0.1875, 0.5},
|
{-0.125, -0.5, 0.4375, 0.125, -0.1875, 0.5},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
groups = {cracky=3},
|
groups = {cracky=3,dig_immediate=2},
|
||||||
sounds = default.node_sound_stone_defaults()
|
sounds = default.node_sound_stone_defaults()
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -34,6 +35,7 @@ minetest.register_node("homedecor:light_switch", {
|
|||||||
"homedecor_light_switch_back.png",
|
"homedecor_light_switch_back.png",
|
||||||
"homedecor_light_switch_front.png"
|
"homedecor_light_switch_front.png"
|
||||||
},
|
},
|
||||||
|
inventory_image = "homedecor_light_switch_inv.png",
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
@ -42,7 +44,7 @@ minetest.register_node("homedecor:light_switch", {
|
|||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
groups = {cracky=3},
|
groups = {cracky=3,dig_immediate=2},
|
||||||
sounds = default.node_sound_stone_defaults()
|
sounds = default.node_sound_stone_defaults()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
BIN
homedecor/textures/homedecor_copper_strip.png
Normal file
BIN
homedecor/textures/homedecor_copper_strip.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 366 B |
BIN
homedecor/textures/homedecor_light_switch_inv.png
Normal file
BIN
homedecor/textures/homedecor_light_switch_inv.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.3 KiB |
BIN
homedecor/textures/homedecor_outlet_inv.png
Normal file
BIN
homedecor/textures/homedecor_outlet_inv.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.3 KiB |
Loading…
Reference in New Issue
Block a user