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:
Vanessa Ezekowitz 2014-08-01 20:45:41 -04:00
parent 07f9f31e43
commit ef0ebac4db
5 changed files with 35 additions and 2 deletions

View File

@ -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"}
},
})

View File

@ -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()
}) })

Binary file not shown.

After

Width:  |  Height:  |  Size: 366 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB