From 34fa8a116702864f295f8858cfbd61dc4085bb3b Mon Sep 17 00:00:00 2001 From: Andres Eduardo Montoya Cruz <> Date: Fri, 21 Dec 2012 20:24:43 -0500 Subject: now the insulated wires change their color when they are turn on --- mesecons_extrawires/crossing.lua | 2 +- mesecons_extrawires/tjunction.lua | 12 ++++++------ mesecons_insulated/init.lua | 16 ++++++++-------- .../textures/jeija_insulated_wire_sides.png | Bin 200 -> 0 bytes .../textures/jeija_insulated_wire_sides_off.png | Bin 0 -> 200 bytes .../textures/jeija_insulated_wire_sides_on.png | Bin 0 -> 169 bytes 6 files changed, 15 insertions(+), 15 deletions(-) delete mode 100644 mesecons_textures/textures/jeija_insulated_wire_sides.png create mode 100644 mesecons_textures/textures/jeija_insulated_wire_sides_off.png create mode 100644 mesecons_textures/textures/jeija_insulated_wire_sides_on.png diff --git a/mesecons_extrawires/crossing.lua b/mesecons_extrawires/crossing.lua index 2b35af1..9b381bf 100644 --- a/mesecons_extrawires/crossing.lua +++ b/mesecons_extrawires/crossing.lua @@ -6,7 +6,7 @@ end minetest.register_node("mesecons_extrawires:crossing_on", { drawtype = "nodebox", - tiles = {"jeija_insulated_wire_sides.png"}, + tiles = {"jeija_insulated_wire_sides_on.png"}, paramtype = "light", walkable = false, stack_max = 99, diff --git a/mesecons_extrawires/tjunction.lua b/mesecons_extrawires/tjunction.lua index cb16cfb..aa100f5 100644 --- a/mesecons_extrawires/tjunction.lua +++ b/mesecons_extrawires/tjunction.lua @@ -28,11 +28,11 @@ end minetest.register_node("mesecons_extrawires:tjunction_on", { drawtype = "nodebox", tiles = { - "jeija_insulated_wire_sides.png", - "jeija_insulated_wire_sides.png", + "jeija_insulated_wire_sides_on.png", + "jeija_insulated_wire_sides_on.png", "jeija_insulated_wire_ends_on.png", "jeija_insulated_wire_ends_on.png", - "jeija_insulated_wire_sides.png", + "jeija_insulated_wire_sides_on.png", "jeija_insulated_wire_ends_on.png" }, paramtype = "light", @@ -55,11 +55,11 @@ minetest.register_node("mesecons_extrawires:tjunction_off", { drawtype = "nodebox", description = "T-junction", tiles = { - "jeija_insulated_wire_sides.png", - "jeija_insulated_wire_sides.png", + "jeija_insulated_wire_sides_off.png", + "jeija_insulated_wire_sides_off.png", "jeija_insulated_wire_ends_off.png", "jeija_insulated_wire_ends_off.png", - "jeija_insulated_wire_sides.png", + "jeija_insulated_wire_sides_off.png", "jeija_insulated_wire_ends_off.png" }, paramtype = "light", diff --git a/mesecons_insulated/init.lua b/mesecons_insulated/init.lua index 8bf75c7..37f64c8 100644 --- a/mesecons_insulated/init.lua +++ b/mesecons_insulated/init.lua @@ -11,12 +11,12 @@ minetest.register_node("mesecons_insulated:insulated_on", { drawtype = "nodebox", description = "insulated mesecons", tiles = { - "jeija_insulated_wire_sides.png", - "jeija_insulated_wire_sides.png", + "jeija_insulated_wire_sides_on.png", + "jeija_insulated_wire_sides_on.png", "jeija_insulated_wire_ends_on.png", "jeija_insulated_wire_ends_on.png", - "jeija_insulated_wire_sides.png", - "jeija_insulated_wire_sides.png" + "jeija_insulated_wire_sides_on.png", + "jeija_insulated_wire_sides_on.png" }, paramtype = "light", paramtype2 = "facedir", @@ -43,12 +43,12 @@ minetest.register_node("mesecons_insulated:insulated_off", { drawtype = "nodebox", description = "insulated mesecons", tiles = { - "jeija_insulated_wire_sides.png", - "jeija_insulated_wire_sides.png", + "jeija_insulated_wire_sides_off.png", + "jeija_insulated_wire_sides_off.png", "jeija_insulated_wire_ends_off.png", "jeija_insulated_wire_ends_off.png", - "jeija_insulated_wire_sides.png", - "jeija_insulated_wire_sides.png" + "jeija_insulated_wire_sides_off.png", + "jeija_insulated_wire_sides_off.png" }, paramtype = "light", paramtype2 = "facedir", diff --git a/mesecons_textures/textures/jeija_insulated_wire_sides.png b/mesecons_textures/textures/jeija_insulated_wire_sides.png deleted file mode 100644 index db33f14..0000000 Binary files a/mesecons_textures/textures/jeija_insulated_wire_sides.png and /dev/null differ diff --git a/mesecons_textures/textures/jeija_insulated_wire_sides_off.png b/mesecons_textures/textures/jeija_insulated_wire_sides_off.png new file mode 100644 index 0000000..db33f14 Binary files /dev/null and b/mesecons_textures/textures/jeija_insulated_wire_sides_off.png differ diff --git a/mesecons_textures/textures/jeija_insulated_wire_sides_on.png b/mesecons_textures/textures/jeija_insulated_wire_sides_on.png new file mode 100644 index 0000000..f76e9a8 Binary files /dev/null and b/mesecons_textures/textures/jeija_insulated_wire_sides_on.png differ -- cgit v1.2.3 From 6fab716f3e05140981259c084bcf8e075721d938 Mon Sep 17 00:00:00 2001 From: Anthony Date: Fri, 21 Dec 2012 20:46:57 -0500 Subject: Fix up piston retraction. The node property is_sticky_piston was applied to piston_up_normal rather than piston_up_sticky. --- mesecons_pistons/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesecons_pistons/init.lua b/mesecons_pistons/init.lua index fb7375b..47956cc 100644 --- a/mesecons_pistons/init.lua +++ b/mesecons_pistons/init.lua @@ -294,7 +294,6 @@ minetest.register_node("mesecons_pistons:piston_up_normal", { groups = {cracky=3, mesecon=2}, after_destruct = destruct, on_timer = timer, - is_sticky_piston = true, mesecons = {effector={ action_change = update }}, @@ -306,6 +305,7 @@ minetest.register_node("mesecons_pistons:piston_up_sticky", { groups = {cracky=3, mesecon=2}, after_destruct = destruct, on_timer = timer, + is_sticky_piston = true, mesecons = {effector={ action_change = update }}, -- cgit v1.2.3