summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeija <norrepli@gmail.com>2012-06-21 13:56:04 +0200
committerJeija <norrepli@gmail.com>2012-06-21 13:56:04 +0200
commitdfc918a5f5a1ffb09d59d7bf758968933791bce0 (patch)
tree0bea4f7d7a276be37019679f6fe4cb4aab88c88c
parent3ed865d94d325f9578082094e837583d66935b68 (diff)
downloadmesecons-dfc918a5f5a1ffb09d59d7bf758968933791bce0.tar
mesecons-dfc918a5f5a1ffb09d59d7bf758968933791bce0.tar.gz
mesecons-dfc918a5f5a1ffb09d59d7bf758968933791bce0.tar.bz2
mesecons-dfc918a5f5a1ffb09d59d7bf758968933791bce0.tar.xz
mesecons-dfc918a5f5a1ffb09d59d7bf758968933791bce0.zip
Add 3d pressure plates
-rw-r--r--mesecons_pressureplates/init.lua28
1 files changed, 24 insertions, 4 deletions
diff --git a/mesecons_pressureplates/init.lua b/mesecons_pressureplates/init.lua
index 37b3ca8..6b8778a 100644
--- a/mesecons_pressureplates/init.lua
+++ b/mesecons_pressureplates/init.lua
@@ -1,7 +1,7 @@
-- PRESSURE PLATE WOOD
minetest.register_node("mesecons_pressureplates:pressure_plate_wood_off", {
- drawtype = "raillike",
+ drawtype = "nodebox",
tile_images = {"jeija_pressure_plate_wood_off.png"},
inventory_image = "jeija_pressure_plate_wood_off.png",
wield_image = "jeija_pressure_plate_wood_off.png",
@@ -10,19 +10,29 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_wood_off", {
walkable = false,
selection_box = {
type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, -0.45, 0.5},
+ },
+ node_box = {
+ type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, -0.45, 0.5},
},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3},
description="Wood Pressure Plate",
})
minetest.register_node("mesecons_pressureplates:pressure_plate_wood_on", {
- drawtype = "raillike",
+ drawtype = "nodebox",
tile_images = {"jeija_pressure_plate_wood_on.png"},
paramtype = "light",
is_ground_content = true,
walkable = false,
selection_box = {
type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, -0.48, 0.5},
+ },
+ node_box = {
+ type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, -0.48, 0.5},
},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3},
drop='"mesecons_pressureplates:pressure_plate_wood_off" 1',
@@ -73,7 +83,7 @@ mesecon:add_receptor_node_off("mesecons_pressureplates:pressure_plate_wood_off")
-- PRESSURE PLATE STONE
minetest.register_node("mesecons_pressureplates:pressure_plate_stone_off", {
- drawtype = "raillike",
+ drawtype = "nodebox",
tile_images = {"jeija_pressure_plate_stone_off.png"},
inventory_image = "jeija_pressure_plate_stone_off.png",
wield_image = "jeija_pressure_plate_stone_off.png",
@@ -82,19 +92,29 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_stone_off", {
walkable = false,
selection_box = {
type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, -0.45, 0.5},
+ },
+ node_box = {
+ type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, -0.45, 0.5},
},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3},
description="Stone Pressure Plate",
})
minetest.register_node("mesecons_pressureplates:pressure_plate_stone_on", {
- drawtype = "raillike",
+ drawtype = "nodebox",
tile_images = {"jeija_pressure_plate_stone_on.png"},
paramtype = "light",
is_ground_content = true,
walkable = false,
selection_box = {
type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, -0.48, 0.5},
+ },
+ node_box = {
+ type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, -0.48, 0.5},
},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3},
drop='"mesecons_pressureplates:pressure_plate_stone_off" 1',