-
Notifications
You must be signed in to change notification settings - Fork 0
/
default_buildings.lua
161 lines (150 loc) · 6.11 KB
/
default_buildings.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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
local MP = minetest.get_modpath("citygen")
local default_schematics = {
corner = {
bottom = MP .. "/schematics/building/building_lower_corner",
middle = MP .. "/schematics/building/building_middle_corner",
top = MP .. "/schematics/building/building_top_corner"
},
edge = {
bottom = MP .. "/schematics/building/building_lower_straight",
middle = MP .. "/schematics/building/building_middle_straight",
top = MP .. "/schematics/building/building_top_straight"
},
edge_closed = {
bottom = MP .. "/schematics/building/building_lower_straight_closed",
middle = MP .. "/schematics/building/building_middle_straight_closed",
top = MP .. "/schematics/building/building_top_straight_closed"
},
center = {
bottom = MP .. "/schematics/building/building_lower_center",
middle = MP .. "/schematics/building/building_middle_center",
top = MP .. "/schematics/building/building_top_center"
}
}
citygen.register_building({
name = "citygen:default_building",
type = "12-part-template",
schematics = default_schematics
})
citygen.register_building({
name = "citygen:default_building_iron",
type = "12-part-template",
schematics = default_schematics,
replace = {
["moreblocks:coal_stone"] = "moreblocks:iron_stone",
["moreblocks:coal_glass"] = "moreblocks:clean_glass",
["moreblocks:checker_stone_tile"] = "moreblocks:iron_checker",
["moreblocks:coal_stone_bricks"] = "moreblocks:iron_stone_bricks",
["moreblocks:stair_coal_stone_bricks"] = "moreblocks:stair_iron_stone_bricks",
["moreblocks:stair_coal_stone_bricks_outer"] = "moreblocks:stair_iron_stone_bricks_outer",
}
})
citygen.register_building({
name = "citygen:default_building_desert_sandstone",
type = "12-part-template",
schematics = default_schematics,
replace = {
["moreblocks:coal_stone"] = "default:desert_sandstone",
["moreblocks:coal_glass"] = "default:glass",
["moreblocks:coal_stone_bricks"] = "default:desert_sandstone_brick",
["moreblocks:stair_coal_stone_bricks"] = "moreblocks:stair_desert_sandstone_brick",
["moreblocks:stair_coal_stone_bricks_outer"] = "moreblocks:stair_desert_sandstone_brick_outer",
}
})
citygen.register_building({
name = "citygen:default_building_desert_stone",
type = "12-part-template",
schematics = default_schematics,
replace = {
["moreblocks:coal_stone"] = "default:desert_stone",
["moreblocks:coal_stone_bricks"] = "default:desert_stonebrick",
["moreblocks:stair_coal_stone_bricks"] = "moreblocks:stair_desert_stonebrick",
["moreblocks:stair_coal_stone_bricks_outer"] = "moreblocks:stair_desert_stonebrick_outer",
}
})
local default_schematics2 = {
corner = {
bottom = MP .. "/schematics/building2/building_lower_corner",
middle = MP .. "/schematics/building2/building_middle_corner",
top = MP .. "/schematics/building2/building_top_corner"
},
edge = {
bottom = MP .. "/schematics/building2/building_lower_straight",
middle = MP .. "/schematics/building2/building_middle_straight",
top = MP .. "/schematics/building2/building_top_straight"
},
edge_closed = {
bottom = MP .. "/schematics/building2/building_lower_straight_closed",
middle = MP .. "/schematics/building2/building_middle_straight_closed",
top = MP .. "/schematics/building2/building_top_straight_closed"
},
center = {
bottom = MP .. "/schematics/building2/building_lower_center",
middle = MP .. "/schematics/building2/building_middle_center",
top = MP .. "/schematics/building2/building_top_center"
}
}
citygen.register_building({
name = "citygen:default_building2",
type = "12-part-template",
schematics = default_schematics2
})
citygen.register_building({
name = "citygen:default_building2_iron",
type = "12-part-template",
schematics = default_schematics2,
replace = {
["moreblocks:coal_glass"] = "moreblocks:clean_glass",
["moreblocks:coal_stone"] = "moreblocks:iron_stone",
["moreblocks:slope_coal_glass"] = "moreblocks:slope_clean_glass",
["moreblocks:checker_stone_tile"] = "moreblocks:iron_checker",
["moreblocks:coal_stone_bricks"] = "moreblocks:iron_stone_bricks",
["moreblocks:stair_coal_stone"] = "moreblocks:stair_iron_stone",
["moreblocks:stair_coal_stone_bricks"] = "moreblocks:stair_iron_stone_bricks",
["moreblocks:stair_coal_stone_bricks_outer"] = "moreblocks:stair_iron_stone_bricks_outer",
["moreblocks:slope_coal_stone_half_raised"] = "moreblocks:slope_iron_stone_half_raised",
["moreblocks:slope_coal_stone_inner_cut"] = "moreblocks:slope_iron_stone_inner_cut",
["moreblocks:slope_coal_stone_inner_half_raised"] = "moreblocks:slope_iron_stone_inner_half_raised",
["moreblocks:slope_coal_stone_outer_cut_half_raised"] = "moreblocks:slope_iron_stone_outer_cut_half_raised"
}
})
local default_schematics3 = {
corner = {
bottom = MP .. "/schematics/building3/building_lower_corner",
middle = MP .. "/schematics/building3/building_middle_corner",
top = MP .. "/schematics/building3/building_top_corner"
},
edge = {
bottom = MP .. "/schematics/building3/building_lower_straight",
middle = MP .. "/schematics/building3/building_middle_straight",
top = MP .. "/schematics/building3/building_top_straight"
},
edge_closed = {
bottom = MP .. "/schematics/building3/building_lower_straight_closed",
middle = MP .. "/schematics/building3/building_middle_straight_closed",
top = MP .. "/schematics/building3/building_top_straight_closed"
},
center = {
bottom = MP .. "/schematics/building2/building_lower_center",
middle = MP .. "/schematics/building2/building_middle_center",
top = MP .. "/schematics/building2/building_top_center"
}
}
citygen.register_building({
name = "citygen:default_building3",
type = "12-part-template",
schematics = default_schematics3
})
citygen.register_building({
name = "citygen:default_building3_iron",
type = "12-part-template",
schematics = default_schematics3,
replace = {
["moreblocks:coal_stone"] = "moreblocks:iron_stone",
["moreblocks:coal_glass"] = "moreblocks:clean_glass",
["moreblocks:checker_stone_tile"] = "moreblocks:iron_checker",
["moreblocks:slope_coal_stone"] = "moreblocks:slope_iron_stone",
["moreblocks:slope_coal_stone_inner"] = "moreblocks:slope_iron_stone_inner",
["moreblocks:slope_coal_stone_outer"] = "moreblocks:slope_iron_stone_outer",
}
})