summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2012-08-18 09:46:26 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2012-08-18 09:46:26 -0400
commita941f4ebd8bb6a1ffeca7a10c1e17670ed129c4a (patch)
treeb2c82e337a08a45af9ed2fe74d603bc4a0b256b9
parentc103aa6b2398b221c53533b9ad666ec5dd9effec (diff)
downloadmesecons-a941f4ebd8bb6a1ffeca7a10c1e17670ed129c4a.tar
mesecons-a941f4ebd8bb6a1ffeca7a10c1e17670ed129c4a.tar.gz
mesecons-a941f4ebd8bb6a1ffeca7a10c1e17670ed129c4a.tar.bz2
mesecons-a941f4ebd8bb6a1ffeca7a10c1e17670ed129c4a.tar.xz
mesecons-a941f4ebd8bb6a1ffeca7a10c1e17670ed129c4a.zip
new nodeboxes for receiver objects opposite wall levers etc
-rw-r--r--mesecons_receiver/init.lua48
-rw-r--r--mesecons_textures/textures/wires_off.pngbin272 -> 454 bytes
-rw-r--r--mesecons_textures/textures/wires_on.pngbin286 -> 492 bytes
-rw-r--r--mesecons_textures/textures/wires_vertical_off.pngbin320 -> 373 bytes
-rw-r--r--mesecons_textures/textures/wires_vertical_on.pngbin341 -> 396 bytes
5 files changed, 46 insertions, 2 deletions
diff --git a/mesecons_receiver/init.lua b/mesecons_receiver/init.lua
index dca1e22..fc84bca 100644
--- a/mesecons_receiver/init.lua
+++ b/mesecons_receiver/init.lua
@@ -1,12 +1,56 @@
+rcvboxes = {
+ { -3/16, -3/16, -8/16, 3/16, 3/16, -13/32 },
+ { -5/32, -5/32, -13/32, 5/32, 5/32, -12/32 },
+ {-1/16, -.5, -8/16, 1/16, -.5+1/16, 8/16},
+ {-1/16, -.5+1/16, -.5, 1/16, 0, -.5+1/16}
+}
+
minetest.register_node("mesecons_receiver:receiver_on", {
- tiles = {"default_wood.png"},
+ drawtype = "nodebox",
+ tiles = {
+ "wires_on.png",
+ "wires_on.png",
+ "wires_vertical_on.png",
+ "wires_vertical_on.png",
+ "wires_bump_on.png",
+ "wires_bump_on.png",
+ },
+ paramtype = "light",
+ paramtype2 = "facedir",
+ selection_box = {
+ type = "fixed",
+ fixed = { -3/16, -8/16, -8/16, 3/16, 2/16, 8/16 }
+ },
+ node_box = {
+ type = "fixed",
+ fixed = rcvboxes
+ },
groups = {dig_immediate = 3, mesecon = 3, not_in_creative_inventory = 1},
drop = "mesecons:wire_00000000_off",
+
})
minetest.register_node("mesecons_receiver:receiver_off", {
+ drawtype = "nodebox",
description = "You hacker you",
- tiles = {"default_stone.png"},
+ tiles = {
+ "wires_off.png",
+ "wires_off.png",
+ "wires_vertical_off.png",
+ "wires_vertical_off.png",
+ "wires_bump_off.png",
+ "wires_bump_off.png",
+ },
+ paramtype = "light",
+ paramtype2 = "facedir",
+ selection_box = {
+ type = "fixed",
+ fixed = { -3/16, -8/16, -8/16, 3/16, 2/16, 8/16 }
+ },
+ node_box = {
+ type = "fixed",
+ fixed = rcvboxes
+ },
groups = {dig_immediate = 3, mesecon = 3},
drop = "mesecons:wire_00000000_off",
})
diff --git a/mesecons_textures/textures/wires_off.png b/mesecons_textures/textures/wires_off.png
index 01c3fd8..757d339 100644
--- a/mesecons_textures/textures/wires_off.png
+++ b/mesecons_textures/textures/wires_off.png
Binary files differ
diff --git a/mesecons_textures/textures/wires_on.png b/mesecons_textures/textures/wires_on.png
index 8ea4a80..57bb82d 100644
--- a/mesecons_textures/textures/wires_on.png
+++ b/mesecons_textures/textures/wires_on.png
Binary files differ
diff --git a/mesecons_textures/textures/wires_vertical_off.png b/mesecons_textures/textures/wires_vertical_off.png
index bd2c9f7..ba8d472 100644
--- a/mesecons_textures/textures/wires_vertical_off.png
+++ b/mesecons_textures/textures/wires_vertical_off.png
Binary files differ
diff --git a/mesecons_textures/textures/wires_vertical_on.png b/mesecons_textures/textures/wires_vertical_on.png
index a458f8f..172fa65 100644
--- a/mesecons_textures/textures/wires_vertical_on.png
+++ b/mesecons_textures/textures/wires_vertical_on.png
Binary files differ