Remove packed ice crafting recipe for now
[MineClone/MineClone2.git] / mods / ITEMS / mcl_core / crafting.lua
blob382c136f5c58d64a518073c0556630d6ea3fc25c
1 -- mods/default/crafting.lua
3 --
4 -- Crafting definition
5 --
7 minetest.register_craft({
8 output = 'mcl_core:wood 4',
9 recipe = {
10 {'mcl_core:tree'},
14 minetest.register_craft({
15 output = 'mcl_core:darkwood 4',
16 recipe = {
17 {'mcl_core:darktree'},
21 minetest.register_craft({
22 output = 'mcl_core:junglewood 4',
23 recipe = {
24 {'mcl_core:jungletree'},
28 minetest.register_craft({
29 output = 'mcl_core:acaciawood 4',
30 recipe = {
31 {'mcl_core:acaciatree'},
35 minetest.register_craft({
36 output = 'mcl_core:sprucewood 4',
37 recipe = {
38 {'mcl_core:sprucetree'},
42 minetest.register_craft({
43 output = 'mcl_core:birchwood 4',
44 recipe = {
45 {'mcl_core:birchtree'},
49 minetest.register_craft({
50 type = 'shapeless',
51 output = 'mcl_core:mossycobble',
52 recipe = { 'mcl_core:cobble', 'mcl_core:vine' },
55 minetest.register_craft({
56 type = 'shapeless',
57 output = 'mcl_core:stonebrickmossy',
58 recipe = { 'mcl_core:stonebrick', 'mcl_core:vine' },
61 minetest.register_craft({
62 output = 'mcl_core:coarse_dirt 4',
63 recipe = {
64 {'mcl_core:dirt', 'mcl_core:gravel'},
65 {'mcl_core:gravel', 'mcl_core:dirt'},
68 minetest.register_craft({
69 output = 'mcl_core:coarse_dirt 4',
70 recipe = {
71 {'mcl_core:gravel', 'mcl_core:dirt'},
72 {'mcl_core:dirt', 'mcl_core:gravel'},
76 minetest.register_craft({
77 output = 'mcl_core:sandstonesmooth 4',
78 recipe = {
79 {'mcl_core:sandstone','mcl_core:sandstone'},
80 {'mcl_core:sandstone','mcl_core:sandstone'},
84 minetest.register_craft({
85 output = 'mcl_core:redsandstonesmooth 4',
86 recipe = {
87 {'mcl_core:redsandstone','mcl_core:redsandstone'},
88 {'mcl_core:redsandstone','mcl_core:redsandstone'},
92 minetest.register_craft({
93 output = 'mcl_core:granite_smooth 4',
94 recipe = {
95 {'mcl_core:granite', 'mcl_core:granite'},
96 {'mcl_core:granite', 'mcl_core:granite'}
100 minetest.register_craft({
101 output = 'mcl_core:andesite_smooth 4',
102 recipe = {
103 {'mcl_core:andesite', 'mcl_core:andesite'},
104 {'mcl_core:andesite', 'mcl_core:andesite'}
108 minetest.register_craft({
109 output = 'mcl_core:diorite_smooth 4',
110 recipe = {
111 {'mcl_core:diorite', 'mcl_core:diorite'},
112 {'mcl_core:diorite', 'mcl_core:diorite'}
116 minetest.register_craft({
117 type = "shapeless",
118 output = 'mcl_core:granite',
119 recipe = {'mcl_core:diorite', 'mcl_nether:quartz'},
122 minetest.register_craft({
123 type = "shapeless",
124 output = 'mcl_core:andesite 2',
125 recipe = {'mcl_core:diorite', 'mcl_core:cobble'},
128 minetest.register_craft({
129 output = 'mcl_core:diorite 2',
130 recipe = {
131 {'mcl_core:cobble', 'mcl_nether:quartz'},
132 {'mcl_nether:quartz', 'mcl_core:cobble'},
135 minetest.register_craft({
136 output = 'mcl_core:diorite 2',
137 recipe = {
138 {'mcl_nether:quartz', 'mcl_core:cobble'},
139 {'mcl_core:cobble', 'mcl_nether:quartz'},
143 minetest.register_craft({
144 output = "mcl_core:bone_block",
145 recipe = {
146 { "mcl_dye:white", "mcl_dye:white", "mcl_dye:white" },
147 { "mcl_dye:white", "mcl_dye:white", "mcl_dye:white" },
148 { "mcl_dye:white", "mcl_dye:white", "mcl_dye:white" },
152 minetest.register_craft({
153 output = "mcl_dye:white 9",
154 recipe = {
155 { "mcl_core:bone_block" },
159 minetest.register_craft({
160 output = 'mcl_core:stick 4',
161 recipe = {
162 {'group:wood'},
163 {'group:wood'},
169 minetest.register_craft({
170 output = 'mcl_core:coalblock',
171 recipe = {
172 {'mcl_core:coal_lump', 'mcl_core:coal_lump', 'mcl_core:coal_lump'},
173 {'mcl_core:coal_lump', 'mcl_core:coal_lump', 'mcl_core:coal_lump'},
174 {'mcl_core:coal_lump', 'mcl_core:coal_lump', 'mcl_core:coal_lump'},
178 minetest.register_craft({
179 output = 'mcl_core:coal_lump 9',
180 recipe = {
181 {'mcl_core:coalblock'},
185 minetest.register_craft({
186 output = 'mcl_core:ironblock',
187 recipe = {
188 {'mcl_core:iron_ingot', 'mcl_core:iron_ingot', 'mcl_core:iron_ingot'},
189 {'mcl_core:iron_ingot', 'mcl_core:iron_ingot', 'mcl_core:iron_ingot'},
190 {'mcl_core:iron_ingot', 'mcl_core:iron_ingot', 'mcl_core:iron_ingot'},
194 minetest.register_craft({
195 output = 'mcl_core:iron_ingot 9',
196 recipe = {
197 {'mcl_core:ironblock'},
201 minetest.register_craft({
202 output = 'mcl_core:goldblock',
203 recipe = {
204 {'mcl_core:gold_ingot', 'mcl_core:gold_ingot', 'mcl_core:gold_ingot'},
205 {'mcl_core:gold_ingot', 'mcl_core:gold_ingot', 'mcl_core:gold_ingot'},
206 {'mcl_core:gold_ingot', 'mcl_core:gold_ingot', 'mcl_core:gold_ingot'},
210 minetest.register_craft({
211 output = 'mcl_core:gold_ingot 9',
212 recipe = {
213 {'mcl_core:goldblock'},
217 minetest.register_craft({
218 output = "mcl_core:gold_nugget 9",
219 recipe = {{"mcl_core:gold_ingot"}},
222 minetest.register_craft({
223 output = "mcl_core:iron_nugget 9",
224 recipe = {{"mcl_core:iron_ingot"}},
227 minetest.register_craft({
228 output = "mcl_core:gold_ingot",
229 recipe = {
230 {"mcl_core:gold_nugget", "mcl_core:gold_nugget", "mcl_core:gold_nugget"},
231 {"mcl_core:gold_nugget", "mcl_core:gold_nugget", "mcl_core:gold_nugget"},
232 {"mcl_core:gold_nugget", "mcl_core:gold_nugget", "mcl_core:gold_nugget"},
236 minetest.register_craft({
237 output = "mcl_core:iron_ingot",
238 recipe = {
239 {"mcl_core:iron_nugget", "mcl_core:iron_nugget", "mcl_core:iron_nugget"},
240 {"mcl_core:iron_nugget", "mcl_core:iron_nugget", "mcl_core:iron_nugget"},
241 {"mcl_core:iron_nugget", "mcl_core:iron_nugget", "mcl_core:iron_nugget"},
245 minetest.register_craft({
246 type = "cooking",
247 output = 'mcl_core:iron_nugget',
248 recipe = 'mobs_mc:iron_horse_armor',
249 cooktime = 10,
252 minetest.register_craft({
253 type = "cooking",
254 output = 'mcl_core:gold_nugget',
255 recipe = 'mobs_mc:gold_horse_armor',
256 cooktime = 10,
259 minetest.register_craft({
260 output = 'mcl_core:sandstone',
261 recipe = {
262 {'mcl_core:sand', 'mcl_core:sand'},
263 {'mcl_core:sand', 'mcl_core:sand'},
267 minetest.register_craft({
268 output = 'mcl_core:redsandstone',
269 recipe = {
270 {'mcl_core:redsand', 'mcl_core:redsand'},
271 {'mcl_core:redsand', 'mcl_core:redsand'},
275 minetest.register_craft({
276 output = 'mcl_core:clay',
277 recipe = {
278 {'mcl_core:clay_lump', 'mcl_core:clay_lump'},
279 {'mcl_core:clay_lump', 'mcl_core:clay_lump'},
283 minetest.register_craft({
284 output = 'mcl_core:brick_block',
285 recipe = {
286 {'mcl_core:brick', 'mcl_core:brick'},
287 {'mcl_core:brick', 'mcl_core:brick'},
291 minetest.register_craft({
292 output = 'mcl_core:paper 3',
293 recipe = {
294 {'mcl_core:reeds', 'mcl_core:reeds', 'mcl_core:reeds'},
298 minetest.register_craft({
299 output = 'mcl_core:ladder 3',
300 recipe = {
301 {'mcl_core:stick', '', 'mcl_core:stick'},
302 {'mcl_core:stick', 'mcl_core:stick', 'mcl_core:stick'},
303 {'mcl_core:stick', '', 'mcl_core:stick'},
307 minetest.register_craft({
308 output = 'mcl_core:stonebrick 4',
309 recipe = {
310 {'mcl_core:stone', 'mcl_core:stone'},
311 {'mcl_core:stone', 'mcl_core:stone'},
315 minetest.register_craft({
316 output = 'mcl_core:lapisblock',
317 recipe = {
318 {'mcl_dye:blue', 'mcl_dye:blue', 'mcl_dye:blue'},
319 {'mcl_dye:blue', 'mcl_dye:blue', 'mcl_dye:blue'},
320 {'mcl_dye:blue', 'mcl_dye:blue', 'mcl_dye:blue'},
324 minetest.register_craft({
325 output = 'mcl_dye:blue 9',
326 recipe = {
327 {'mcl_core:lapisblock'},
331 minetest.register_craft({
332 output = "mcl_core:emeraldblock",
333 recipe = {
334 {'mcl_core:emerald', 'mcl_core:emerald', 'mcl_core:emerald'},
335 {'mcl_core:emerald', 'mcl_core:emerald', 'mcl_core:emerald'},
336 {'mcl_core:emerald', 'mcl_core:emerald', 'mcl_core:emerald'},
340 minetest.register_craft({
341 output = 'mcl_core:emerald 9',
342 recipe = {
343 {'mcl_core:emeraldblock'},
347 minetest.register_craft({
348 output = "mcl_core:diamondblock",
349 recipe = {
350 {'mcl_core:diamond', 'mcl_core:diamond', 'mcl_core:diamond'},
351 {'mcl_core:diamond', 'mcl_core:diamond', 'mcl_core:diamond'},
352 {'mcl_core:diamond', 'mcl_core:diamond', 'mcl_core:diamond'},
356 minetest.register_craft({
357 output = 'mcl_core:diamond 9',
358 recipe = {
359 {'mcl_core:diamondblock'},
363 minetest.register_craft({
364 output = "mcl_core:apple_gold",
365 recipe = {
366 {"mcl_core:gold_ingot", "mcl_core:gold_ingot", "mcl_core:gold_ingot"},
367 {"mcl_core:gold_ingot", 'mcl_core:apple', "mcl_core:gold_ingot"},
368 {"mcl_core:gold_ingot", "mcl_core:gold_ingot", "mcl_core:gold_ingot"},
372 minetest.register_craft({
373 output = "mcl_core:sugar",
374 recipe = {
375 {"mcl_core:reeds"},
379 minetest.register_craft({
380 output = "mcl_core:bowl 4",
381 recipe = {
382 {"group:wood", "", "group:wood"},
383 {"", "group:wood", ""},
387 minetest.register_craft({
388 output = 'mcl_core:snowblock',
389 recipe = {
390 {'mcl_throwing:snowball', 'mcl_throwing:snowball'},
391 {'mcl_throwing:snowball', 'mcl_throwing:snowball'},
395 minetest.register_craft({
396 output = 'mcl_core:snow 6',
397 recipe = {
398 {'mcl_core:snowblock', 'mcl_core:snowblock', 'mcl_core:snowblock'},
402 -- TODO: Add crafting recipe: 9 ice → 1 packed ice
403 -- Add it when silk touch tools work.
406 -- Crafting (tool repair)
408 minetest.register_craft({
409 type = "toolrepair",
410 additional_wear = -mcl_core.repair,
414 -- Cooking recipes
417 minetest.register_craft({
418 type = "cooking",
419 output = "mcl_core:glass",
420 recipe = "group:sand",
421 cooktime = 10,
424 minetest.register_craft({
425 type = "cooking",
426 output = "mcl_core:stone",
427 recipe = "mcl_core:cobble",
428 cooktime = 10,
431 minetest.register_craft({
432 type = "cooking",
433 output = "mcl_core:stone_smooth",
434 recipe = "mcl_core:stone",
435 cooktime = 10,
438 minetest.register_craft({
439 type = "cooking",
440 output = "mcl_core:stonebrickcracked",
441 recipe = "mcl_core:stonebrick",
442 cooktime = 10,
445 minetest.register_craft({
446 type = "cooking",
447 output = "mcl_core:iron_ingot",
448 recipe = "mcl_core:stone_with_iron",
449 cooktime = 10,
452 minetest.register_craft({
453 type = "cooking",
454 output = "mcl_core:gold_ingot",
455 recipe = "mcl_core:stone_with_gold",
456 cooktime = 10,
459 minetest.register_craft({
460 type = "cooking",
461 output = "mcl_core:brick",
462 recipe = "mcl_core:clay_lump",
463 cooktime = 10,
466 minetest.register_craft({
467 type = "cooking",
468 output = "mcl_core:charcoal_lump",
469 recipe = "group:tree",
470 cooktime = 10,
473 minetest.register_craft({
474 type = "cooking",
475 output = "mcl_core:coal_lump",
476 recipe = "mcl_core:stone_with_coal",
477 cooktime = 10,
480 minetest.register_craft({
481 type = "cooking",
482 output = "mcl_core:diamond",
483 recipe = "mcl_core:stone_with_diamond",
484 cooktime = 10,
487 minetest.register_craft({
488 type = "cooking",
489 output = "mcl_core:emerald",
490 recipe = "mcl_core:stone_with_emerald",
491 cooktime = 10,
494 minetest.register_craft({
495 type = "cooking",
496 output = "mcl_dye:blue",
497 recipe = "mcl_core:stone_with_lapis",
498 cooktime = 10,
502 -- Fuels
505 minetest.register_craft({
506 type = "fuel",
507 recipe = "mcl_core:coalblock",
508 burntime = 800,
511 minetest.register_craft({
512 type = "fuel",
513 recipe = "mcl_core:coal_lump",
514 burntime = 80,
517 minetest.register_craft({
518 type = "fuel",
519 recipe = "mcl_core:charcoal_lump",
520 burntime = 80,
523 minetest.register_craft({
524 type = "fuel",
525 recipe = "group:tree",
526 burntime = 15,
529 minetest.register_craft({
530 type = "fuel",
531 recipe = "mcl_core:ladder",
532 burntime = 15,
535 minetest.register_craft({
536 type = "fuel",
537 recipe = "group:wood",
538 burntime = 15,
541 minetest.register_craft({
542 type = "fuel",
543 recipe = "group:sapling",
544 burntime = 5,
549 minetest.register_craft({
550 type = "fuel",
551 recipe = "group:sapling",
552 burntime = 5,
555 minetest.register_craft({
556 type = "fuel",
557 recipe = "mcl_core:bowl",
558 burntime = 5,
561 minetest.register_craft({
562 type = "fuel",
563 recipe = "mcl_core:stick",
564 burntime = 5,