forked from Thomas--S/streets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccessories.lua
125 lines (118 loc) · 4.49 KB
/
accessories.lua
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
minetest.register_node("streets:guardrail", {
description = "Guardrail",
paramtype = "light",
drawtype = "nodebox",
tiles = { "streets_guardrail.png" },
sunlight_propagates = true,
groups = { cracky = 1, wall = 1 },
node_box = {
type = "connected",
fixed = {
{ -0.1, -0.5, -0.1, 0.1, 0.5, 0.1 },
},
connect_front = {
{ 0, -0.1875, -0.5, 0, 0.4375, 0 },
{ -0.0625, 0.1875, -0.5, 0.0625, 0.3125, 0 },
{ -0.0625, -0.0625, -0.5, 0.0625, 0.0625, 0 },
}, -- z-
connect_back = {
{ 0, -0.1875, 0, 0, 0.4375, 0.5 },
{ -0.0625, 0.1875, 0, 0.0625, 0.3125, 0.5 },
{ -0.0625, -0.0625, 0, 0.0625, 0.0625, 0.5 },
}, -- z+
connect_left = {
{ -0.5, -0.1875, 0, 0, 0.4375, 0 },
{ -0.5, 0.1875, -0.0625, 0, 0.3125, 0.0625 },
{ -0.5, -0.0625, -0.0625, 0, 0.0625, 0.0625 },
}, -- x-
connect_right = {
{ 0, -0.1875, 0, 0.5, 0.4375, 0 },
{ 0, 0.1875, -0.0625, 0.5, 0.3125, 0.0625 },
{ 0, -0.0625, -0.0625, 0.5, 0.0625, 0.0625 },
}, -- x+
},
collision_box = {
type = "connected",
fixed = {
{ -0.1, -0.5, -0.1, 0.1, 0.5, 0.1 },
},
connect_front = {
{ -0.1, -0.1875, -0.5, 0.1, 0.4375, 0 },
}, -- z-
connect_back = {
{ -0.1, -0.1875, 0, 0.1, 0.4375, 0.5 },
}, -- z+
connect_left = {
{ -0.5, -0.1875, -0.1, 0, 0.4375, 0.1 },
}, -- x-
connect_right = {
{ 0, -0.1875, -0.1, 0.5, 0.4375, 0.1 },
}, -- x+
},
connects_to = { "group:wall", "group:stone", "group:wood", "group:tree", "group:concrete" },
sound = default.node_sound_metal_defaults()
})
minetest.register_craft({
output = "streets:guardrail 12",
recipe = {
{ "basic_materials:steel_bar", "default:steel_ingot", "basic_materials:steel_bar" },
{ "basic_materials:steel_bar", "default:steel_ingot", "basic_materials:steel_bar" },
{ "", "default:steel_ingot", "" },
}
})
minetest.register_node("streets:concrete_wall", {
description = "Concrete Wall",
paramtype = "light",
drawtype = "nodebox",
tiles = { "basic_materials_concrete_block.png" },
sunlight_propagates = true,
groups = { cracky = 1, level = 2, wall = 1 },
node_box = {
type = "connected",
fixed = { { -0.35, -0.5, -0.35, 0.35, -0.4, 0.35 }, { -0.15, -0.5, -0.15, 0.15, 0.5, 0.15 } },
connect_front = { { -0.35, -0.5, -0.5, 0.35, -0.4, 0.35 }, { -0.15, -0.5, -0.5, 0.15, 0.5, 0.15 } }, -- z-
connect_back = { { -0.35, -0.5, -0.35, 0.35, -0.4, 0.5 }, { -0.15, -0.5, -0.15, 0.15, 0.5, 0.5 } }, -- z+
connect_left = { { -0.5, -0.5, -0.35, 0.35, -0.4, 0.35 }, { -0.5, -0.5, -0.15, 0.15, 0.5, 0.15 } }, -- x-
connect_right = { { -0.35, -0.5, -0.35, 0.5, -0.4, 0.35 }, { -0.15, -0.5, -0.15, 0.5, 0.5, 0.15 } }, -- x+
},
connects_to = { "group:wall", "group:stone", "group:wood", "group:tree", "group:concrete" },
sound = default.node_sound_stone_defaults()
})
minetest.register_craft({
output = "streets:concrete_wall 5",
recipe = {
{ "", "basic_materials:concrete_block", "" },
{ "", "basic_materials:concrete_block", "" },
{ "basic_materials:concrete_block", "basic_materials:concrete_block", "basic_materials:concrete_block" },
}
})
minetest.register_node("streets:concrete_wall_top", {
description = "Concrete Wall (Top)",
paramtype = "light",
drawtype = "nodebox",
tiles = { "basic_materials_concrete_block.png" },
sunlight_propagates = true,
groups = { cracky = 1, level = 2, wall = 1 },
node_box = {
type = "connected",
fixed = { -0.15, -0.5, -0.15, 0.15, 0.5, 0.15 },
connect_front = { -0.15, -0.5, -0.5, 0.15, 0.5, 0.15 }, -- z-
connect_back = { -0.15, -0.5, -0.15, 0.15, 0.5, 0.5 }, -- z+
connect_left = { -0.5, -0.5, -0.15, 0.15, 0.5, 0.15 }, -- x-
connect_right = { -0.15, -0.5, -0.15, 0.5, 0.5, 0.15 }, -- x+
},
connects_to = { "group:wall", "group:stone", "group:wood", "group:tree", "group:concrete" },
sound = default.node_sound_stone_defaults()
})
minetest.register_craft({
output = "streets:concrete_wall_top",
recipe = {
{ "streets:concrete_wall" },
}
})
minetest.register_craft({
output = "streets:concrete_wall",
recipe = {
{ "streets:concrete_wall_top" },
}
})