diff options
author | Jeija <norrepli@gmail.com> | 2012-03-29 11:37:00 +0200 |
---|---|---|
committer | Jeija <norrepli@gmail.com> | 2012-03-29 11:37:00 +0200 |
commit | 2601d550c3523febf16ff615d01fdb90a7e8d4ca (patch) | |
tree | e44a193fc9e684d6cf58c15b2a84a797c09702f4 | |
parent | 6b542ccc64db0e835c25cb83e3023b5ccc908bb6 (diff) |
Add pressure plate rules for new rules system
-rw-r--r-- | mesecons_pressureplates/init.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mesecons_pressureplates/init.lua b/mesecons_pressureplates/init.lua index dcb6890..7e6b31f 100644 --- a/mesecons_pressureplates/init.lua +++ b/mesecons_pressureplates/init.lua @@ -151,3 +151,19 @@ minetest.register_on_dignode( mesecon:add_receptor_node("mesecons_pressureplates:pressure_plate_stone_on") mesecon:add_receptor_node_off("mesecons_pressureplates:pressure_plate_stone_off") + +mesecon:add_rules("pressureplate", +{{x=0, y=1, z=-1}, +{x=0, y=0, z=-1}, +{x=0, y=-1, z=-1}, +{x=0, y=1, z=1}, +{x=0, y=-1, z=1}, +{x=0, y=0, z=1}, +{x=1, y=0, z=0}, +{x=1, y=1, z=0}, +{x=1, y=-1, z=0}, +{x=-1, y=1, z=0}, +{x=-1, y=-1, z=0}, +{x=-1, y=0, z=0}, +{x=0, y=-1, z=0}, +{x=0, y=1, z=0}}) |