summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeija <norrepli@gmail.com>2012-12-22 23:39:17 +0100
committerJeija <norrepli@gmail.com>2012-12-22 23:39:17 +0100
commite2ec7b5b04f5f14092205b26594124d40de2f1ec (patch)
treed5fa4d77a0657286408d887b53509c93e8016ea1
parent594d061d6d33e59009914d8873f5c1584f1383f0 (diff)
downloadmesecons-e2ec7b5b04f5f14092205b26594124d40de2f1ec.tar
mesecons-e2ec7b5b04f5f14092205b26594124d40de2f1ec.tar.gz
mesecons-e2ec7b5b04f5f14092205b26594124d40de2f1ec.tar.bz2
mesecons-e2ec7b5b04f5f14092205b26594124d40de2f1ec.tar.xz
mesecons-e2ec7b5b04f5f14092205b26594124d40de2f1ec.zip
Fix pressure plates (forgot to add mesecons field to some of the nodedefs)
-rw-r--r--mesecons_pressureplates/init.lua28
1 files changed, 14 insertions, 14 deletions
diff --git a/mesecons_pressureplates/init.lua b/mesecons_pressureplates/init.lua
index 2e88d2f..78389a4 100644
--- a/mesecons_pressureplates/init.lua
+++ b/mesecons_pressureplates/init.lua
@@ -16,7 +16,7 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_wood_off", {
type = "fixed",
fixed = { -7/16, -8/16, -7/16, 7/16, -7/16, 7/16 },
},
- groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3, mesecon = 2},
+ groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3},
description="Wood Pressure Plate",
on_timer = function(pos, elapsed)
@@ -30,7 +30,9 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_wood_off", {
end
return true
end,
-
+ mesecons = {receptor = {
+ state = mesecon.state.off
+ }},
on_construct = function(pos)
minetest.env:get_node_timer(pos):start(PRESSURE_PLATE_INTERVAL)
end,
@@ -50,7 +52,7 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_wood_on", {
type = "fixed",
fixed = { -7/16, -8/16, -7/16, 7/16, -31/64, 7/16 },
},
- groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,not_in_creative_inventory=1, mesecon = 2},
+ groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
drop='"mesecons_pressureplates:pressure_plate_wood_off" 1',
on_timer = function(pos, elapsed)
@@ -61,7 +63,9 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_wood_on", {
end
return true
end,
-
+ mesecons = {receptor = {
+ state = mesecon.state.on
+ }},
on_construct = function(pos)
minetest.env:get_node_timer(pos):start(PRESSURE_PLATE_INTERVAL)
end,
@@ -106,14 +110,12 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_stone_off", {
end
return true
end,
-
+ mesecons = {receptor = {
+ state = mesecon.state.off
+ }},
on_construct = function(pos)
minetest.env:get_node_timer(pos):start(PRESSURE_PLATE_INTERVAL)
end,
-
- mesecons = {receptor = {
- state = mesecon.state.off
- }}
})
minetest.register_node("mesecons_pressureplates:pressure_plate_stone_on", {
@@ -141,14 +143,12 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_stone_on", {
end
return true
end,
-
+ mesecons = {receptor = {
+ state = mesecon.state.on
+ }},
on_construct = function(pos)
minetest.env:get_node_timer(pos):start(PRESSURE_PLATE_INTERVAL)
end,
-
- mesecons = {receptor = {
- state = mesecon.state.off
- }}
})
minetest.register_craft({