Skip to content

Commit 0a4651c

Browse files
authored
Changes to torch and delayer appearance (#669)
* plantlike, x-shaped torch * removed separate LEDs for luacontroller since already contained in base mod it depends on * changed delayer textures to be more consistent with other gates * Reduced the amount of textures needed for pistons with texture modifiers. Will continue to work fine with all existing texturepacks. No change in graphics. * use luacontroller_LED instead of microcontroller_LED to prevent breaking the digistuff mod which inherits it. I hope no mods inherit microcontroller LED.
1 parent a82bac7 commit 0a4651c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+53
-60
lines changed

mesecons_delayer/init.lua

+23-30
Original file line numberDiff line numberDiff line change
@@ -27,32 +27,21 @@ local delaytime = { 0.1, 0.3, 0.5, 1.0 }
2727

2828
for i = 1, 4 do
2929

30-
local boxes = {
31-
{ -6/16, -8/16, -6/16, 6/16, -7/16, 6/16 }, -- the main slab
32-
33-
{ -2/16, -7/16, -4/16, 2/16, -26/64, -3/16 }, -- the jeweled "on" indicator
34-
{ -3/16, -7/16, -3/16, 3/16, -26/64, -2/16 },
35-
{ -4/16, -7/16, -2/16, 4/16, -26/64, 2/16 },
36-
{ -3/16, -7/16, 2/16, 3/16, -26/64, 3/16 },
37-
{ -2/16, -7/16, 3/16, 2/16, -26/64, 4/16 },
38-
39-
{ -6/16, -7/16, -6/16, -4/16, -27/64, -4/16 }, -- the timer indicator
40-
{ -8/16, -8/16, -1/16, -6/16, -7/16, 1/16 }, -- the two wire stubs
41-
{ 6/16, -8/16, -1/16, 8/16, -7/16, 1/16 }
42-
}
43-
4430
-- Delayer definition defaults
4531
local def = {
4632
drawtype = "nodebox",
4733
use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or nil,
4834
walkable = true,
4935
selection_box = {
5036
type = "fixed",
51-
fixed = { -8/16, -8/16, -8/16, 8/16, -6/16, 8/16 },
37+
fixed = { -8/16, -8/16, -8/16, 8/16, -7/16, 8/16 },
5238
},
5339
node_box = {
5440
type = "fixed",
55-
fixed = boxes
41+
fixed = {
42+
{ -8/16, -8/16, -8/16, 8/16, -7/16, 8/16 }, -- bottom slab
43+
{ -6/16, -7/16, -6/16, 6/16, -6/16, 6/16 }
44+
},
5645
},
5746
paramtype = "light",
5847
paramtype2 = "facedir",
@@ -74,16 +63,17 @@ end
7463

7564
local off_state = {
7665
description = S("Delayer"),
66+
inventory_image = "jeija_gate_off.png^jeija_delayer.png",
67+
wield_image = "jeija_gate_off.png^jeija_delayer.png",
7768
tiles = {
78-
"mesecons_delayer_off_"..tostring(i)..".png",
79-
"mesecons_delayer_bottom.png",
80-
"mesecons_delayer_ends_off.png",
81-
"mesecons_delayer_ends_off.png",
82-
"mesecons_delayer_sides_off.png",
83-
"mesecons_delayer_sides_off.png"
69+
"jeija_microcontroller_bottom.png^jeija_gate_output_off.png^jeija_gate_off.png^"..
70+
"jeija_delayer.png^mesecons_delayer_"..tostring(i)..".png",
71+
"jeija_microcontroller_bottom.png^jeija_gate_output_off.png",
72+
"jeija_gate_side.png^jeija_gate_side_output_off.png",
73+
"jeija_gate_side.png",
74+
"jeija_gate_side.png",
75+
"jeija_gate_side.png",
8476
},
85-
inventory_image = "mesecons_delayer_off_1.png",
86-
wield_image = "mesecons_delayer_off_1.png",
8777
groups = off_groups,
8878
on_punch = function(pos, node, puncher)
8979
if minetest.is_protected(pos, puncher and puncher:get_player_name() or "") then
@@ -117,13 +107,16 @@ minetest.register_node("mesecons_delayer:delayer_off_"..tostring(i), off_state)
117107
-- Activated delayer definition defaults
118108
local on_state = {
119109
description = S("You hacker you"),
110+
inventory_image = "jeija_gate_on.png^jeija_delayer.png",
111+
wield_image = "jeija_gate_on.png^jeija_delayer.png",
120112
tiles = {
121-
"mesecons_delayer_on_"..tostring(i)..".png",
122-
"mesecons_delayer_bottom.png",
123-
"mesecons_delayer_ends_on.png",
124-
"mesecons_delayer_ends_on.png",
125-
"mesecons_delayer_sides_on.png",
126-
"mesecons_delayer_sides_on.png"
113+
"jeija_microcontroller_bottom.png^jeija_gate_output_on.png^jeija_gate_on.png^"..
114+
"jeija_delayer.png^mesecons_delayer_"..tostring(i)..".png",
115+
"jeija_microcontroller_bottom.png^jeija_gate_output_on.png",
116+
"jeija_gate_side.png^jeija_gate_side_output_on.png",
117+
"jeija_gate_side.png",
118+
"jeija_gate_side.png",
119+
"jeija_gate_side.png",
127120
},
128121
groups = {bendy = 2, snappy = 1, dig_immediate = 2, not_in_creative_inventory = 1},
129122
on_punch = function(pos, node, puncher)
149 Bytes
338 Bytes
337 Bytes
339 Bytes
334 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
-448 Bytes
Binary file not shown.
-449 Bytes
Binary file not shown.
-448 Bytes
Binary file not shown.
-446 Bytes
Binary file not shown.
-541 Bytes
Binary file not shown.
-541 Bytes
Binary file not shown.
-541 Bytes
Binary file not shown.
-538 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.

mesecons_fpga/init.lua

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ plg.register_nodes = function(template)
2020

2121
-- build top texture string
2222
local texture = "jeija_fpga_top.png"
23-
if a == 1 then texture = texture .. "^jeija_microcontroller_LED_A.png" end
24-
if b == 1 then texture = texture .. "^jeija_microcontroller_LED_B.png" end
25-
if c == 1 then texture = texture .. "^jeija_microcontroller_LED_C.png" end
26-
if d == 1 then texture = texture .. "^jeija_microcontroller_LED_D.png" end
23+
if a == 1 then texture = texture .. "^jeija_luacontroller_LED_A.png" end
24+
if b == 1 then texture = texture .. "^jeija_luacontroller_LED_B.png" end
25+
if c == 1 then texture = texture .. "^jeija_luacontroller_LED_C.png" end
26+
if d == 1 then texture = texture .. "^jeija_luacontroller_LED_D.png" end
2727
ndef.tiles[1] = texture
2828
ndef.inventory_image = texture
2929

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

mesecons_microcontroller/init.lua

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ for d = 0, 1 do
1212
local nodename = "mesecons_microcontroller:microcontroller"..tostring(d)..tostring(c)..tostring(b)..tostring(a)
1313
local top = "jeija_microcontroller_top.png"
1414
if tostring(a) == "1" then
15-
top = top.."^jeija_microcontroller_LED_A.png"
15+
top = top.."^jeija_luacontroller_LED_A.png"
1616
end
1717
if tostring(b) == "1" then
18-
top = top.."^jeija_microcontroller_LED_B.png"
18+
top = top.."^jeija_luacontroller_LED_B.png"
1919
end
2020
if tostring(c) == "1" then
21-
top = top.."^jeija_microcontroller_LED_C.png"
21+
top = top.."^jeija_luacontroller_LED_C.png"
2222
end
2323
if tostring(d) == "1" then
24-
top = top.."^jeija_microcontroller_LED_D.png"
24+
top = top.."^jeija_luacontroller_LED_D.png"
2525
end
2626
local groups
2727
if tostring(d)..tostring(c)..tostring(b)..tostring(a) ~= "0000" then

mesecons_pistons/init.lua

+18-18
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,9 @@ minetest.register_node("mesecons_pistons:piston_normal_off", {
270270
description = S("Piston"),
271271
tiles = {
272272
"mesecons_piston_top.png",
273-
"mesecons_piston_bottom.png",
274-
"mesecons_piston_left.png",
275-
"mesecons_piston_right.png",
273+
"mesecons_piston_top.png^[transform2",
274+
"mesecons_piston_top.png^[transform3",
275+
"mesecons_piston_top.png^[transform1",
276276
"mesecons_piston_back.png",
277277
"mesecons_piston_pusher_front.png"
278278
},
@@ -296,9 +296,9 @@ minetest.register_node("mesecons_pistons:piston_normal_on", {
296296
drawtype = "nodebox",
297297
tiles = {
298298
"mesecons_piston_top.png",
299-
"mesecons_piston_bottom.png",
300-
"mesecons_piston_left.png",
301-
"mesecons_piston_right.png",
299+
"mesecons_piston_top.png^[transform2",
300+
"mesecons_piston_top.png^[transform3",
301+
"mesecons_piston_top.png^[transform1",
302302
"mesecons_piston_back.png",
303303
"mesecons_piston_on_front.png"
304304
},
@@ -325,9 +325,9 @@ minetest.register_node("mesecons_pistons:piston_pusher_normal", {
325325
drawtype = "nodebox",
326326
tiles = {
327327
"mesecons_piston_pusher_top.png",
328-
"mesecons_piston_pusher_bottom.png",
329-
"mesecons_piston_pusher_left.png",
330-
"mesecons_piston_pusher_right.png",
328+
"mesecons_piston_pusher_top.png^[transform2",
329+
"mesecons_piston_pusher_top.png^[transform3",
330+
"mesecons_piston_pusher_top.png^[transform1",
331331
"mesecons_piston_pusher_back.png",
332332
"mesecons_piston_pusher_front.png"
333333
},
@@ -349,9 +349,9 @@ minetest.register_node("mesecons_pistons:piston_sticky_off", {
349349
description = S("Sticky Piston"),
350350
tiles = {
351351
"mesecons_piston_top.png",
352-
"mesecons_piston_bottom.png",
353-
"mesecons_piston_left.png",
354-
"mesecons_piston_right.png",
352+
"mesecons_piston_top.png^[transform2",
353+
"mesecons_piston_top.png^[transform3",
354+
"mesecons_piston_top.png^[transform1",
355355
"mesecons_piston_back.png",
356356
"mesecons_piston_pusher_front_sticky.png"
357357
},
@@ -375,9 +375,9 @@ minetest.register_node("mesecons_pistons:piston_sticky_on", {
375375
drawtype = "nodebox",
376376
tiles = {
377377
"mesecons_piston_top.png",
378-
"mesecons_piston_bottom.png",
379-
"mesecons_piston_left.png",
380-
"mesecons_piston_right.png",
378+
"mesecons_piston_top.png^[transform2",
379+
"mesecons_piston_top.png^[transform3",
380+
"mesecons_piston_top.png^[transform1",
381381
"mesecons_piston_back.png",
382382
"mesecons_piston_on_front.png"
383383
},
@@ -404,9 +404,9 @@ minetest.register_node("mesecons_pistons:piston_pusher_sticky", {
404404
drawtype = "nodebox",
405405
tiles = {
406406
"mesecons_piston_pusher_top.png",
407-
"mesecons_piston_pusher_bottom.png",
408-
"mesecons_piston_pusher_left.png",
409-
"mesecons_piston_pusher_right.png",
407+
"mesecons_piston_pusher_top.png^[transform2",
408+
"mesecons_piston_pusher_top.png^[transform3",
409+
"mesecons_piston_pusher_top.png^[transform1",
410410
"mesecons_piston_pusher_back.png",
411411
"mesecons_piston_pusher_front_sticky.png"
412412
},
-738 Bytes
Binary file not shown.
-740 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-733 Bytes
Binary file not shown.

mesecons_torch/init.lua

+4-4
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ local torch_selectionbox =
5656
}
5757

5858
minetest.register_node("mesecons_torch:mesecon_torch_off", {
59-
drawtype = "torchlike",
60-
tiles = {"jeija_torches_off.png", "jeija_torches_off_ceiling.png", "jeija_torches_off_side.png"},
59+
drawtype = "plantlike",
60+
tiles = {"jeija_torches_off.png"},
6161
inventory_image = "jeija_torches_off.png",
6262
paramtype = "light",
6363
is_ground_content = false,
@@ -75,8 +75,8 @@ minetest.register_node("mesecons_torch:mesecon_torch_off", {
7575
})
7676

7777
minetest.register_node("mesecons_torch:mesecon_torch_on", {
78-
drawtype = "torchlike",
79-
tiles = {"jeija_torches_on.png", "jeija_torches_on_ceiling.png", "jeija_torches_on_side.png"},
78+
drawtype = "plantlike",
79+
tiles = {"jeija_torches_on.png"},
8080
inventory_image = "jeija_torches_on.png",
8181
wield_image = "jeija_torches_on.png",
8282
paramtype = "light",
Binary file not shown.
-142 Bytes
Binary file not shown.
-147 Bytes
Binary file not shown.
-139 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)