crafting.lua 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. -- Code by Mossmanikin
  2. -----------------------------------------------------------------------------------------------
  3. -- TWiGS
  4. -----------------------------------------------------------------------------------------------
  5. minetest.register_craft({ -- *leaves --> twigs
  6. output = "trunks:twig_1 2",
  7. recipe = {{"group:leafdecay"}}
  8. })
  9. if minetest.get_modpath("moretrees") ~= nil then
  10. minetest.register_craft({ -- moretrees_leaves --> twigs
  11. output = "trunks:twig_1 2",
  12. recipe = {{"group:moretrees_leaves"}}
  13. })
  14. minetest.register_craft({ -- except moretrees:palm_leaves
  15. output = "moretrees:palm_leaves",
  16. recipe = {{"moretrees:palm_leaves"}}
  17. })
  18. end
  19. if minetest.get_modpath("bushes") ~= nil then
  20. minetest.register_craft({ -- BushLeaves --> twigs
  21. output = "trunks:twig_1 2",
  22. recipe = {{"bushes:BushLeaves1"}}
  23. })
  24. minetest.register_craft({
  25. output = "trunks:twig_1 2",
  26. recipe = {{"bushes:BushLeaves2"}}
  27. })
  28. minetest.register_craft({ -- bushbranches --> twigs
  29. output = "trunks:twig_1 4",
  30. recipe = {{"bushes:bushbranches1"}}
  31. })
  32. minetest.register_craft({
  33. output = "trunks:twig_1 4",
  34. recipe = {{"bushes:bushbranches2"}}
  35. })
  36. minetest.register_craft({
  37. output = "trunks:twig_1 4",
  38. recipe = {{"bushes:bushbranches2"}}
  39. })
  40. minetest.register_craft({
  41. output = "trunks:twig_1 4",
  42. recipe = {{"bushes:bushbranches3"}}
  43. })
  44. end
  45. minetest.register_craft({ -- twigs block --> twigs
  46. output = "trunks:twig_1 8",
  47. recipe = {{"trunks:twigs"}}
  48. })
  49. minetest.register_craft({ -- twigs_slab --> twigs
  50. output = "trunks:twig_1 4",
  51. recipe = {{"trunks:twigs_slab"}}
  52. })
  53. minetest.register_craft({ -- twigs_roof --> twigs
  54. output = "trunks:twig_1 4",
  55. recipe = {{"trunks:twigs_roof"}}
  56. })
  57. minetest.register_craft({ -- twigs_roof_corner --> twigs
  58. output = "trunks:twig_1 3",
  59. recipe = {{"trunks:twigs_roof_corner"}}
  60. })
  61. minetest.register_craft({ -- twigs_roof_corner_2 --> twigs
  62. output = "trunks:twig_1 3",
  63. recipe = {{"trunks:twigs_roof_corner_2"}}
  64. })
  65. -----------------------------------------------------------------------------------------------
  66. -- STiCK
  67. -----------------------------------------------------------------------------------------------
  68. minetest.register_craft({ -- twig --> stick
  69. output = "default:stick",
  70. recipe = {{"trunks:twig_1"}}
  71. })
  72. -----------------------------------------------------------------------------------------------
  73. -- TWiGS BLoCK
  74. -----------------------------------------------------------------------------------------------
  75. minetest.register_craft({ -- twigs --> twigs block
  76. output = "trunks:twigs",
  77. recipe = {
  78. {"trunks:twig_1","trunks:twig_1","trunks:twig_1"},
  79. {"trunks:twig_1", "" ,"trunks:twig_1"},
  80. {"trunks:twig_1","trunks:twig_1","trunks:twig_1"},
  81. }
  82. })
  83. -----------------------------------------------------------------------------------------------
  84. -- TWiGS SLaBS
  85. -----------------------------------------------------------------------------------------------
  86. minetest.register_craft({ -- twigs blocks --> twigs_slabs
  87. output = "trunks:twigs_slab 6",
  88. recipe = {
  89. {"trunks:twigs","trunks:twigs","trunks:twigs"},
  90. }
  91. })
  92. -----------------------------------------------------------------------------------------------
  93. -- TWiGS RooFS
  94. -----------------------------------------------------------------------------------------------
  95. minetest.register_craft({ -- twigs blocks --> twigs_roofs
  96. output = "trunks:twigs_roof 4",
  97. recipe = {
  98. {"trunks:twigs",""},
  99. {"","trunks:twigs"},
  100. }
  101. })
  102. minetest.register_craft({
  103. output = "trunks:twigs_roof 4",
  104. recipe = {
  105. {"","trunks:twigs"},
  106. {"trunks:twigs",""},
  107. }
  108. })
  109. -----------------------------------------------------------------------------------------------
  110. -- TWiGS RooF CoRNeRS
  111. -----------------------------------------------------------------------------------------------
  112. minetest.register_craft({ -- twigs blocks --> twigs_roof_corners
  113. output = "trunks:twigs_roof_corner 8",
  114. recipe = {
  115. { "" ,"trunks:twigs", "" },
  116. {"trunks:twigs", "" ,"trunks:twigs"},
  117. }
  118. })
  119. -----------------------------------------------------------------------------------------------
  120. -- TWiGS RooF CoRNeRS 2
  121. -----------------------------------------------------------------------------------------------
  122. minetest.register_craft({ -- twigs blocks --> twigs_roof_corner_2's
  123. output = "trunks:twigs_roof_corner_2 8",
  124. recipe = {
  125. {"trunks:twigs", "" ,"trunks:twigs"},
  126. { "" ,"trunks:twigs", "" },
  127. }
  128. })