mirror of
https://github.com/D00Med/scifi_nodes.git
synced 2024-12-22 16:10:18 +01:00
code tidy
This commit is contained in:
parent
3659705c7d
commit
0c19943f05
2
init.lua
2
init.lua
@ -14,7 +14,7 @@ dofile(MP.."/chest.lua")
|
|||||||
dofile(MP.."/plants.lua")
|
dofile(MP.."/plants.lua")
|
||||||
dofile(MP.."/nodes.lua")
|
dofile(MP.."/nodes.lua")
|
||||||
dofile(MP.."/doors.lua")
|
dofile(MP.."/doors.lua")
|
||||||
dofile(MP.."/switches.lua")
|
dofile(MP.."/switch.lua")
|
||||||
dofile(MP.."/nodeboxes.lua")
|
dofile(MP.."/nodeboxes.lua")
|
||||||
dofile(MP.."/palm_scanner.lua")
|
dofile(MP.."/palm_scanner.lua")
|
||||||
dofile(MP.."/digicode.lua")
|
dofile(MP.."/digicode.lua")
|
||||||
|
@ -33,7 +33,12 @@ minetest.register_node("scifi_nodes:switch_on", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "wallmounted",
|
paramtype2 = "wallmounted",
|
||||||
light_source = 5,
|
light_source = 5,
|
||||||
groups = {cracky=1, oddly_breakable_by_hand=1, not_in_creative_inventory=1, mesecon_needs_receiver = 1},
|
groups = {
|
||||||
|
cracky=1,
|
||||||
|
oddly_breakable_by_hand = 1,
|
||||||
|
not_in_creative_inventory = 1,
|
||||||
|
mesecon_needs_receiver = 1
|
||||||
|
},
|
||||||
mesecons = {
|
mesecons = {
|
||||||
receptor = {
|
receptor = {
|
||||||
state = (has_mesecons and mesecon.state.on)
|
state = (has_mesecons and mesecon.state.on)
|
||||||
@ -56,7 +61,11 @@ minetest.register_node("scifi_nodes:switch_off", {
|
|||||||
selection_box = {type = "wallmounted",},
|
selection_box = {type = "wallmounted",},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "wallmounted",
|
paramtype2 = "wallmounted",
|
||||||
groups = {cracky=1, oddly_breakable_by_hand=1, mesecon_needs_receiver = 1},
|
groups = {
|
||||||
|
cracky = 1,
|
||||||
|
oddly_breakable_by_hand = 1,
|
||||||
|
mesecon_needs_receiver = 1
|
||||||
|
},
|
||||||
mesecons = {
|
mesecons = {
|
||||||
receptor = {
|
receptor = {
|
||||||
state = (has_mesecons and mesecon.state.off)
|
state = (has_mesecons and mesecon.state.off)
|
Loading…
Reference in New Issue
Block a user