summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2012-08-11 20:20:50 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2012-08-11 20:20:50 -0400
commit83ac20018c7f4226723b4b4660db742c4a364781 (patch)
treebafb9c3e1e6c620e6c0d024629d7ca0b44ee2db8
parent8f0d765ffe1449f3fada57a5aed2c4958b6d80d4 (diff)
downloadmesecons-83ac20018c7f4226723b4b4660db742c4a364781.tar
mesecons-83ac20018c7f4226723b4b4660db742c4a364781.tar.gz
mesecons-83ac20018c7f4226723b4b4660db742c4a364781.tar.bz2
mesecons-83ac20018c7f4226723b4b4660db742c4a364781.tar.xz
mesecons-83ac20018c7f4226723b4b4660db742c4a364781.zip
Improvements to mesecons delayers nodeboxes and textures
-rw-r--r--mesecons_delayer/init.lua32
-rw-r--r--mesecons_delayer/textures/mesecons_delayer_bottom.png (renamed from mesecons_delayer/textures/mesecons_delayer_sides.png)bin438 -> 438 bytes
-rw-r--r--mesecons_delayer/textures/mesecons_delayer_ends_off.pngbin0 -> 226 bytes
-rw-r--r--mesecons_delayer/textures/mesecons_delayer_ends_on.pngbin0 -> 228 bytes
-rw-r--r--mesecons_delayer/textures/mesecons_delayer_off_1.pngbin707 -> 562 bytes
-rw-r--r--mesecons_delayer/textures/mesecons_delayer_off_2.pngbin709 -> 558 bytes
-rw-r--r--mesecons_delayer/textures/mesecons_delayer_off_3.pngbin710 -> 561 bytes
-rw-r--r--mesecons_delayer/textures/mesecons_delayer_off_4.pngbin702 -> 556 bytes
-rw-r--r--mesecons_delayer/textures/mesecons_delayer_on_1.pngbin729 -> 635 bytes
-rw-r--r--mesecons_delayer/textures/mesecons_delayer_on_2.pngbin724 -> 632 bytes
-rw-r--r--mesecons_delayer/textures/mesecons_delayer_on_3.pngbin729 -> 635 bytes
-rw-r--r--mesecons_delayer/textures/mesecons_delayer_on_4.pngbin723 -> 630 bytes
-rw-r--r--mesecons_delayer/textures/mesecons_delayer_sides_off.pngbin0 -> 229 bytes
-rw-r--r--mesecons_delayer/textures/mesecons_delayer_sides_on.pngbin0 -> 234 bytes
14 files changed, 26 insertions, 6 deletions
diff --git a/mesecons_delayer/init.lua b/mesecons_delayer/init.lua
index cd1cd92..276151d 100644
--- a/mesecons_delayer/init.lua
+++ b/mesecons_delayer/init.lua
@@ -6,23 +6,39 @@ else
groups = {bendy=2,snappy=1,dig_immediate=2, not_in_creative_inventory=1, mesecon = 2}
end
+boxes = {{ -6/16, -8/16, -6/16, 6/16, -7/16, 6/16 }, -- the main slab
+
+ { -2/16, -7/16, -4/16, 2/16, -26/64, -3/16 }, -- the jeweled "on" indicator
+ { -3/16, -7/16, -3/16, 3/16, -26/64, -2/16 },
+ { -4/16, -7/16, -2/16, 4/16, -26/64, 2/16 },
+ { -3/16, -7/16, 2/16, 3/16, -26/64, 3/16 },
+ { -2/16, -7/16, 3/16, 2/16, -26/64, 4/16 },
+
+ { -6/16, -7/16, -6/16, -4/16, -27/64, -4/16 }, -- the timer indicator
+ { -8/16, -8/16, -1/16, -6/16, -7/16, 1/16 }, -- the two wire stubs
+ { 6/16, -8/16, -1/16, 8/16, -7/16, 1/16 }}
+
minetest.register_node("mesecons_delayer:delayer_off_"..tostring(i), {
description = "Delayer",
drawtype = "nodebox",
tiles = {
"mesecons_delayer_off_"..tostring(i)..".png",
- "mesecons_delayer_sides.png"
+ "mesecons_delayer_sides_bottom.png",
+ "mesecons_delayer_ends_off.png",
+ "mesecons_delayer_ends_off.png",
+ "mesecons_delayer_sides_off.png",
+ "mesecons_delayer_sides_off.png"
},
inventory_image = "mesecons_delayer_off_1.png",
wield_image = "mesecons_delayer_off_1.png",
walkable = true,
selection_box = {
type = "fixed",
- fixed = { -8/16, -8/16, -8/16, 8/16, -7/16, 8/16 },
+ fixed = { -8/16, -8/16, -8/16, 8/16, -6/16, 8/16 },
},
node_box = {
type = "fixed",
- fixed = { -8/16, -8/16, -8/16, 8/16, -7/16, 8/16 },
+ fixed = boxes
},
groups = groups,
paramtype = "light",
@@ -38,16 +54,20 @@ minetest.register_node("mesecons_delayer:delayer_on_"..tostring(i), {
drawtype = "nodebox",
tiles = {
"mesecons_delayer_on_"..tostring(i)..".png",
- "mesecons_delayer_sides.png"
+ "mesecons_delayer_bottom.png",
+ "mesecons_delayer_ends_on.png",
+ "mesecons_delayer_ends_on.png",
+ "mesecons_delayer_sides_on.png",
+ "mesecons_delayer_sides_on.png"
},
walkable = true,
selection_box = {
type = "fixed",
- fixed = { -8/16, -8/16, -8/16, 8/16, -7/16, 8/16 },
+ fixed = { -8/16, -8/16, -8/16, 8/16, -6/16, 8/16 },
},
node_box = {
type = "fixed",
- fixed = { -8/16, -8/16, -8/16, 8/16, -7/16, 8/16 },
+ fixed = boxes
},
groups = {bendy=2,snappy=1,dig_immediate=2,not_in_creative_inventory=1, mesecon = 2},
paramtype = "light",
diff --git a/mesecons_delayer/textures/mesecons_delayer_sides.png b/mesecons_delayer/textures/mesecons_delayer_bottom.png
index 3e21e53..2e49d31 100644
--- a/mesecons_delayer/textures/mesecons_delayer_sides.png
+++ b/mesecons_delayer/textures/mesecons_delayer_bottom.png
Binary files differ
diff --git a/mesecons_delayer/textures/mesecons_delayer_ends_off.png b/mesecons_delayer/textures/mesecons_delayer_ends_off.png
new file mode 100644
index 0000000..0242deb
--- /dev/null
+++ b/mesecons_delayer/textures/mesecons_delayer_ends_off.png
Binary files differ
diff --git a/mesecons_delayer/textures/mesecons_delayer_ends_on.png b/mesecons_delayer/textures/mesecons_delayer_ends_on.png
new file mode 100644
index 0000000..19ae0cb
--- /dev/null
+++ b/mesecons_delayer/textures/mesecons_delayer_ends_on.png
Binary files differ
diff --git a/mesecons_delayer/textures/mesecons_delayer_off_1.png b/mesecons_delayer/textures/mesecons_delayer_off_1.png
index 42344b2..7372b37 100644
--- a/mesecons_delayer/textures/mesecons_delayer_off_1.png
+++ b/mesecons_delayer/textures/mesecons_delayer_off_1.png
Binary files differ
diff --git a/mesecons_delayer/textures/mesecons_delayer_off_2.png b/mesecons_delayer/textures/mesecons_delayer_off_2.png
index e560a55..e34f0ac 100644
--- a/mesecons_delayer/textures/mesecons_delayer_off_2.png
+++ b/mesecons_delayer/textures/mesecons_delayer_off_2.png
Binary files differ
diff --git a/mesecons_delayer/textures/mesecons_delayer_off_3.png b/mesecons_delayer/textures/mesecons_delayer_off_3.png
index 01a7503..091adbc 100644
--- a/mesecons_delayer/textures/mesecons_delayer_off_3.png
+++ b/mesecons_delayer/textures/mesecons_delayer_off_3.png
Binary files differ
diff --git a/mesecons_delayer/textures/mesecons_delayer_off_4.png b/mesecons_delayer/textures/mesecons_delayer_off_4.png
index deed284..7ecc9b6 100644
--- a/mesecons_delayer/textures/mesecons_delayer_off_4.png
+++ b/mesecons_delayer/textures/mesecons_delayer_off_4.png
Binary files differ
diff --git a/mesecons_delayer/textures/mesecons_delayer_on_1.png b/mesecons_delayer/textures/mesecons_delayer_on_1.png
index cb1b364..61f52f2 100644
--- a/mesecons_delayer/textures/mesecons_delayer_on_1.png
+++ b/mesecons_delayer/textures/mesecons_delayer_on_1.png
Binary files differ
diff --git a/mesecons_delayer/textures/mesecons_delayer_on_2.png b/mesecons_delayer/textures/mesecons_delayer_on_2.png
index 2174891..7bd363f 100644
--- a/mesecons_delayer/textures/mesecons_delayer_on_2.png
+++ b/mesecons_delayer/textures/mesecons_delayer_on_2.png
Binary files differ
diff --git a/mesecons_delayer/textures/mesecons_delayer_on_3.png b/mesecons_delayer/textures/mesecons_delayer_on_3.png
index 5602df0..b93f725 100644
--- a/mesecons_delayer/textures/mesecons_delayer_on_3.png
+++ b/mesecons_delayer/textures/mesecons_delayer_on_3.png
Binary files differ
diff --git a/mesecons_delayer/textures/mesecons_delayer_on_4.png b/mesecons_delayer/textures/mesecons_delayer_on_4.png
index 2a14de7..ca90a1e 100644
--- a/mesecons_delayer/textures/mesecons_delayer_on_4.png
+++ b/mesecons_delayer/textures/mesecons_delayer_on_4.png
Binary files differ
diff --git a/mesecons_delayer/textures/mesecons_delayer_sides_off.png b/mesecons_delayer/textures/mesecons_delayer_sides_off.png
new file mode 100644
index 0000000..79f3d59
--- /dev/null
+++ b/mesecons_delayer/textures/mesecons_delayer_sides_off.png
Binary files differ
diff --git a/mesecons_delayer/textures/mesecons_delayer_sides_on.png b/mesecons_delayer/textures/mesecons_delayer_sides_on.png
new file mode 100644
index 0000000..1c8edaa
--- /dev/null
+++ b/mesecons_delayer/textures/mesecons_delayer_sides_on.png
Binary files differ