diff --git a/mesecons_gates/textures/jeija_gate_off.png b/mesecons/textures/jeija_gate_off.png similarity index 100% rename from mesecons_gates/textures/jeija_gate_off.png rename to mesecons/textures/jeija_gate_off.png diff --git a/mesecons_gates/textures/jeija_gate_on.png b/mesecons/textures/jeija_gate_on.png similarity index 100% rename from mesecons_gates/textures/jeija_gate_on.png rename to mesecons/textures/jeija_gate_on.png diff --git a/mesecons_gates/textures/jeija_gate_side.png b/mesecons/textures/jeija_gate_side.png similarity index 100% rename from mesecons_gates/textures/jeija_gate_side.png rename to mesecons/textures/jeija_gate_side.png diff --git a/mesecons_delayer/init.lua b/mesecons_delayer/init.lua index 7607bff7..98ec48f0 100644 --- a/mesecons_delayer/init.lua +++ b/mesecons_delayer/init.lua @@ -38,7 +38,10 @@ local def = { }, node_box = { type = "fixed", - fixed = {-0.5, -0.5, -0.5, 0.5, -0.5+(1/16), 0.5} + fixed = { + { -8/16, -8/16, -8/16, 8/16, -7/16, 8/16 }, -- bottom slab + { -6/16, -7/16, -6/16, 6/16, -6/16, 6/16 } + }, }, paramtype = "light", paramtype2 = "facedir", @@ -60,11 +63,16 @@ end local off_state = { description = S("Delayer"), + inventory_image = "jeija_gate_off.png^jeija_delayer.png", + wield_image = "jeija_gate_off.png^jeija_delayer.png", tiles = { - "jeija_microcontroller_bottom.png^mesecons_delayer_off.png^mesecons_delayer_"..tostring(i)..".png", + "jeija_microcontroller_bottom.png^jeija_gate_off.png^jeija_delayer.png^mesecons_delayer_"..tostring(i)..".png", "jeija_microcontroller_bottom.png", + "jeija_gate_side.png", + "jeija_gate_side.png", + "jeija_gate_side.png", + "jeija_gate_side.png", }, - wield_image = "jeija_microcontroller_bottom.png^mesecons_delayer_off.png^mesecons_delayer_1.png", groups = off_groups, on_punch = function(pos, node, puncher) if minetest.is_protected(pos, puncher and puncher:get_player_name() or "") then @@ -98,9 +106,15 @@ minetest.register_node("mesecons_delayer:delayer_off_"..tostring(i), off_state) -- Activated delayer definition defaults local on_state = { description = S("You hacker you"), + inventory_image = "jeija_gate_on.png^jeija_delayer.png", + wield_image = "jeija_gate_on.png^jeija_delayer.png", tiles = { - "jeija_microcontroller_bottom.png^mesecons_delayer_on.png^mesecons_delayer_"..tostring(i)..".png", + "jeija_microcontroller_bottom.png^jeija_gate_on.png^jeija_delayer.png^mesecons_delayer_"..tostring(i)..".png", "jeija_microcontroller_bottom.png", + "jeija_gate_side.png", + "jeija_gate_side.png", + "jeija_gate_side.png", + "jeija_gate_side.png", }, groups = {bendy = 2, snappy = 1, dig_immediate = 2, not_in_creative_inventory = 1}, on_punch = function(pos, node, puncher) diff --git a/mesecons_delayer/textures/jeija_delayer.png b/mesecons_delayer/textures/jeija_delayer.png new file mode 100644 index 00000000..451f1c4d Binary files /dev/null and b/mesecons_delayer/textures/jeija_delayer.png differ diff --git a/mesecons_delayer/textures/mesecons_delayer_1.png b/mesecons_delayer/textures/mesecons_delayer_1.png index f1e49d2d..973d6849 100644 Binary files a/mesecons_delayer/textures/mesecons_delayer_1.png and b/mesecons_delayer/textures/mesecons_delayer_1.png differ diff --git a/mesecons_delayer/textures/mesecons_delayer_2.png b/mesecons_delayer/textures/mesecons_delayer_2.png index 5b52223c..a5f0b9f3 100644 Binary files a/mesecons_delayer/textures/mesecons_delayer_2.png and b/mesecons_delayer/textures/mesecons_delayer_2.png differ diff --git a/mesecons_delayer/textures/mesecons_delayer_3.png b/mesecons_delayer/textures/mesecons_delayer_3.png index a9c017af..c8bf24e5 100644 Binary files a/mesecons_delayer/textures/mesecons_delayer_3.png and b/mesecons_delayer/textures/mesecons_delayer_3.png differ diff --git a/mesecons_delayer/textures/mesecons_delayer_4.png b/mesecons_delayer/textures/mesecons_delayer_4.png index 6c50d260..74a59127 100644 Binary files a/mesecons_delayer/textures/mesecons_delayer_4.png and b/mesecons_delayer/textures/mesecons_delayer_4.png differ diff --git a/mesecons_delayer/textures/mesecons_delayer_off.png b/mesecons_delayer/textures/mesecons_delayer_off.png deleted file mode 100644 index 8c9df5ba..00000000 Binary files a/mesecons_delayer/textures/mesecons_delayer_off.png and /dev/null differ diff --git a/mesecons_delayer/textures/mesecons_delayer_on.png b/mesecons_delayer/textures/mesecons_delayer_on.png deleted file mode 100644 index d25a814b..00000000 Binary files a/mesecons_delayer/textures/mesecons_delayer_on.png and /dev/null differ diff --git a/mesecons_gates/mod.conf b/mesecons_gates/mod.conf index f89c8842..4b6db703 100644 --- a/mesecons_gates/mod.conf +++ b/mesecons_gates/mod.conf @@ -1,2 +1,2 @@ name = mesecons_gates -depends = mesecons, mesecons_gamecompat, mesecons_microcontroller, mesecons_delayer, mesecons_torch, mesecons_materials +depends = mesecons, mesecons_gamecompat, mesecons_microcontroller, mesecons_torch, mesecons_materials