summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--noteblock.lua11
-rw-r--r--piezo.lua10
-rw-r--r--piston.lua9
-rw-r--r--switches.lua23
4 files changed, 44 insertions, 9 deletions
diff --git a/noteblock.lua b/noteblock.lua
index f2e9c89..665c201 100644
--- a/noteblock.lua
+++ b/noteblock.lua
@@ -30,7 +30,7 @@ minetest.register_node("digistuff:noteblock", {
local meta = minetest.get_meta(pos)
if fields.channel then meta:set_string("channel",fields.channel) end
end,
- digiline =
+ digiline =
{
receptor = {},
effector = {
@@ -62,3 +62,12 @@ minetest.register_node("digistuff:noteblock", {
},
},
})
+
+minetest.register_craft({
+ output = "digistuff:noteblock",
+ recipe = {
+ {"mesecons_noteblock:noteblock"},
+ {"mesecons_luacontroller:luacontroller0000"},
+ {"digilines:wire_std_00000000"},
+ },
+})
diff --git a/piezo.lua b/piezo.lua
index f96e4a1..39fce0d 100644
--- a/piezo.lua
+++ b/piezo.lua
@@ -31,7 +31,7 @@ minetest.register_node("digistuff:piezo", {
local meta = minetest.get_meta(pos)
if fields.channel then meta:set_string("channel",fields.channel) end
end,
- digiline =
+ digiline =
{
receptor = {},
effector = {
@@ -78,3 +78,11 @@ minetest.register_node("digistuff:piezo", {
},
},
})
+
+minetest.register_craft({
+ output = "digistuff:piezo",
+ recipe = {
+ {"quartz:quartz_crystal_piece","basic_materials:steel_strip"},
+ {"digilines:wire_std_00000000","mesecons_luacontroller:luacontroller0000"},
+ },
+})
diff --git a/piston.lua b/piston.lua
index b4ed655..070da43 100644
--- a/piston.lua
+++ b/piston.lua
@@ -220,3 +220,12 @@ minetest.register_node("digistuff:piston_pusher", {
mesecon.register_mvps_stopper("digistuff:piston_ext")
mesecon.register_mvps_stopper("digistuff:piston_pusher")
+
+minetest.register_craft({
+ output = "digistuff:piston",
+ recipe = {
+ {"mesecons_pistons:piston_normal_off"},
+ {"mesecons_luacontroller:luacontroller0000"},
+ {"digilines:wire_std_00000000"},
+ },
+})
diff --git a/switches.lua b/switches.lua
index 118951c..87d7a87 100644
--- a/switches.lua
+++ b/switches.lua
@@ -88,7 +88,7 @@ minetest.register_node("digistuff:button", {
{ -4/16, -2/16, 4/16, 4/16, 2/16, 6/16 } -- the button itself
}
},
- digiline =
+ digiline =
{
receptor = {},
wire = {
@@ -150,7 +150,7 @@ minetest.register_node("digistuff:button_off", {
{ -4/16, -2/16, 4/16, 4/16, 2/16, 6/16 } -- the button itself
}
},
- digiline =
+ digiline =
{
receptor = {},
wire = {
@@ -194,7 +194,7 @@ minetest.register_node("digistuff:button_off_pushed", {
{ -4/16, -2/16, 11/32, 4/16, 2/16, 6/16 }
}
},
- digiline =
+ digiline =
{
receptor = {},
wire = {
@@ -240,7 +240,7 @@ minetest.register_node("digistuff:button_on", {
{ -4/16, -2/16, 4/16, 4/16, 2/16, 6/16 } -- the button itself
}
},
- digiline =
+ digiline =
{
receptor = {},
wire = {
@@ -286,7 +286,7 @@ minetest.register_node("digistuff:button_on_pushed", {
{ -4/16, -2/16, 11/32, 4/16, 2/16, 6/16 }
}
},
- digiline =
+ digiline =
{
receptor = {},
wire = {
@@ -319,7 +319,7 @@ minetest.register_node("digistuff:wall_knob", {
paramtype2 = "facedir",
walkable = false,
sunlight_propagates = true,
- digiline =
+ digiline =
{
receptor = {},
wire = {
@@ -378,7 +378,7 @@ minetest.register_node("digistuff:wall_knob_configured", {
paramtype2 = "facedir",
walkable = false,
sunlight_propagates = true,
- digiline =
+ digiline =
{
receptor = {},
wire = {
@@ -426,3 +426,12 @@ minetest.register_node("digistuff:wall_knob_configured", {
end,
sounds = default and default.node_sound_stone_defaults(),
})
+
+minetest.register_craft({
+ output = "digistuff:wall_knob",
+ recipe = {
+ {"", "mesecons_button:button_off", ""},
+ {"digilines:wire_std_00000000","mesecons_luacontroller:luacontroller0000", "digilines:wire_std_00000000"},
+ {"", "digilines:wire_std_00000000", ""},
+ },
+})