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 similarity index 70% rename from mesecons_delayer/textures/mesecons_delayer_sides.png rename to mesecons_delayer/textures/mesecons_delayer_bottom.png index 3e21e53..2e49d31 100644 Binary files a/mesecons_delayer/textures/mesecons_delayer_sides.png and b/mesecons_delayer/textures/mesecons_delayer_bottom.png 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 Binary files /dev/null and b/mesecons_delayer/textures/mesecons_delayer_ends_off.png 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 Binary files /dev/null and b/mesecons_delayer/textures/mesecons_delayer_ends_on.png 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 Binary files a/mesecons_delayer/textures/mesecons_delayer_off_1.png and b/mesecons_delayer/textures/mesecons_delayer_off_1.png 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 Binary files a/mesecons_delayer/textures/mesecons_delayer_off_2.png and b/mesecons_delayer/textures/mesecons_delayer_off_2.png 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 Binary files a/mesecons_delayer/textures/mesecons_delayer_off_3.png and b/mesecons_delayer/textures/mesecons_delayer_off_3.png 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 Binary files a/mesecons_delayer/textures/mesecons_delayer_off_4.png and b/mesecons_delayer/textures/mesecons_delayer_off_4.png 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 Binary files a/mesecons_delayer/textures/mesecons_delayer_on_1.png and b/mesecons_delayer/textures/mesecons_delayer_on_1.png 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 Binary files a/mesecons_delayer/textures/mesecons_delayer_on_2.png and b/mesecons_delayer/textures/mesecons_delayer_on_2.png 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 Binary files a/mesecons_delayer/textures/mesecons_delayer_on_3.png and b/mesecons_delayer/textures/mesecons_delayer_on_3.png 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 Binary files a/mesecons_delayer/textures/mesecons_delayer_on_4.png and b/mesecons_delayer/textures/mesecons_delayer_on_4.png 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 Binary files /dev/null and b/mesecons_delayer/textures/mesecons_delayer_sides_off.png 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 Binary files /dev/null and b/mesecons_delayer/textures/mesecons_delayer_sides_on.png differ