Add files via upload
This commit is contained in:
27
.luacheckrc
Normal file
27
.luacheckrc
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
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",
|
||||||
|
"default",
|
||||||
|
"lwcomponents",
|
||||||
|
"intllib",
|
||||||
|
"mesecon",
|
||||||
|
"digiline",
|
||||||
|
"digilines",
|
||||||
|
"hopper",
|
||||||
|
"pipeworks",
|
||||||
|
"unifieddyes",
|
||||||
|
"digistuff",
|
||||||
|
}
|
||||||
|
|
||||||
|
globals = {
|
||||||
|
}
|
@@ -712,7 +712,7 @@ end
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
local breaker_groups = { cracky = 3 }
|
local breaker_groups = { cracky = 3, wires_connect = 1 }
|
||||||
if utils.pipeworks_supported then
|
if utils.pipeworks_supported then
|
||||||
breaker_groups.tubedevice = 1
|
breaker_groups.tubedevice = 1
|
||||||
breaker_groups.tubedevice_receiver = 1
|
breaker_groups.tubedevice_receiver = 1
|
||||||
@@ -720,7 +720,7 @@ end
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
local breaker_on_groups = { cracky = 3, not_in_creative_inventory = 1 }
|
local breaker_on_groups = { cracky = 3, not_in_creative_inventory = 1, wires_connect = 1 }
|
||||||
if utils.pipeworks_supported then
|
if utils.pipeworks_supported then
|
||||||
breaker_on_groups.tubedevice = 1
|
breaker_on_groups.tubedevice = 1
|
||||||
breaker_on_groups.tubedevice_receiver = 1
|
breaker_on_groups.tubedevice_receiver = 1
|
||||||
|
@@ -923,7 +923,7 @@ end
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
local cannon_groups = { cracky = 3 }
|
local cannon_groups = { cracky = 3, wires_connect = 1 }
|
||||||
if utils.pipeworks_supported then
|
if utils.pipeworks_supported then
|
||||||
cannon_groups.tubedevice = 1
|
cannon_groups.tubedevice = 1
|
||||||
cannon_groups.tubedevice_receiver = 1
|
cannon_groups.tubedevice_receiver = 1
|
||||||
|
@@ -167,3 +167,7 @@ v0.1.27
|
|||||||
* Bug fixes and code cleanup.
|
* Bug fixes and code cleanup.
|
||||||
* Fixed receptor state in detector.
|
* Fixed receptor state in detector.
|
||||||
* Improved receptor state in digiswitch.
|
* Improved receptor state in digiswitch.
|
||||||
|
|
||||||
|
|
||||||
|
v0.1.28
|
||||||
|
* Added support for lwwires. Wires will not connect to conduits.
|
||||||
|
@@ -1024,7 +1024,7 @@ end
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
local conduit_groups = { cracky = 3 }
|
local conduit_groups = { cracky = 3, wires_connect = 1 }
|
||||||
if utils.pipeworks_supported then
|
if utils.pipeworks_supported then
|
||||||
conduit_groups.tubedevice = 1
|
conduit_groups.tubedevice = 1
|
||||||
conduit_groups.tubedevice_receiver = 1
|
conduit_groups.tubedevice_receiver = 1
|
||||||
@@ -1034,6 +1034,7 @@ end
|
|||||||
|
|
||||||
minetest.register_node("lwcomponents:conduit", {
|
minetest.register_node("lwcomponents:conduit", {
|
||||||
description = S("Conduit"),
|
description = S("Conduit"),
|
||||||
|
short_description = S("Conduit"),
|
||||||
tiles = { "lwconduit.png" },
|
tiles = { "lwconduit.png" },
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
node_box = {
|
node_box = {
|
||||||
@@ -1104,6 +1105,7 @@ minetest.register_node("lwcomponents:conduit", {
|
|||||||
|
|
||||||
minetest.register_node("lwcomponents:conduit_locked", {
|
minetest.register_node("lwcomponents:conduit_locked", {
|
||||||
description = S("Conduit (locked)"),
|
description = S("Conduit (locked)"),
|
||||||
|
short_description = S("Conduit (locked)"),
|
||||||
tiles = { "lwconduit.png" },
|
tiles = { "lwconduit.png" },
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
node_box = {
|
node_box = {
|
||||||
|
@@ -6,3 +6,4 @@ intllib?
|
|||||||
hopper?
|
hopper?
|
||||||
digistuff?
|
digistuff?
|
||||||
pipeworks?
|
pipeworks?
|
||||||
|
lwwires?
|
||||||
|
@@ -630,7 +630,7 @@ end
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
local deployer_groups = { cracky = 3 }
|
local deployer_groups = { cracky = 3, wires_connect = 1 }
|
||||||
if utils.pipeworks_supported then
|
if utils.pipeworks_supported then
|
||||||
deployer_groups.tubedevice = 1
|
deployer_groups.tubedevice = 1
|
||||||
deployer_groups.tubedevice_receiver = 1
|
deployer_groups.tubedevice_receiver = 1
|
||||||
@@ -638,7 +638,7 @@ end
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
local deployer_on_groups = { cracky = 3, not_in_creative_inventory = 1 }
|
local deployer_on_groups = { cracky = 3, not_in_creative_inventory = 1, wires_connect = 1 }
|
||||||
if utils.pipeworks_supported then
|
if utils.pipeworks_supported then
|
||||||
deployer_on_groups.tubedevice = 1
|
deployer_on_groups.tubedevice = 1
|
||||||
deployer_on_groups.tubedevice_receiver = 1
|
deployer_on_groups.tubedevice_receiver = 1
|
||||||
|
12
detector.lua
12
detector.lua
@@ -730,7 +730,7 @@ minetest.register_node("lwcomponents:detector", {
|
|||||||
tiles = { "lwdetector_face.png", "lwdetector_face.png", "lwdetector.png",
|
tiles = { "lwdetector_face.png", "lwdetector_face.png", "lwdetector.png",
|
||||||
"lwdetector.png", "lwdetector.png", "lwdetector_face.png"},
|
"lwdetector.png", "lwdetector.png", "lwdetector_face.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = { cracky = 3 },
|
groups = { cracky = 3, wires_connect = 1 },
|
||||||
sounds = default.node_sound_stone_defaults (),
|
sounds = default.node_sound_stone_defaults (),
|
||||||
paramtype = "none",
|
paramtype = "none",
|
||||||
param1 = 0,
|
param1 = 0,
|
||||||
@@ -759,7 +759,7 @@ minetest.register_node("lwcomponents:detector_locked", {
|
|||||||
tiles = { "lwdetector_face.png", "lwdetector_face.png", "lwdetector.png",
|
tiles = { "lwdetector_face.png", "lwdetector_face.png", "lwdetector.png",
|
||||||
"lwdetector.png", "lwdetector.png", "lwdetector_face.png"},
|
"lwdetector.png", "lwdetector.png", "lwdetector_face.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = { cracky = 3 },
|
groups = { cracky = 3, wires_connect = 1 },
|
||||||
sounds = default.node_sound_stone_defaults (),
|
sounds = default.node_sound_stone_defaults (),
|
||||||
paramtype = "none",
|
paramtype = "none",
|
||||||
param1 = 0,
|
param1 = 0,
|
||||||
@@ -788,7 +788,7 @@ minetest.register_node("lwcomponents:detector_on", {
|
|||||||
tiles = { "lwdetector_face_on.png", "lwdetector_face_on.png", "lwdetector.png",
|
tiles = { "lwdetector_face_on.png", "lwdetector_face_on.png", "lwdetector.png",
|
||||||
"lwdetector.png", "lwdetector.png", "lwdetector_face_on.png"},
|
"lwdetector.png", "lwdetector.png", "lwdetector_face_on.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = { cracky = 3, not_in_creative_inventory = 1 },
|
groups = { cracky = 3, not_in_creative_inventory = 1, wires_connect = 1 },
|
||||||
sounds = default.node_sound_stone_defaults (),
|
sounds = default.node_sound_stone_defaults (),
|
||||||
paramtype = "none",
|
paramtype = "none",
|
||||||
param1 = 0,
|
param1 = 0,
|
||||||
@@ -817,7 +817,7 @@ minetest.register_node("lwcomponents:detector_locked_on", {
|
|||||||
tiles = { "lwdetector_face_on.png", "lwdetector_face_on.png", "lwdetector.png",
|
tiles = { "lwdetector_face_on.png", "lwdetector_face_on.png", "lwdetector.png",
|
||||||
"lwdetector.png", "lwdetector.png", "lwdetector_face_on.png"},
|
"lwdetector.png", "lwdetector.png", "lwdetector_face_on.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = { cracky = 3, not_in_creative_inventory = 1 },
|
groups = { cracky = 3, not_in_creative_inventory = 1, wires_connect = 1 },
|
||||||
sounds = default.node_sound_stone_defaults (),
|
sounds = default.node_sound_stone_defaults (),
|
||||||
paramtype = "none",
|
paramtype = "none",
|
||||||
param1 = 0,
|
param1 = 0,
|
||||||
@@ -846,7 +846,7 @@ minetest.register_node("lwcomponents:detector_on_on", {
|
|||||||
tiles = { "lwdetector_face_on.png", "lwdetector_face_on.png", "lwdetector.png",
|
tiles = { "lwdetector_face_on.png", "lwdetector_face_on.png", "lwdetector.png",
|
||||||
"lwdetector.png", "lwdetector.png", "lwdetector_face_on.png"},
|
"lwdetector.png", "lwdetector.png", "lwdetector_face_on.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = { cracky = 3, not_in_creative_inventory = 1 },
|
groups = { cracky = 3, not_in_creative_inventory = 1, wires_connect = 1 },
|
||||||
sounds = default.node_sound_stone_defaults (),
|
sounds = default.node_sound_stone_defaults (),
|
||||||
paramtype = "none",
|
paramtype = "none",
|
||||||
param1 = 0,
|
param1 = 0,
|
||||||
@@ -875,7 +875,7 @@ minetest.register_node("lwcomponents:detector_locked_on_on", {
|
|||||||
tiles = { "lwdetector_face_on.png", "lwdetector_face_on.png", "lwdetector.png",
|
tiles = { "lwdetector_face_on.png", "lwdetector_face_on.png", "lwdetector.png",
|
||||||
"lwdetector.png", "lwdetector.png", "lwdetector_face_on.png"},
|
"lwdetector.png", "lwdetector.png", "lwdetector_face_on.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = { cracky = 3, not_in_creative_inventory = 1 },
|
groups = { cracky = 3, not_in_creative_inventory = 1, wires_connect = 1 },
|
||||||
sounds = default.node_sound_stone_defaults (),
|
sounds = default.node_sound_stone_defaults (),
|
||||||
paramtype = "none",
|
paramtype = "none",
|
||||||
param1 = 0,
|
param1 = 0,
|
||||||
|
@@ -334,7 +334,7 @@ minetest.register_node ("lwcomponents:digiswitch", {
|
|||||||
},
|
},
|
||||||
paramtype = "none",
|
paramtype = "none",
|
||||||
param1 = 0,
|
param1 = 0,
|
||||||
groups = { cracky = 2, oddly_breakable_by_hand = 2 },
|
groups = { cracky = 2, oddly_breakable_by_hand = 2, wires_connect = 1 },
|
||||||
sounds = default.node_sound_stone_defaults (),
|
sounds = default.node_sound_stone_defaults (),
|
||||||
mesecons = mesecon_support (),
|
mesecons = mesecon_support (),
|
||||||
digiline = digilines_support (),
|
digiline = digilines_support (),
|
||||||
@@ -362,7 +362,7 @@ minetest.register_node ("lwcomponents:digiswitch_on", {
|
|||||||
},
|
},
|
||||||
paramtype = "none",
|
paramtype = "none",
|
||||||
param1 = 0,
|
param1 = 0,
|
||||||
groups = { cracky = 2, oddly_breakable_by_hand = 2, not_in_creative_inventory = 1 },
|
groups = { cracky = 2, oddly_breakable_by_hand = 2, not_in_creative_inventory = 1, wires_connect = 1 },
|
||||||
sounds = default.node_sound_stone_defaults (),
|
sounds = default.node_sound_stone_defaults (),
|
||||||
mesecons = mesecon_support_on (),
|
mesecons = mesecon_support_on (),
|
||||||
digiline = digilines_support (),
|
digiline = digilines_support (),
|
||||||
|
@@ -513,7 +513,7 @@ end
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
local dispenser_groups = { cracky = 3 }
|
local dispenser_groups = { cracky = 3, wires_connect = 1 }
|
||||||
if utils.pipeworks_supported then
|
if utils.pipeworks_supported then
|
||||||
dispenser_groups.tubedevice = 1
|
dispenser_groups.tubedevice = 1
|
||||||
dispenser_groups.tubedevice_receiver = 1
|
dispenser_groups.tubedevice_receiver = 1
|
||||||
|
@@ -448,7 +448,7 @@ end
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
local dropper_groups = { cracky = 3 }
|
local dropper_groups = { cracky = 3, wires_connect = 1 }
|
||||||
if utils.pipeworks_supported then
|
if utils.pipeworks_supported then
|
||||||
dropper_groups.tubedevice = 1
|
dropper_groups.tubedevice = 1
|
||||||
dropper_groups.tubedevice_receiver = 1
|
dropper_groups.tubedevice_receiver = 1
|
||||||
|
8
fan.lua
8
fan.lua
@@ -341,7 +341,7 @@ minetest.register_node("lwcomponents:fan", {
|
|||||||
tiles = { "lwfan.png", "lwfan.png", "lwfan.png",
|
tiles = { "lwfan.png", "lwfan.png", "lwfan.png",
|
||||||
"lwfan.png", "lwfan.png", "lwfan_face.png"},
|
"lwfan.png", "lwfan.png", "lwfan_face.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = { cracky = 3 },
|
groups = { cracky = 3, wires_connect = 1 },
|
||||||
sounds = default.node_sound_stone_defaults (),
|
sounds = default.node_sound_stone_defaults (),
|
||||||
paramtype = "none",
|
paramtype = "none",
|
||||||
param1 = 0,
|
param1 = 0,
|
||||||
@@ -369,7 +369,7 @@ minetest.register_node("lwcomponents:fan_locked", {
|
|||||||
tiles = { "lwfan.png", "lwfan.png", "lwfan.png",
|
tiles = { "lwfan.png", "lwfan.png", "lwfan.png",
|
||||||
"lwfan.png", "lwfan.png", "lwfan_face.png"},
|
"lwfan.png", "lwfan.png", "lwfan_face.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = { cracky = 3 },
|
groups = { cracky = 3, wires_connect = 1 },
|
||||||
sounds = default.node_sound_stone_defaults (),
|
sounds = default.node_sound_stone_defaults (),
|
||||||
paramtype = "none",
|
paramtype = "none",
|
||||||
param1 = 0,
|
param1 = 0,
|
||||||
@@ -397,7 +397,7 @@ minetest.register_node("lwcomponents:fan_on", {
|
|||||||
tiles = { "lwfan.png", "lwfan.png", "lwfan.png",
|
tiles = { "lwfan.png", "lwfan.png", "lwfan.png",
|
||||||
"lwfan.png", "lwfan.png", "lwfan_face_on.png"},
|
"lwfan.png", "lwfan.png", "lwfan_face_on.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = { cracky = 3, not_in_creative_inventory = 1 },
|
groups = { cracky = 3, not_in_creative_inventory = 1, wires_connect = 1 },
|
||||||
sounds = default.node_sound_stone_defaults (),
|
sounds = default.node_sound_stone_defaults (),
|
||||||
paramtype = "none",
|
paramtype = "none",
|
||||||
param1 = 0,
|
param1 = 0,
|
||||||
@@ -426,7 +426,7 @@ minetest.register_node("lwcomponents:fan_locked_on", {
|
|||||||
tiles = { "lwfan.png", "lwfan.png", "lwfan.png",
|
tiles = { "lwfan.png", "lwfan.png", "lwfan.png",
|
||||||
"lwfan.png", "lwfan.png", "lwfan_face_on.png"},
|
"lwfan.png", "lwfan.png", "lwfan_face_on.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = { cracky = 3, not_in_creative_inventory = 1 },
|
groups = { cracky = 3, not_in_creative_inventory = 1, wires_connect = 1 },
|
||||||
sounds = default.node_sound_stone_defaults (),
|
sounds = default.node_sound_stone_defaults (),
|
||||||
paramtype = "none",
|
paramtype = "none",
|
||||||
param1 = 0,
|
param1 = 0,
|
||||||
|
@@ -820,7 +820,7 @@ end
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
local force_field_groups = { cracky = 3 }
|
local force_field_groups = { cracky = 3, wires_connect = 1 }
|
||||||
if utils.pipeworks_supported then
|
if utils.pipeworks_supported then
|
||||||
force_field_groups.tubedevice = 1
|
force_field_groups.tubedevice = 1
|
||||||
force_field_groups.tubedevice_receiver = 1
|
force_field_groups.tubedevice_receiver = 1
|
||||||
@@ -828,7 +828,7 @@ end
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
local force_field_on_groups = { cracky = 3, not_in_creative_inventory = 1 }
|
local force_field_on_groups = { cracky = 3, not_in_creative_inventory = 1, wires_connect = 1 }
|
||||||
if utils.pipeworks_supported then
|
if utils.pipeworks_supported then
|
||||||
force_field_on_groups.tubedevice = 1
|
force_field_on_groups.tubedevice = 1
|
||||||
force_field_on_groups.tubedevice_receiver = 1
|
force_field_on_groups.tubedevice_receiver = 1
|
||||||
|
2
init.lua
2
init.lua
@@ -1,4 +1,4 @@
|
|||||||
local version = "0.1.27"
|
local version = "0.1.28"
|
||||||
local mod_storage = minetest.get_mod_storage ()
|
local mod_storage = minetest.get_mod_storage ()
|
||||||
|
|
||||||
|
|
||||||
|
2
mod.conf
2
mod.conf
@@ -3,4 +3,4 @@ description = Various components for mesecons and digilines.
|
|||||||
title = LWComponents
|
title = LWComponents
|
||||||
name = lwcomponents
|
name = lwcomponents
|
||||||
depends = default
|
depends = default
|
||||||
optional_depends = mesecons, digilines, unifieddyes, intllib, hopper, digistuff, pipeworks
|
optional_depends = mesecons, digilines, unifieddyes, intllib, hopper, digistuff, pipeworks, lwwires
|
||||||
|
12
pistons.lua
12
pistons.lua
@@ -1103,7 +1103,7 @@ minetest.register_node("lwcomponents:piston", {
|
|||||||
"lwcomponents_piston_right.png", "lwcomponents_piston_left.png",
|
"lwcomponents_piston_right.png", "lwcomponents_piston_left.png",
|
||||||
"lwcomponents_piston_base.png", "lwcomponents_piston_pusher.png" },
|
"lwcomponents_piston_base.png", "lwcomponents_piston_pusher.png" },
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = { cracky = 3 },
|
groups = { cracky = 3, wires_connect = 1 },
|
||||||
sounds = default.node_sound_stone_defaults (),
|
sounds = default.node_sound_stone_defaults (),
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
param1 = 0,
|
param1 = 0,
|
||||||
@@ -1150,7 +1150,7 @@ minetest.register_node("lwcomponents:piston_1", {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = { cracky = 3 , not_in_creative_inventory = 1 },
|
groups = { cracky = 3 , not_in_creative_inventory = 1, wires_connect = 1 },
|
||||||
sounds = default.node_sound_stone_defaults (),
|
sounds = default.node_sound_stone_defaults (),
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
param1 = 0,
|
param1 = 0,
|
||||||
@@ -1197,7 +1197,7 @@ minetest.register_node("lwcomponents:piston_2", {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = { cracky = 3 , not_in_creative_inventory = 1 },
|
groups = { cracky = 3 , not_in_creative_inventory = 1, wires_connect = 1 },
|
||||||
sounds = default.node_sound_stone_defaults (),
|
sounds = default.node_sound_stone_defaults (),
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
param1 = 0,
|
param1 = 0,
|
||||||
@@ -1227,7 +1227,7 @@ minetest.register_node("lwcomponents:piston_sticky", {
|
|||||||
"lwcomponents_piston_right.png", "lwcomponents_piston_left.png",
|
"lwcomponents_piston_right.png", "lwcomponents_piston_left.png",
|
||||||
"lwcomponents_piston_base.png", "lwcomponents_piston_pusher_sticky.png" },
|
"lwcomponents_piston_base.png", "lwcomponents_piston_pusher_sticky.png" },
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = { cracky = 3 },
|
groups = { cracky = 3, wires_connect = 1 },
|
||||||
sounds = default.node_sound_stone_defaults (),
|
sounds = default.node_sound_stone_defaults (),
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
param1 = 0,
|
param1 = 0,
|
||||||
@@ -1274,7 +1274,7 @@ minetest.register_node("lwcomponents:piston_sticky_1", {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = { cracky = 3 , not_in_creative_inventory = 1 },
|
groups = { cracky = 3 , not_in_creative_inventory = 1, wires_connect = 1 },
|
||||||
sounds = default.node_sound_stone_defaults (),
|
sounds = default.node_sound_stone_defaults (),
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
param1 = 0,
|
param1 = 0,
|
||||||
@@ -1321,7 +1321,7 @@ minetest.register_node("lwcomponents:piston_sticky_2", {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = { cracky = 3 , not_in_creative_inventory = 1 },
|
groups = { cracky = 3 , not_in_creative_inventory = 1, wires_connect = 1 },
|
||||||
sounds = default.node_sound_stone_defaults (),
|
sounds = default.node_sound_stone_defaults (),
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
param1 = 0,
|
param1 = 0,
|
||||||
|
@@ -482,7 +482,7 @@ minetest.register_node("lwcomponents:puncher", {
|
|||||||
tiles = { "lwpuncher_face.png", "lwpuncher_face.png", "lwpuncher.png",
|
tiles = { "lwpuncher_face.png", "lwpuncher_face.png", "lwpuncher.png",
|
||||||
"lwpuncher.png", "lwpuncher.png", "lwpuncher_face.png"},
|
"lwpuncher.png", "lwpuncher.png", "lwpuncher_face.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = { cracky = 3 },
|
groups = { cracky = 3, wires_connect = 1 },
|
||||||
sounds = default.node_sound_stone_defaults (),
|
sounds = default.node_sound_stone_defaults (),
|
||||||
paramtype = "none",
|
paramtype = "none",
|
||||||
param1 = 0,
|
param1 = 0,
|
||||||
@@ -509,7 +509,7 @@ minetest.register_node("lwcomponents:puncher_locked", {
|
|||||||
tiles = { "lwpuncher_face.png", "lwpuncher_face.png", "lwpuncher.png",
|
tiles = { "lwpuncher_face.png", "lwpuncher_face.png", "lwpuncher.png",
|
||||||
"lwpuncher.png", "lwpuncher.png", "lwpuncher_face.png"},
|
"lwpuncher.png", "lwpuncher.png", "lwpuncher_face.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = { cracky = 3 },
|
groups = { cracky = 3, wires_connect = 1 },
|
||||||
sounds = default.node_sound_stone_defaults (),
|
sounds = default.node_sound_stone_defaults (),
|
||||||
paramtype = "none",
|
paramtype = "none",
|
||||||
param1 = 0,
|
param1 = 0,
|
||||||
@@ -536,7 +536,7 @@ minetest.register_node("lwcomponents:puncher_on", {
|
|||||||
tiles = { "lwpuncher_face_on.png", "lwpuncher_face_on.png", "lwpuncher.png",
|
tiles = { "lwpuncher_face_on.png", "lwpuncher_face_on.png", "lwpuncher.png",
|
||||||
"lwpuncher.png", "lwpuncher.png", "lwpuncher_face_on.png"},
|
"lwpuncher.png", "lwpuncher.png", "lwpuncher_face_on.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = { cracky = 3, not_in_creative_inventory = 1 },
|
groups = { cracky = 3, not_in_creative_inventory = 1, wires_connect = 1 },
|
||||||
sounds = default.node_sound_stone_defaults (),
|
sounds = default.node_sound_stone_defaults (),
|
||||||
paramtype = "none",
|
paramtype = "none",
|
||||||
param1 = 0,
|
param1 = 0,
|
||||||
@@ -563,7 +563,7 @@ minetest.register_node("lwcomponents:puncher_locked_on", {
|
|||||||
tiles = { "lwpuncher_face_on.png", "lwpuncher_face_on.png", "lwpuncher.png",
|
tiles = { "lwpuncher_face_on.png", "lwpuncher_face_on.png", "lwpuncher.png",
|
||||||
"lwpuncher.png", "lwpuncher.png", "lwpuncher_face_on.png"},
|
"lwpuncher.png", "lwpuncher.png", "lwpuncher_face_on.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = { cracky = 3, not_in_creative_inventory = 1 },
|
groups = { cracky = 3, not_in_creative_inventory = 1, wires_connect = 1 },
|
||||||
sounds = default.node_sound_stone_defaults (),
|
sounds = default.node_sound_stone_defaults (),
|
||||||
paramtype = "none",
|
paramtype = "none",
|
||||||
param1 = 0,
|
param1 = 0,
|
||||||
|
@@ -13,7 +13,7 @@ CC BY-SA 3.0
|
|||||||
|
|
||||||
Version
|
Version
|
||||||
=======
|
=======
|
||||||
0.1.27
|
0.1.28
|
||||||
|
|
||||||
|
|
||||||
Minetest Version
|
Minetest Version
|
||||||
@@ -35,6 +35,7 @@ intllib
|
|||||||
hopper
|
hopper
|
||||||
digistuff
|
digistuff
|
||||||
pipeworks
|
pipeworks
|
||||||
|
lwwires
|
||||||
|
|
||||||
|
|
||||||
Installation
|
Installation
|
||||||
|
12
siren.lua
12
siren.lua
@@ -491,7 +491,7 @@ minetest.register_node("lwcomponents:siren", {
|
|||||||
tiles = { "lwsiren_base.png", "lwsiren_base.png", "lwsiren.png",
|
tiles = { "lwsiren_base.png", "lwsiren_base.png", "lwsiren.png",
|
||||||
"lwsiren.png", "lwsiren.png", "lwsiren.png"},
|
"lwsiren.png", "lwsiren.png", "lwsiren.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = { cracky = 3 },
|
groups = { cracky = 3, wires_connect = 1 },
|
||||||
sounds = default.node_sound_stone_defaults (),
|
sounds = default.node_sound_stone_defaults (),
|
||||||
paramtype = "none",
|
paramtype = "none",
|
||||||
param1 = 0,
|
param1 = 0,
|
||||||
@@ -518,7 +518,7 @@ minetest.register_node("lwcomponents:siren_locked", {
|
|||||||
tiles = { "lwsiren_base.png", "lwsiren_base.png", "lwsiren.png",
|
tiles = { "lwsiren_base.png", "lwsiren_base.png", "lwsiren.png",
|
||||||
"lwsiren.png", "lwsiren.png", "lwsiren.png"},
|
"lwsiren.png", "lwsiren.png", "lwsiren.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = { cracky = 3 },
|
groups = { cracky = 3, wires_connect = 1 },
|
||||||
sounds = default.node_sound_stone_defaults (),
|
sounds = default.node_sound_stone_defaults (),
|
||||||
paramtype = "none",
|
paramtype = "none",
|
||||||
param1 = 0,
|
param1 = 0,
|
||||||
@@ -545,7 +545,7 @@ minetest.register_node("lwcomponents:siren_on", {
|
|||||||
tiles = { "lwsiren_base.png", "lwsiren_base.png", "lwsiren_on.png",
|
tiles = { "lwsiren_base.png", "lwsiren_base.png", "lwsiren_on.png",
|
||||||
"lwsiren_on.png", "lwsiren_on.png", "lwsiren_on.png"},
|
"lwsiren_on.png", "lwsiren_on.png", "lwsiren_on.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = { cracky = 3, not_in_creative_inventory = 1 },
|
groups = { cracky = 3, not_in_creative_inventory = 1, wires_connect = 1 },
|
||||||
sounds = default.node_sound_stone_defaults (),
|
sounds = default.node_sound_stone_defaults (),
|
||||||
paramtype = "none",
|
paramtype = "none",
|
||||||
param1 = 0,
|
param1 = 0,
|
||||||
@@ -572,7 +572,7 @@ minetest.register_node("lwcomponents:siren_locked_on", {
|
|||||||
tiles = { "lwsiren_base.png", "lwsiren_base.png", "lwsiren_on.png",
|
tiles = { "lwsiren_base.png", "lwsiren_base.png", "lwsiren_on.png",
|
||||||
"lwsiren_on.png", "lwsiren_on.png", "lwsiren_on.png"},
|
"lwsiren_on.png", "lwsiren_on.png", "lwsiren_on.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = { cracky = 3, not_in_creative_inventory = 1 },
|
groups = { cracky = 3, not_in_creative_inventory = 1, wires_connect = 1 },
|
||||||
sounds = default.node_sound_stone_defaults (),
|
sounds = default.node_sound_stone_defaults (),
|
||||||
paramtype = "none",
|
paramtype = "none",
|
||||||
param1 = 0,
|
param1 = 0,
|
||||||
@@ -599,7 +599,7 @@ minetest.register_node("lwcomponents:siren_alarm", {
|
|||||||
tiles = { "lwsiren_base.png", "lwsiren_base.png", "lwsiren_alarm.png",
|
tiles = { "lwsiren_base.png", "lwsiren_base.png", "lwsiren_alarm.png",
|
||||||
"lwsiren_alarm.png", "lwsiren_alarm.png", "lwsiren_alarm.png"},
|
"lwsiren_alarm.png", "lwsiren_alarm.png", "lwsiren_alarm.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = { cracky = 3, not_in_creative_inventory = 1 },
|
groups = { cracky = 3, not_in_creative_inventory = 1, wires_connect = 1 },
|
||||||
sounds = default.node_sound_stone_defaults (),
|
sounds = default.node_sound_stone_defaults (),
|
||||||
paramtype = "none",
|
paramtype = "none",
|
||||||
param1 = 0,
|
param1 = 0,
|
||||||
@@ -627,7 +627,7 @@ minetest.register_node("lwcomponents:siren_locked_alarm", {
|
|||||||
tiles = { "lwsiren_base.png", "lwsiren_base.png", "lwsiren_alarm.png",
|
tiles = { "lwsiren_base.png", "lwsiren_base.png", "lwsiren_alarm.png",
|
||||||
"lwsiren_alarm.png", "lwsiren_alarm.png", "lwsiren_alarm.png"},
|
"lwsiren_alarm.png", "lwsiren_alarm.png", "lwsiren_alarm.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = { cracky = 3, not_in_creative_inventory = 1 },
|
groups = { cracky = 3, not_in_creative_inventory = 1, wires_connect = 1 },
|
||||||
sounds = default.node_sound_stone_defaults (),
|
sounds = default.node_sound_stone_defaults (),
|
||||||
paramtype = "none",
|
paramtype = "none",
|
||||||
param1 = 0,
|
param1 = 0,
|
||||||
|
@@ -35,6 +35,7 @@ mesecon.register_node (":lwcomponents:solid_conductor",
|
|||||||
groups = {
|
groups = {
|
||||||
dig_immediate = 2,
|
dig_immediate = 2,
|
||||||
ud_param2_colorable = 1,
|
ud_param2_colorable = 1,
|
||||||
|
wires_connect = 1
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -51,7 +52,8 @@ mesecon.register_node (":lwcomponents:solid_conductor",
|
|||||||
groups = {
|
groups = {
|
||||||
dig_immediate = 2,
|
dig_immediate = 2,
|
||||||
ud_param2_colorable = 1,
|
ud_param2_colorable = 1,
|
||||||
not_in_creative_inventory = 1
|
not_in_creative_inventory = 1,
|
||||||
|
wires_connect = 1
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@@ -101,6 +103,7 @@ mesecon.register_node (":lwcomponents:solid_horizontal_conductor",
|
|||||||
groups = {
|
groups = {
|
||||||
dig_immediate = 2,
|
dig_immediate = 2,
|
||||||
ud_param2_colorable = 1,
|
ud_param2_colorable = 1,
|
||||||
|
wires_connect = 1
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -117,7 +120,8 @@ mesecon.register_node (":lwcomponents:solid_horizontal_conductor",
|
|||||||
groups = {
|
groups = {
|
||||||
dig_immediate = 2,
|
dig_immediate = 2,
|
||||||
ud_param2_colorable = 1,
|
ud_param2_colorable = 1,
|
||||||
not_in_creative_inventory = 1
|
not_in_creative_inventory = 1,
|
||||||
|
wires_connect = 1
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user