Skip to content

Commit 7415036

Browse files
DesourJeija
authored andcommittedJan 2, 2017
Make insulated cossover to mesh
This removes the weird "holes" in the isolation of the crossing
1 parent 1bd936a commit 7415036

11 files changed

+21
-66
lines changed
 

‎mesecons_extrawires/crossover.lua

+21-66
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,18 @@ local crossover_states = {
2020

2121
minetest.register_node("mesecons_extrawires:crossover_off", {
2222
description = "Insulated Crossover",
23-
drawtype = "nodebox",
23+
drawtype = "mesh",
24+
mesh = "mesecons_extrawires_crossover.b3d",
2425
tiles = {
25-
"jeija_insulated_wire_crossing_tb_off.png",
26-
"jeija_insulated_wire_crossing_tb_off.png",
26+
"jeija_insulated_wire_ends_off.png",
27+
"jeija_insulated_wire_sides_off.png",
28+
"jeija_insulated_wire_sides_off.png",
2729
"jeija_insulated_wire_ends_off.png"
2830
},
2931
paramtype = "light",
3032
walkable = false,
3133
stack_max = 99,
3234
selection_box = {type="fixed", fixed={-16/32-0.0001, -18/32, -16/32-0.001, 16/32+0.001, -5/32, 16/32+0.001}},
33-
node_box = {
34-
type = "fixed",
35-
fixed = {
36-
{ -16/32-0.001, -17/32, -3/32, 16/32+0.001, -13/32, 3/32 },
37-
{ -3/32, -17/32, -16/32-0.001, 3/32, -13/32, -6/32 },
38-
{ -3/32, -13/32, -9/32, 3/32, -6/32, -6/32 },
39-
{ -3/32, -9/32, -9/32, 3/32, -6/32, 9/32 },
40-
{ -3/32, -13/32, 6/32, 3/32, -6/32, 9/32 },
41-
{ -3/32, -17/32, 6/32, 3/32, -13/32, 16/32+0.001 },
42-
},
43-
},
4435
groups = {dig_immediate=3, mesecon=3},
4536
mesecons = {
4637
conductor = {
@@ -53,30 +44,18 @@ minetest.register_node("mesecons_extrawires:crossover_off", {
5344
minetest.register_node("mesecons_extrawires:crossover_01", {
5445
description = "You hacker you!",
5546
drop = "mesecons_extrawires:crossover_off",
56-
drawtype = "nodebox",
47+
drawtype = "mesh",
48+
mesh = "mesecons_extrawires_crossover.b3d",
5749
tiles = {
58-
"jeija_insulated_wire_crossing_tb_01.png",
59-
"jeija_insulated_wire_crossing_tb_01.png",
60-
"jeija_insulated_wire_ends_01x.png",
61-
"jeija_insulated_wire_ends_01x.png",
62-
"jeija_insulated_wire_ends_01z.png",
63-
"jeija_insulated_wire_ends_01z.png"
50+
"jeija_insulated_wire_ends_on.png",
51+
"jeija_insulated_wire_sides_on.png",
52+
"jeija_insulated_wire_sides_off.png",
53+
"jeija_insulated_wire_ends_off.png"
6454
},
6555
paramtype = "light",
6656
walkable = false,
6757
stack_max = 99,
6858
selection_box = {type="fixed", fixed={-16/32-0.0001, -18/32, -16/32-0.001, 16/32+0.001, -5/32, 16/32+0.001}},
69-
node_box = {
70-
type = "fixed",
71-
fixed = {
72-
{ -16/32-0.001, -17/32, -3/32, 16/32+0.001, -13/32, 3/32 },
73-
{ -3/32, -17/32, -16/32-0.001, 3/32, -13/32, -6/32 },
74-
{ -3/32, -13/32, -9/32, 3/32, -6/32, -6/32 },
75-
{ -3/32, -9/32, -9/32, 3/32, -6/32, 9/32 },
76-
{ -3/32, -13/32, 6/32, 3/32, -6/32, 9/32 },
77-
{ -3/32, -17/32, 6/32, 3/32, -13/32, 16/32+0.001 },
78-
},
79-
},
8059
groups = {dig_immediate=3, mesecon=3, not_in_creative_inventory=1},
8160
mesecons = {
8261
conductor = {
@@ -89,30 +68,18 @@ minetest.register_node("mesecons_extrawires:crossover_01", {
8968
minetest.register_node("mesecons_extrawires:crossover_10", {
9069
description = "You hacker you!",
9170
drop = "mesecons_extrawires:crossover_off",
92-
drawtype = "nodebox",
71+
drawtype = "mesh",
72+
mesh = "mesecons_extrawires_crossover.b3d",
9373
tiles = {
94-
"jeija_insulated_wire_crossing_tb_10.png",
95-
"jeija_insulated_wire_crossing_tb_10.png",
96-
"jeija_insulated_wire_ends_10x.png",
97-
"jeija_insulated_wire_ends_10x.png",
98-
"jeija_insulated_wire_ends_10z.png",
99-
"jeija_insulated_wire_ends_10z.png"
74+
"jeija_insulated_wire_ends_off.png",
75+
"jeija_insulated_wire_sides_off.png",
76+
"jeija_insulated_wire_sides_on.png",
77+
"jeija_insulated_wire_ends_on.png"
10078
},
10179
paramtype = "light",
10280
walkable = false,
10381
stack_max = 99,
10482
selection_box = {type="fixed", fixed={-16/32-0.0001, -18/32, -16/32-0.001, 16/32+0.001, -5/32, 16/32+0.001}},
105-
node_box = {
106-
type = "fixed",
107-
fixed = {
108-
{ -16/32-0.001, -17/32, -3/32, 16/32+0.001, -13/32, 3/32 },
109-
{ -3/32, -17/32, -16/32-0.001, 3/32, -13/32, -6/32 },
110-
{ -3/32, -13/32, -9/32, 3/32, -6/32, -6/32 },
111-
{ -3/32, -9/32, -9/32, 3/32, -6/32, 9/32 },
112-
{ -3/32, -13/32, 6/32, 3/32, -6/32, 9/32 },
113-
{ -3/32, -17/32, 6/32, 3/32, -13/32, 16/32+0.001 },
114-
},
115-
},
11683
groups = {dig_immediate=3, mesecon=3, not_in_creative_inventory=1},
11784
mesecons = {
11885
conductor = {
@@ -125,30 +92,18 @@ minetest.register_node("mesecons_extrawires:crossover_10", {
12592
minetest.register_node("mesecons_extrawires:crossover_on", {
12693
description = "You hacker you!",
12794
drop = "mesecons_extrawires:crossover_off",
128-
drawtype = "nodebox",
95+
drawtype = "mesh",
96+
mesh = "mesecons_extrawires_crossover.b3d",
12997
tiles = {
130-
"jeija_insulated_wire_crossing_tb_on.png",
131-
"jeija_insulated_wire_crossing_tb_on.png",
132-
"jeija_insulated_wire_ends_on.png",
133-
"jeija_insulated_wire_ends_on.png",
13498
"jeija_insulated_wire_ends_on.png",
99+
"jeija_insulated_wire_sides_on.png",
100+
"jeija_insulated_wire_sides_on.png",
135101
"jeija_insulated_wire_ends_on.png"
136102
},
137103
paramtype = "light",
138104
walkable = false,
139105
stack_max = 99,
140106
selection_box = {type="fixed", fixed={-16/32-0.0001, -18/32, -16/32-0.001, 16/32+0.001, -5/32, 16/32+0.001}},
141-
node_box = {
142-
type = "fixed",
143-
fixed = {
144-
{ -16/32-0.001, -17/32, -3/32, 16/32+0.001, -13/32, 3/32 },
145-
{ -3/32, -17/32, -16/32-0.001, 3/32, -13/32, -6/32 },
146-
{ -3/32, -13/32, -9/32, 3/32, -6/32, -6/32 },
147-
{ -3/32, -9/32, -9/32, 3/32, -6/32, 9/32 },
148-
{ -3/32, -13/32, 6/32, 3/32, -6/32, 9/32 },
149-
{ -3/32, -17/32, 6/32, 3/32, -13/32, 16/32+0.001 },
150-
},
151-
},
152107
groups = {dig_immediate=3, mesecon=3, not_in_creative_inventory=1},
153108
mesecons = {
154109
conductor = {
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)
Please sign in to comment.