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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end
local plastic_nodes = {
{node = "plastic_clean", name = S("Plastic Clean"), tiles = {"technic_plastic_clean.png"}},
{node = "plastic_siding_1", name = S("Plastic Siding Block 1"), tiles = {"technic_plastic_siding_1.png"}},
{node = "plastic_siding_2", name = S("Plastic Siding Block 2"), tiles = {"technic_plastic_siding_2.png"}},
{node = "plastic_siding_3", name = S("Plastic Siding Block 3"), tiles = {"technic_plastic_siding_3.png"}},
{node = "plastic_bricks", name = S("Plastic Bricks"), tiles = {"technic_plastic_bricks.png"}},
{node = "plastic_block", name = S("Plastic Block"), tiles = {"technic_plastic_block.png"}},
{node = "plastic_cross", name = S("Plastic Cross"), tiles = {"technic_plastic_cross.png"}},
{node = "plastic_waves", name = S("Plastic Waves"), tiles = {"technic_plastic_waves.png"}},
{node = "plastic_tiles", name = S("Plastic Tiles"), tiles = {"technic_plastic_tiles.png"}},
}
for _,n in pairs(plastic_nodes) do
minetest.register_node (":technic:" .. n.node, {
description = n.name,
drawtype = "normal",
tiles = n.tiles,
drop = "technic:" .. n.node,
groups = {dig_immediate = 2, paintable_plastic_block = 1},
paramtype = "light",
paramtype2 = "colorwallmounted",
palette = "technic_paint_palette.png",
})
end
local thin_nodes = {
{node = "plastic_siding_1", name = S("Plastic Siding 1"), tiles = {"technic_plastic_siding_1.png"}},
{node = "plastic_siding_2", name = S("Plastic Siding 2"), tiles = {"technic_plastic_siding_2.png"}},
{node = "plastic_siding_3", name = S("Plastic Siding 3"), tiles = {"technic_plastic_siding_3.png"}},
}
for _,n in pairs(thin_nodes) do
minetest.register_node (":technic:" .. n.node .. "_thin", {
description = n.name,
drawtype = "nodebox",
tiles = n.tiles,
node_box = {
type = "wallmounted",
wall_bottom = {-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
wall_top = {-0.5, 0.25, -0.5, 0.5, 0.5, 0.5},
wall_side = {-0.5, -0.5, -0.5, -0.25, 0.5, 0.5},
},
drop = "technic:" .. n.node .. "_thin",
groups = {dig_immediate = 2, paintable_plastic_block = 1},
paramtype = "light",
paramtype2 = "colorwallmounted",
palette = "technic_paint_palette.png",
})
end
minetest.register_craft({
output = "technic:plastic_clean",
recipe = {
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting"},
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting"},
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting"}
},
})
minetest.register_craft({
output = "technic:plastic_siding_1_thin 2",
recipe = {
{"technic:plastic_clean"},
},
})
minetest.register_craft({
output = "technic:plastic_siding_1",
recipe = {
{"technic:plastic_siding_1_thin", "technic:plastic_siding_1_thin"},
},
})
minetest.register_craft({
output = "technic:plastic_siding_2_thin 4",
recipe = {
{ "technic:plastic_clean", "", ""},
{ "technic:plastic_clean", "", ""},
},
})
minetest.register_craft({
output = "technic:plastic_siding_2",
recipe = {
{"technic:plastic_siding_2_thin", "technic:plastic_siding_2_thin"},
},
})
minetest.register_craft({
output = "technic:plastic_siding_3_thin 6",
recipe = {
{ "technic:plastic_clean", "", ""},
{ "technic:plastic_clean", "", ""},
{ "technic:plastic_clean", "", ""},
},
})
minetest.register_craft({
output = "technic:plastic_siding_3",
recipe = {
{"technic:plastic_siding_3_thin", "technic:plastic_siding_3_thin"},
},
})
minetest.register_craft({
output = "technic:plastic_bricks 4",
recipe = {
{ "technic:plastic_clean", "technic:plastic_clean"},
{ "technic:plastic_clean", "technic:plastic_clean"},
},
})
minetest.register_craft({
output = "technic:plastic_block 9",
recipe = {
{ "technic:plastic_clean", "technic:plastic_clean", "technic:plastic_clean"},
{ "technic:plastic_clean", "technic:plastic_clean", "technic:plastic_clean"},
{ "technic:plastic_clean", "technic:plastic_clean", "technic:plastic_clean"},
},
})
|