Fix torches not being craftable
[MineClone.git] / mods / default / crafting.lua
blob6e9d34040b8a4a5da87519e69913c07e3d02fca1
1 -- mods/default/crafting.lua
3 --
4 -- Crafting definition
5 --
7 minetest.register_craft({
8 output = 'default:wood 4',
9 recipe = {
10 {'default:tree'},
14 minetest.register_craft({
15 output = 'default:junglewood 4',
16 recipe = {
17 {'default:jungletree'},
21 minetest.register_craft({
22 output = 'default:acaciawood 4',
23 recipe = {
24 {'default:acaciatree'},
28 minetest.register_craft({
29 output = 'default:sprucewood 4',
30 recipe = {
31 {'default:sprucetree'},
37 minetest.register_craft({
38 output = 'default:mossycobble',
39 recipe = {
40 {'default:cobble', 'default:vine'},
44 minetest.register_craft({
45 output = 'default:stonebrickmossy',
46 recipe = {
47 {'default:stonebrick', 'default:vine'},
52 minetest.register_craft({
53 output = 'default:stick 4',
54 recipe = {
55 {'group:wood'},
56 {'group:wood'},
60 minetest.register_craft({
61 output = 'fences:fence_wood 2',
62 recipe = {
63 {'default:stick', 'default:stick', 'default:stick'},
64 {'default:stick', 'default:stick', 'default:stick'},
68 minetest.register_craft({
69 output = 'signs:sign_wall',
70 recipe = {
71 {'group:wood', 'group:wood', 'group:wood'},
72 {'group:wood', 'group:wood', 'group:wood'},
73 {'', 'default:stick', ''},
77 minetest.register_craft({
78 output = 'torches:torch 4',
79 recipe = {
80 {'default:coal_lump'},
81 {'default:stick'},
85 minetest.register_craft({
86 output = 'torches:torch 4',
87 recipe = {
88 {'default:charcoal_lump'},
89 {'default:stick'},
93 minetest.register_craft({
94 output = 'default:pick_wood',
95 recipe = {
96 {'group:wood', 'group:wood', 'group:wood'},
97 {'', 'default:stick', ''},
98 {'', 'default:stick', ''},
102 minetest.register_craft({
103 output = 'default:pick_stone',
104 recipe = {
105 {'group:stone', 'group:stone', 'group:stone'},
106 {'', 'default:stick', ''},
107 {'', 'default:stick', ''},
111 minetest.register_craft({
112 output = 'default:pick_steel',
113 recipe = {
114 {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
115 {'', 'default:stick', ''},
116 {'', 'default:stick', ''},
120 minetest.register_craft({
121 output = 'default:pick_gold',
122 recipe = {
123 {'default:gold_ingot', 'default:gold_ingot', 'default:gold_ingot'},
124 {'', 'default:stick', ''},
125 {'', 'default:stick', ''},
129 minetest.register_craft({
130 output = 'default:pick_diamond',
131 recipe = {
132 {'default:diamond', 'default:diamond', 'default:diamond'},
133 {'', 'default:stick', ''},
134 {'', 'default:stick', ''},
138 minetest.register_craft({
139 output = 'default:shovel_wood',
140 recipe = {
141 {'group:wood'},
142 {'default:stick'},
143 {'default:stick'},
147 minetest.register_craft({
148 output = 'default:shovel_stone',
149 recipe = {
150 {'group:stone'},
151 {'default:stick'},
152 {'default:stick'},
156 minetest.register_craft({
157 output = 'default:shovel_steel',
158 recipe = {
159 {'default:steel_ingot'},
160 {'default:stick'},
161 {'default:stick'},
165 minetest.register_craft({
166 output = 'default:shovel_gold',
167 recipe = {
168 {'default:gold_ingot'},
169 {'default:stick'},
170 {'default:stick'},
174 minetest.register_craft({
175 output = 'default:shovel_diamond',
176 recipe = {
177 {'default:diamond'},
178 {'default:stick'},
179 {'default:stick'},
183 minetest.register_craft({
184 output = 'default:axe_wood',
185 recipe = {
186 {'group:wood', 'group:wood'},
187 {'group:wood', 'default:stick'},
188 {'', 'default:stick'},
192 minetest.register_craft({
193 output = 'default:axe_stone',
194 recipe = {
195 {'group:stone', 'group:stone'},
196 {'group:stone', 'default:stick'},
197 {'', 'default:stick'},
201 minetest.register_craft({
202 output = 'default:axe_steel',
203 recipe = {
204 {'default:steel_ingot', 'default:steel_ingot'},
205 {'default:steel_ingot', 'default:stick'},
206 {'', 'default:stick'},
210 minetest.register_craft({
211 output = 'default:axe_gold',
212 recipe = {
213 {'default:gold_ingot', 'default:gold_ingot'},
214 {'default:gold_ingot', 'default:stick'},
215 {'', 'default:stick'},
219 minetest.register_craft({
220 output = 'default:axe_diamond',
221 recipe = {
222 {'default:diamond', 'default:diamond'},
223 {'default:diamond', 'default:stick'},
224 {'', 'default:stick'},
228 minetest.register_craft({
229 output = 'default:sword_wood',
230 recipe = {
231 {'group:wood'},
232 {'group:wood'},
233 {'default:stick'},
237 minetest.register_craft({
238 output = 'default:sword_stone',
239 recipe = {
240 {'group:stone'},
241 {'group:stone'},
242 {'default:stick'},
246 minetest.register_craft({
247 output = 'default:sword_steel',
248 recipe = {
249 {'default:steel_ingot'},
250 {'default:steel_ingot'},
251 {'default:stick'},
255 minetest.register_craft({
256 output = 'default:sword_gold',
257 recipe = {
258 {'default:gold_ingot'},
259 {'default:gold_ingot'},
260 {'default:stick'},
264 minetest.register_craft({
265 output = 'default:sword_diamond',
266 recipe = {
267 {'default:diamond'},
268 {'default:diamond'},
269 {'default:stick'},
273 minetest.register_craft({
274 output = 'default:flint_and_steel',
275 recipe = {
276 {'default:steel_ingot', ''},
277 {'', 'default:flint'},
281 minetest.register_craft({
282 output = "default:pole",
283 recipe = {
284 {'','','default:stick'},
285 {'','default:stick','farming:string'},
286 {'default:stick','','farming:string'},
290 minetest.register_craft({
291 output = "default:pole",
292 recipe = {
293 {'', '', 'default:stick'},
294 {'', 'default:stick', 'default:string'},
295 {'default:stick', '', 'default:string'},
299 minetest.register_craft({
300 output = 'default:rail 15',
301 recipe = {
302 {'default:steel_ingot', '', 'default:steel_ingot'},
303 {'default:steel_ingot', 'default:stick', 'default:steel_ingot'},
304 {'default:steel_ingot', '', 'default:steel_ingot'},
308 minetest.register_craft({
309 output = 'default:chest',
310 recipe = {
311 {'group:wood', 'group:wood', 'group:wood'},
312 {'group:wood', '', 'group:wood'},
313 {'group:wood', 'group:wood', 'group:wood'},
317 minetest.register_craft({
318 output = 'default:furnace',
319 recipe = {
320 {'group:stone', 'group:stone', 'group:stone'},
321 {'group:stone', '', 'group:stone'},
322 {'group:stone', 'group:stone', 'group:stone'},
326 minetest.register_craft({
327 output = 'default:haybale',
328 recipe = {
329 {'farming:wheat_harvested', 'farming:wheat_harvested', 'farming:wheat_harvested'},
330 {'farming:wheat_harvested', 'farming:wheat_harvested', 'farming:wheat_harvested'},
331 {'farming:wheat_harvested', 'farming:wheat_harvested', 'farming:wheat_harvested'},
335 minetest.register_craft({
336 output = 'farming:wheat_harvested 9',
337 recipe = {
338 {'default:haybale'},
342 minetest.register_craft({
343 output = 'default:sea_lantern',
344 recipe = {
345 {'default:prismarine_shard', 'default:prismarine_cry', 'default:prismarine_shard'},
346 {'default:prismarine_cry', 'default:prismarine_cry', 'default:prismarine_cry'},
347 {'default:prismarine_shard', 'default:prismarine_cry', 'default:prismarine_shard'},
351 minetest.register_craft({
352 output = 'default:prismarine',
353 recipe = {
354 {'default:prismarine_shard', 'default:prismarine_shard'},
355 {'default:prismarine_shard', 'default:prismarine_shard'},
359 minetest.register_craft({
360 output = 'default:prismarine_brick',
361 recipe = {
362 {'default:prismarine_shard', 'default:prismarine_shard', 'default:prismarine_shard'},
363 {'default:prismarine_shard', 'default:prismarine_shard', 'default:prismarine_shard'},
364 {'default:prismarine_shard', 'default:prismarine_shard', 'default:prismarine_shard'},
368 minetest.register_craft({
369 output = 'default:prismarine_dark',
370 recipe = {
371 {'default:prismarine_shard', 'default:prismarine_shard', 'default:prismarine_shard'},
372 {'default:prismarine_shard', 'dye:black', 'default:prismarine_shard'},
373 {'default:prismarine_shard', 'default:prismarine_shard', 'default:prismarine_shard'},
377 minetest.register_craft({
378 output = 'default:steelblock',
379 recipe = {
380 {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
381 {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
382 {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
386 minetest.register_craft({
387 output = 'default:steel_ingot 9',
388 recipe = {
389 {'default:steelblock'},
393 minetest.register_craft({
394 output = 'default:goldblock',
395 recipe = {
396 {'default:gold_ingot', 'default:gold_ingot', 'default:gold_ingot'},
397 {'default:gold_ingot', 'default:gold_ingot', 'default:gold_ingot'},
398 {'default:gold_ingot', 'default:gold_ingot', 'default:gold_ingot'},
402 minetest.register_craft({
403 output = 'default:gold_ingot 9',
404 recipe = {
405 {'default:goldblock'},
409 minetest.register_craft({
410 output = "default:gold_nugget 9",
411 recipe = {{"default:gold_ingot"}},
414 minetest.register_craft({
415 output = 'default:sandstone',
416 recipe = {
417 {'group:sand', 'group:sand'},
418 {'group:sand', 'group:sand'},
422 minetest.register_craft({
423 output = 'default:clay',
424 recipe = {
425 {'default:clay_lump', 'default:clay_lump'},
426 {'default:clay_lump', 'default:clay_lump'},
430 minetest.register_craft({
431 output = 'default:brick',
432 recipe = {
433 {'default:clay_brick', 'default:clay_brick'},
434 {'default:clay_brick', 'default:clay_brick'},
438 minetest.register_craft({
439 output = 'default:clay_brick 4',
440 recipe = {
441 {'default:brick'},
445 minetest.register_craft({
446 output = 'default:paper',
447 recipe = {
448 {'default:reeds', 'default:reeds', 'default:reeds'},
452 minetest.register_craft({
453 output = 'default:book',
454 recipe = {
455 {'default:paper'},
456 {'default:paper'},
457 {'default:paper'},
461 minetest.register_craft({
462 output = 'default:bookshelf',
463 recipe = {
464 {'group:wood', 'group:wood', 'group:wood'},
465 {'default:book', 'default:book', 'default:book'},
466 {'group:wood', 'group:wood', 'group:wood'},
470 minetest.register_craft({
471 output = 'default:ladder',
472 recipe = {
473 {'default:stick', '', 'default:stick'},
474 {'default:stick', 'default:stick', 'default:stick'},
475 {'default:stick', '', 'default:stick'},
479 minetest.register_craft({
480 output = 'default:stonebrick',
481 recipe = {
482 {'default:stone', 'default:stone'},
483 {'default:stone', 'default:stone'},
487 minetest.register_craft({
488 type = "shapeless",
489 output = "default:gunpowder",
490 recipe = {
491 'default:sand',
492 'default:gravel',
496 minetest.register_craft({
497 output = 'dye:white 3',
498 recipe = {
499 {'default:bone'},
503 minetest.register_craft({
504 output = 'default:lapisblock',
505 recipe = {
506 {'dye:blue', 'dye:blue', 'dye:blue'},
507 {'dye:blue', 'dye:blue', 'dye:blue'},
508 {'dye:blue', 'dye:blue', 'dye:blue'},
512 minetest.register_craft({
513 output = 'dye:blue 9',
514 recipe = {
515 {'default:lapisblock'},
519 minetest.register_craft({
520 output = "default:emeraldblock",
521 recipe = {
522 {'default:emerald', 'default:emerald', 'default:emerald'},
523 {'default:emerald', 'default:emerald', 'default:emerald'},
524 {'default:emerald', 'default:emerald', 'default:emerald'},
528 minetest.register_craft({
529 output = 'default:emerald 9',
530 recipe = {
531 {'default:emeraldblock'},
535 minetest.register_craft({
536 output = "default:glowstone",
537 recipe = {
538 {'default:glowstone_dust', 'default:glowstone_dust'},
539 {'default:glowstone_dust', 'default:glowstone_dust'},
543 minetest.register_craft({
544 output = 'default:glowstone_dust 4',
545 recipe = {
546 {'default:glowstone'},
551 minetest.register_craft({
552 output = 'default:redstone_dust',
553 recipe = {{"mesecons:wire_00000000_off"}},
557 minetest.register_craft({
558 output = "default:apple_gold",
559 recipe = {
560 {"default:gold_nugget", "default:gold_nugget", "default:gold_nugget"},
561 {"default:gold_nugget", 'default:apple', "default:gold_nugget"},
562 {"default:gold_nugget", "default:gold_nugget", "default:gold_nugget"},
566 minetest.register_craft({
567 output = "default:sugar",
568 recipe = {
569 {"default:reeds"},
573 minetest.register_craft({
574 output = 'default:snowblock',
575 recipe = {
576 {'default:snow', 'default:snow', 'default:snow'},
577 {'default:snow', 'default:snow', 'default:snow'},
578 {'default:snow', 'default:snow', 'default:snow'},
582 minetest.register_craft({
583 output = 'default:snow 9',
584 recipe = {
585 {'default:snowblock'},
589 minetest.register_craft({
590 output = 'default:quartz_block',
591 recipe = {
592 {'default:quartz_crystal', 'default:quartz_crystal'},
593 {'default:quartz_crystal', 'default:quartz_crystal'},
597 minetest.register_craft({
598 output = 'default:quartz_chiseled 2',
599 recipe = {
600 {'stairs:slab_quartzblock'},
601 {'stairs:slab_quartzblock'},
605 minetest.register_craft({
606 output = 'default:quartz_pillar 2',
607 recipe = {
608 {'default:quartz_block'},
609 {'default:quartz_block'},
615 -- Crafting (tool repair)
617 minetest.register_craft({
618 type = "toolrepair",
619 additional_wear = -0.02,
623 -- Cooking recipes
626 minetest.register_craft({
627 type = "cooking",
628 output = "default:glass",
629 recipe = "group:sand",
632 minetest.register_craft({
633 type = "cooking",
634 output = "default:stone",
635 recipe = "default:cobble",
638 minetest.register_craft({
639 type = "cooking",
640 output = "default:steel_ingot",
641 recipe = "default:stone_with_iron",
644 minetest.register_craft({
645 type = "cooking",
646 output = "default:gold_ingot",
647 recipe = "default:stone_with_gold",
650 minetest.register_craft({
651 type = "cooking",
652 output = "default:clay_brick",
653 recipe = "default:clay_lump",
656 minetest.register_craft({
657 type = "cooking",
658 output = "default:fish",
659 recipe = "default:fish_raw",
660 cooktime = 2,
663 minetest.register_craft({
664 type = "cooking",
665 output = "default:charcoal_lump",
666 recipe = "group:tree",
669 minetest.register_craft({
670 type = "cooking",
671 output = "default:sponge",
672 recipe = "default:sponge_wet",
676 -- Fuels
679 minetest.register_craft({
680 type = "fuel",
681 recipe = "group:tree",
682 burntime = 30,
685 minetest.register_craft({
686 type = "fuel",
687 recipe = "default:junglegrass",
688 burntime = 2,
691 minetest.register_craft({
692 type = "fuel",
693 recipe = "group:leaves",
694 burntime = 1,
697 minetest.register_craft({
698 type = "fuel",
699 recipe = "default:cactus",
700 burntime = 15,
703 minetest.register_craft({
704 type = "fuel",
705 recipe = "default:reeds",
706 burntime = 1,
709 minetest.register_craft({
710 type = "fuel",
711 recipe = "default:bookshelf",
712 burntime = 30,
715 minetest.register_craft({
716 type = "fuel",
717 recipe = "default:fence_wood",
718 burntime = 15,
721 minetest.register_craft({
722 type = "fuel",
723 recipe = "default:ladder",
724 burntime = 5,
727 minetest.register_craft({
728 type = "fuel",
729 recipe = "group:wood",
730 burntime = 7,
733 minetest.register_craft({
734 type = "fuel",
735 recipe = "default:lava_source",
736 burntime = 60,
739 minetest.register_craft({
740 type = "fuel",
741 recipe = "torches:torch",
742 burntime = 4,
745 minetest.register_craft({
746 type = "fuel",
747 recipe = "signs:sign_wall",
748 burntime = 10,
751 minetest.register_craft({
752 type = "fuel",
753 recipe = "default:chest",
754 burntime = 30,
757 minetest.register_craft({
758 type = "fuel",
759 recipe = "default:sapling",
760 burntime = 10,
763 minetest.register_craft({
764 type = "fuel",
765 recipe = "default:apple",
766 burntime = 3,
769 minetest.register_craft({
770 type = "fuel",
771 recipe = "default:apple_gold",
772 burntime = 6,
775 minetest.register_craft({
776 type = "fuel",
777 recipe = "default:coal_lump",
778 burntime = 40,
781 minetest.register_craft({
782 type = "fuel",
783 recipe = "default:haybale",
784 burntime = 40,
787 minetest.register_craft({
788 type = "fuel",
789 recipe = "default:charcoal_lump",
790 burntime = 45,
793 minetest.register_craft({
794 type = "fuel",
795 recipe = "default:junglesapling",
796 burntime = 10,
799 minetest.register_craft({
800 type = "fuel",
801 recipe = "default:grass_1",
802 burntime = 2,
807 --Temporary
809 minetest.register_craft({
810 output = "default:string",
811 recipe = {{"default:paper", "default:paper"}},