1 local S
= minetest
.get_translator("mtg_plus")
4 if minetest
.get_modpath("doc_items") then
5 deco
= doc
.sub
.items
.temp
.deco
6 build
= doc
.sub
.items
.temp
.build
10 if default
.node_sound_metal_defaults
then
11 metal_sounds
= default
.node_sound_metal_defaults()
13 metal_sounds
= default
.node_sound_stone_defaults()
19 minetest
.register_node("mtg_plus:dirtbrick", {
20 description
= S("Soft Dirt Brick"),
21 _doc_items_longdesc
= build
,
22 tiles
= {"mtg_plus_dirt_brick.png"},
23 is_ground_content
= false,
24 groups
= { crumbly
= 2, soil
= 1 },
25 sounds
= default
.node_sound_dirt_defaults(),
26 drop
= "default:dirt",
29 minetest
.register_craft({
30 output
= "mtg_plus:dirtbrick 4",
31 recipe
= { { "default:dirt", "default:dirt", },
32 { "default:dirt", "default:dirt", }, },
35 minetest
.register_node("mtg_plus:harddirtbrick", {
36 description
= S("Hardened Dirt Brick"),
37 _doc_items_longdesc
= build
,
38 tiles
= {"mtg_plus_dirt_brick_hard.png"},
39 is_ground_content
= false,
40 groups
= { crumbly
= 1, level
= 1, soil
= 1 },
41 sounds
= default
.node_sound_dirt_defaults(),
44 minetest
.register_craft({
46 output
= "mtg_plus:harddirtbrick",
47 recipe
= "mtg_plus:dirtbrick",
53 minetest
.register_node("mtg_plus:goldbrick", {
54 description
= S("Gold Brick"),
55 _doc_items_longdesc
= build
,
56 tiles
= {"mtg_plus_gold_brick.png"},
57 is_ground_content
= false,
58 groups
= { cracky
= 1, },
59 sounds
= metal_sounds
,
62 minetest
.register_craft({
63 output
= "mtg_plus:goldbrick 4",
64 recipe
= { { "default:goldblock", "default:goldblock", },
65 { "default:goldblock", "default:goldblock", }, },
68 minetest
.register_node("mtg_plus:bronzebrick", {
69 description
= S("Bronze Brick"),
70 _doc_items_longdesc
= build
,
71 tiles
= {"mtg_plus_bronze_brick.png"},
72 is_ground_content
= false,
73 groups
= { cracky
= 1, level
= 2 },
74 sounds
= metal_sounds
,
77 minetest
.register_craft({
78 output
= "mtg_plus:bronzebrick 4",
79 recipe
= { { "default:bronzeblock", "default:bronzeblock", },
80 { "default:bronzeblock", "default:bronzeblock", }, },
83 minetest
.register_node("mtg_plus:tinbrick", {
84 description
= S("Tin Brick"),
85 _doc_items_longdesc
= build
,
86 tiles
= {"mtg_plus_tin_brick.png"},
87 is_ground_content
= false,
88 groups
= { cracky
= 1, level
= 2 },
89 sounds
= metal_sounds
,
92 minetest
.register_craft({
93 output
= "mtg_plus:tinbrick 4",
94 recipe
= { { "default:tinblock", "default:tinblock", },
95 { "default:tinblock", "default:tinblock", }, },
98 minetest
.register_node("mtg_plus:copperbrick", {
99 description
= S("Copper Brick"),
100 _doc_items_longdesc
= build
,
101 tiles
= {"mtg_plus_copper_brick.png"},
102 is_ground_content
= false,
103 groups
= { cracky
= 1, level
= 2 },
104 sounds
= metal_sounds
,
107 minetest
.register_craft({
108 output
= "mtg_plus:copperbrick 4",
109 recipe
= { { "default:copperblock", "default:copperblock", },
110 { "default:copperblock", "default:copperblock", }, },
113 minetest
.register_node("mtg_plus:steelbrick", {
114 description
= S("Steel Brick"),
115 _doc_items_longdesc
= build
,
116 tiles
= {"mtg_plus_steel_brick.png"},
117 is_ground_content
= false,
118 groups
= { cracky
= 1, level
= 2 },
119 sounds
= metal_sounds
,
122 minetest
.register_craft({
123 output
= "mtg_plus:steelbrick 4",
124 recipe
= { { "default:steelblock", "default:steelblock", },
125 { "default:steelblock", "default:steelblock", }, },
131 minetest
.register_node("mtg_plus:stonebrick_gold", {
132 description
= S("Stone Brick with Golden Edges"),
133 _doc_items_longdesc
= build
,
134 tiles
= {"mtg_plus_stone_brick_gold.png"},
135 is_ground_content
= false,
136 groups
= { cracky
= 2, stone
= 1 },
137 sounds
= default
.node_sound_stone_defaults(),
140 minetest
.register_craft({
141 output
= "mtg_plus:stonebrick_gold 4",
142 recipe
= { { "", "default:stonebrick", "", },
143 { "default:stonebrick", "default:gold_ingot", "default:stonebrick", },
144 { "", "default:stonebrick", "", } }
147 minetest
.register_node("mtg_plus:desert_stonebrick_gold", {
148 description
= S("Desert Stone Brick with Golden Edges"),
149 _doc_items_longdesc
= build
,
150 tiles
= {"mtg_plus_desert_stone_brick_gold.png"},
151 is_ground_content
= false,
152 groups
= { cracky
= 2, stone
= 1 },
153 sounds
= default
.node_sound_stone_defaults(),
156 minetest
.register_craft({
157 output
= "mtg_plus:desert_stonebrick_gold 4",
158 recipe
= { { "", "default:desert_stonebrick", "" },
159 { "default:desert_stonebrick", "default:gold_ingot", "default:desert_stonebrick", },
160 { "", "default:desert_stonebrick", "", } }
163 minetest
.register_node("mtg_plus:sandstonebrick_gold", {
164 description
= S("Sandstone Brick with Golden Edges"),
165 _doc_items_longdesc
= build
,
166 tiles
= {"mtg_plus_sandstone_brick_gold.png"},
167 is_ground_content
= false,
168 groups
= { cracky
= 2, },
169 sounds
= default
.node_sound_stone_defaults(),
172 minetest
.register_craft({
173 output
= "mtg_plus:sandstonebrick_gold 4",
174 recipe
= { { "", "default:sandstonebrick", "", },
175 { "default:sandstonebrick", "default:gold_ingot", "default:sandstonebrick", },
176 { "", "default:sandstonebrick", "", } }
179 minetest
.register_node("mtg_plus:desert_sandstone_brick_gold", {
180 description
= S("Desert Sandstone Brick with Golden Edges"),
181 _doc_items_longdesc
= build
,
182 tiles
= {"mtg_plus_desert_sandstone_brick_gold.png"},
183 is_ground_content
= false,
184 groups
= { cracky
= 2, },
185 sounds
= default
.node_sound_stone_defaults(),
188 minetest
.register_craft({
189 output
= "mtg_plus:desert_sandstone_brick_gold 4",
190 recipe
= { { "", "default:desert_sandstone_brick", "", },
191 { "default:desert_sandstone_brick", "default:gold_ingot", "default:desert_sandstone_brick", },
192 { "", "default:desert_sandstone_brick", "", } }
195 minetest
.register_node("mtg_plus:silver_sandstone_brick_gold", {
196 description
= S("Silver Sandstone Brick with Golden Edges"),
197 _doc_items_longdesc
= build
,
198 tiles
= {"mtg_plus_silver_sandstone_brick_gold.png"},
199 is_ground_content
= false,
200 groups
= { cracky
= 2, },
201 sounds
= default
.node_sound_stone_defaults(),
204 minetest
.register_craft({
205 output
= "mtg_plus:silver_sandstone_brick_gold 4",
206 recipe
= { { "", "default:silver_sandstone_brick", "", },
207 { "default:silver_sandstone_brick", "default:gold_ingot", "default:silver_sandstone_brick", },
208 { "", "default:silver_sandstone_brick", "", } }
211 minetest
.register_node("mtg_plus:obsidianbrick_gold", {
212 description
= S("Obsidian Brick with Golden Edges"),
213 _doc_items_longdesc
= build
,
214 tiles
= {"mtg_plus_obsidian_brick_gold.png"},
215 is_ground_content
= false,
216 groups
= { cracky
= 1, level
= 2 },
217 sounds
= default
.node_sound_stone_defaults(),
220 minetest
.register_craft({
221 output
= "mtg_plus:obsidianbrick_gold 4",
222 recipe
= { { "", "default:obsidianbrick", "", },
223 { "default:obsidianbrick", "default:gold_ingot", "default:obsidianbrick", },
224 { "", "default:obsidianbrick", "", } }
230 minetest
.register_node("mtg_plus:ice_block", {
231 description
= S("Ice Block"),
232 _doc_items_longdesc
= build
,
233 tiles
= {"mtg_plus_ice_block.png"},
234 groups
= {cracky
= 3, cools_lava
= 1, slippery
= 3 },
235 is_ground_content
= false,
237 sounds
= default
.node_sound_glass_defaults(),
240 minetest
.register_craft({
241 output
= "mtg_plus:ice_block 9",
242 recipe
= { { "default:ice", "default:ice", "default:ice" },
243 { "default:ice", "default:ice", "default:ice" },
244 { "default:ice", "default:ice", "default:ice" } }
249 minetest
.register_node("mtg_plus:ice_tile4", {
250 description
= S("Ice Tile"),
251 _doc_items_longdesc
= build
,
252 tiles
= {"mtg_plus_ice_tile4.png"},
253 groups
= {cracky
= 3, level
= 1, cools_lava
= 1, slippery
= 3 },
254 is_ground_content
= false,
256 sounds
= default
.node_sound_glass_defaults(),
259 minetest
.register_craft({
260 output
= "mtg_plus:ice_tile4",
261 recipe
= { { "mtg_plus:ice_block", "mtg_plus:ice_block" },
262 { "mtg_plus:ice_block", "mtg_plus:ice_block" },}
265 minetest
.register_node("mtg_plus:ice_tile16", {
266 description
= S("Dense Ice Tile"),
267 _doc_items_longdesc
= build
,
268 tiles
= {"mtg_plus_ice_tile16.png"},
269 groups
= {cracky
= 3, level
= 2, cools_lava
= 1, slippery
= 2 },
270 is_ground_content
= false,
271 sounds
= default
.node_sound_glass_defaults(),
274 minetest
.register_craft({
275 output
= "mtg_plus:ice_tile16",
276 recipe
= { { "mtg_plus:ice_tile4", "mtg_plus:ice_tile4" },
277 { "mtg_plus:ice_tile4", "mtg_plus:ice_tile4" } }
280 minetest
.register_node("mtg_plus:snow_brick", {
281 description
= S("Soft Snow Brick"),
282 _doc_items_longdesc
= build
,
283 tiles
= {"mtg_plus_snow_brick.png"},
284 groups
= {crumbly
= 2, cools_lava
= 1, snowy
= 1},
285 is_ground_content
= false,
286 sounds
= default
.node_sound_dirt_defaults({
287 footstep
={name
="default_snow_footstep", gain
= 0.15},
288 dig
={name
="default_snow_footstep", gain
= 0.2},
289 dug
={name
="default_snow_footstep", gain
= 0.2}
293 minetest
.register_craft({
294 output
= "mtg_plus:snow_brick 4",
295 recipe
= { { "default:snowblock", "default:snowblock" },
296 { "default:snowblock", "default:snowblock", } },
299 minetest
.register_craft({
300 output
= "default:snowblock",
301 recipe
= { { "mtg_plus:snow_brick" } },
304 minetest
.register_node("mtg_plus:hard_snow_brick", {
305 description
= S("Hard Snow Brick"),
306 _doc_items_longdesc
= build
,
307 tiles
= {"mtg_plus_hard_snow_brick.png"},
308 groups
= {crumbly
= 1, cracky
= 2, cools_lava
= 1, snowy
= 1},
309 is_ground_content
= false,
310 sounds
= default
.node_sound_dirt_defaults({
311 dig
={name
="default_snow_footstep", gain
= 0.2},
312 dug
={name
="default_snow_footstep", gain
= 0.2}
316 minetest
.register_craft({
317 output
= "mtg_plus:hard_snow_brick",
318 recipe
= { { "mtg_plus:snow_brick", "mtg_plus:snow_brick" },
319 { "mtg_plus:snow_brick", "mtg_plus:snow_brick" } },
322 minetest
.register_node("mtg_plus:ice_snow_brick", {
323 description
= S("Icy Snow Brick"),
324 _doc_items_longdesc
= build
,
325 tiles
= {"mtg_plus_ice_snow_brick.png"},
326 groups
= {cracky
= 2, cools_lava
= 1, slippery
=1},
327 is_ground_content
= false,
328 sounds
= default
.node_sound_stone_defaults(),
331 minetest
.register_craft({
332 output
= "mtg_plus:ice_snow_brick 2",
334 recipe
= { "mtg_plus:hard_snow_brick", "mtg_plus:ice_brick" },
337 minetest
.register_node("mtg_plus:ice_brick", {
338 description
= S("Ice Brick"),
339 _doc_items_longdesc
= build
,
340 tiles
= {"mtg_plus_ice_brick.png"},
342 groups
= {cracky
= 3, cools_lava
= 1, slippery
= 3},
343 is_ground_content
= false,
344 sounds
= default
.node_sound_glass_defaults(),
349 minetest
.register_node("mtg_plus:papyrus_block", {
350 description
= S("Papyrus Block"),
351 _doc_items_longdesc
= build
,
352 tiles
= {"mtg_plus_papyrus_block_y.png","mtg_plus_papyrus_block_y.png","mtg_plus_papyrus_block_side2.png","mtg_plus_papyrus_block_side2.png","mtg_plus_papyrus_block_side.png","mtg_plus_papyrus_block_side.png"},
353 groups
= {snappy
= 2, choppy
= 2, flammable
= 3},
354 is_ground_content
= false,
355 sounds
= default
.node_sound_leaves_defaults(),
358 minetest
.register_craft({
359 output
= "mtg_plus:papyrus_block",
360 recipe
= { { "default:papyrus", "default:papyrus", "default:papyrus", },
361 { "default:papyrus", "default:papyrus", "default:papyrus", },
362 { "default:papyrus", "default:papyrus", "default:papyrus", } }
365 minetest
.register_craft({
366 output
= "default:papyrus 9",
367 recipe
= { { "mtg_plus:papyrus_block" } }
370 minetest
.register_craft({
372 recipe
= "mtg_plus:papyrus_block",
379 minetest
.register_node("mtg_plus:flint_block", {
380 description
= S("Flint Block"),
381 _doc_items_longdesc
= deco
,
382 tiles
= {"mtg_plus_flint_block.png"},
383 is_ground_content
= false,
384 groups
= {cracky
= 2},
385 sounds
= default
.node_sound_stone_defaults(),
388 minetest
.register_craft({
389 output
= "mtg_plus:flint_block",
391 { "default:flint", "default:flint", "default:flint" },
392 { "default:flint", "default:flint", "default:flint" },
393 { "default:flint", "default:flint", "default:flint" },
397 minetest
.register_craft({
398 output
= "default:flint 9 ",
400 { "mtg_plus:flint_block" },
404 -- Gold-framed diamond block, just an absurd luxurious decoration. :D
405 minetest
.register_node("mtg_plus:gold_diamond_block", {
406 description
= S("Small Gold-framed Diamond Block"),
407 _doc_items_longdesc
= deco
,
408 tiles
= {"mtg_plus_gold_diamond_block.png"},
409 is_ground_content
= false,
410 groups
= {cracky
= 1, level
= 3},
411 sounds
= default
.node_sound_stone_defaults(),
414 minetest
.register_craft({
415 output
= "mtg_plus:gold_diamond_block",
416 recipe
= { { "default:gold_ingot", "default:diamond", "default:gold_ingot", },
417 { "default:diamond", "default:diamond", "default:diamond" },
418 { "default:gold_ingot", "default:diamond", "default:gold_ingot", } },