mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2025-02-04 11:50:16 +01:00
add hd electrical
This commit is contained in:
parent
828cd4d62a
commit
2054a27e00
@ -1,20 +0,0 @@
|
||||
unused_args = false
|
||||
allow_defined_top = true
|
||||
max_comment_line_length = 999
|
||||
|
||||
read_globals = {
|
||||
"DIR_DELIM",
|
||||
"minetest", "core",
|
||||
"unpack",
|
||||
"dump",
|
||||
table = { fields = { "copy", "getn" } },
|
||||
"vector", "nodeupdate",
|
||||
"VoxelManip", "VoxelArea",
|
||||
"PseudoRandom", "ItemStack",
|
||||
"homedecor",
|
||||
"mesecon",
|
||||
}
|
||||
|
||||
globals = {
|
||||
}
|
||||
|
@ -53,7 +53,16 @@ homedecor.register("power_outlet", {
|
||||
}
|
||||
},
|
||||
groups = {cracky=3,dig_immediate=2},
|
||||
walkable = false
|
||||
walkable = false,
|
||||
crafts = {
|
||||
{
|
||||
recipe = {
|
||||
{"basic_materials:plastic_sheet", "basic_materials:copper_strip"},
|
||||
{"basic_materials:plastic_sheet", ""},
|
||||
{"basic_materials:plastic_sheet", "basic_materials:copper_strip"}
|
||||
},
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
for _, onoff in ipairs ({"on", "off"}) do
|
||||
@ -120,7 +129,7 @@ homedecor.register("doorbell", {
|
||||
tiles = { "homedecor_doorbell.png" },
|
||||
inventory_image = "homedecor_doorbell_inv.png",
|
||||
description = S("Doorbell"),
|
||||
groups = {snappy=3},
|
||||
groups = {snappy=3, dig_tree = 3},
|
||||
walkable = false,
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
@ -135,20 +144,18 @@ homedecor.register("doorbell", {
|
||||
gain = 1.0,
|
||||
max_hear_distance = 15
|
||||
})
|
||||
end
|
||||
end,
|
||||
crafts = {
|
||||
{
|
||||
recipe = {
|
||||
{ "homedecor:light_switch_off", "basic_materials:energy_crystal_simple", "homedecor:speaker_driver" }
|
||||
},
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
-- crafting
|
||||
|
||||
minetest.register_craft( {
|
||||
output = "homedecor:power_outlet",
|
||||
recipe = {
|
||||
{"basic_materials:plastic_sheet", "basic_materials:copper_strip"},
|
||||
{"basic_materials:plastic_sheet", ""},
|
||||
{"basic_materials:plastic_sheet", "basic_materials:copper_strip"}
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
output = "homedecor:light_switch_off",
|
||||
recipe = {
|
||||
@ -158,13 +165,6 @@ minetest.register_craft( {
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
output = "homedecor:doorbell",
|
||||
recipe = {
|
||||
{ "homedecor:light_switch_off", "basic_materials:energy_crystal_simple", "homedecor:speaker_driver" }
|
||||
},
|
||||
})
|
||||
|
||||
-- aliases
|
||||
|
||||
minetest.register_alias("homedecor:light_switch", "homedecor:light_switch_on")
|
||||
|
@ -1,4 +1,4 @@
|
||||
name = homedecor_electrical
|
||||
description = Homedecor mod: electrical
|
||||
depends = homedecor_common, default, basic_materials
|
||||
depends = homedecor_common
|
||||
optional_depends = mesecons, mesecons_receiver
|
||||
|
Loading…
Reference in New Issue
Block a user