forked from nalc/homedecor_modpack
remove "on" switch from creative inv
add proper "receiver" group remove color from switch buttons
This commit is contained in:
parent
b85278fbaa
commit
bf7e47342f
@ -97,7 +97,7 @@ for _, onoff in ipairs ({"on", "off"}) do
|
|||||||
{ -0.1875, -0.5625, 0.375, 0.1875, -0.1250, 0.5 },
|
{ -0.1875, -0.5625, 0.375, 0.1875, -0.1250, 0.5 },
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
groups = {cracky=3,dig_immediate=2},
|
groups = {cracky=3, dig_immediate=2, mesecon_needs_receiver=1, not_in_creative_inventory = (onoff == "on") and 1 or nil},
|
||||||
walkable = false,
|
walkable = false,
|
||||||
drop = {
|
drop = {
|
||||||
items = {
|
items = {
|
||||||
@ -143,7 +143,7 @@ minetest.register_craft( {
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "homedecor:light_switch",
|
output = "homedecor:light_switch_off",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"", "basic_materials:plastic_sheet", "basic_materials:copper_strip"},
|
{"", "basic_materials:plastic_sheet", "basic_materials:copper_strip"},
|
||||||
{"basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:copper_strip"},
|
{"basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:copper_strip"},
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 284 B After Width: | Height: | Size: 277 B |
Binary file not shown.
Before Width: | Height: | Size: 360 B After Width: | Height: | Size: 278 B |
Loading…
Reference in New Issue
Block a user