1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
--CRAFTING
-- Blocks
minetest.register_craft({
output = 'trainblocks:subwayblock',
recipe = {
{'', 'dye:blue', ''},
{'dye:white', 'default:glass', 'dye:white'},
{'', 'dye:blue', ''},
}
})
minetest.register_craft({
output = 'trainblocks:sbahnblock',
recipe = {
{'', 'dye:orange', ''},
{'dye:white', 'default:glass', 'dye:white'},
{'', 'dye:orange', ''},
}
})
--lineblocks from 1 to 10
local dyes1 = {"blue", "red", "violet", "green", "orange", "yellow", "gray", "magenta", "cyan", "black"}
local dyes2 = {"white", "white", "white", "white", "white", "black", "white", "white", "white", "white"}
for count = 1, 10, 1 do
minetest.register_craft({
output = "trainblocks:line" .. count .. " 4",
recipe = {
{'', "dye:" .. dyes1[count] , ''},
{"dye:" .. dyes2[count], 'default:glass', ''},
{'', '', ''},
}
})
end
--subway direction signs
minetest.register_craft({
output = 'trainblocks:subwaysignL 2',
recipe = {
{'', '', ''},
{'dye:white', 'default:glass', 'dye:blue'},
{'', '', ''},
}
})
minetest.register_craft({
output = 'trainblocks:subwaysignR 2',
recipe = {
{'', '', ''},
{'dye:blue', 'default:glass', 'dye:white'},
{'', '', ''},
}
})
--sbahn direction signs
minetest.register_craft({
output = 'trainblocks:sbahnsignL 2',
recipe = {
{'', '', ''},
{'dye:white', 'default:glass', 'dye:orange'},
{'', '', ''},
}
})
minetest.register_craft({
output = 'trainblocks:sbahnsignR 2',
recipe = {
{'', '', ''},
{'dye:blue', 'default:glass', 'dye:orange'},
{'', '', ''},
}
})
|