added custom overrides, motion-sensors and more...
This commit is contained in:
parent
53466eed17
commit
ff423fc029
11 changed files with 348 additions and 26 deletions
|
|
@ -7,7 +7,7 @@ minetest.register_node("smart_light:switch", {
|
|||
"smart_light_case.png", "smart_light_case.png",
|
||||
"smart_light_case.png", "smart_light_case.png^smart_light_button_off.png",
|
||||
},
|
||||
drawtype = "nodebox", paramtype = "light", paramtype2 = "facedir",
|
||||
drawtype = "nodebox", paramtype = "light", paramtype2 = "facedir", light_source = 2,
|
||||
sunlight_propagates = true, groups = {cracky=2, crumbly=2},
|
||||
node_box = switch_box,
|
||||
|
||||
|
|
@ -61,7 +61,7 @@ minetest.register_node("smart_light:switch_active", {
|
|||
"smart_light_case.png", "smart_light_case.png",
|
||||
"smart_light_case.png", "smart_light_case.png^smart_light_button_on.png",
|
||||
},
|
||||
drawtype = "nodebox", paramtype = "light", paramtype2 = "facedir",
|
||||
drawtype = "nodebox", paramtype = "light", paramtype2 = "facedir", light_source = 5,
|
||||
sunlight_propagates = true, groups = {cracky=2, crumbly=2, not_in_creative_inventory=1},
|
||||
node_box = switch_box, drop = "smart_light:switch",
|
||||
on_punch = minetest.registered_nodes["smart_light:switch"].on_punch,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue