init.lua 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. minetest.register_craftitem("techcrafts:hinge", {
  2. description = "Iron Hinge And Pin",
  3. inventory_image = "technic_hinge.png",
  4. })
  5. minetest.register_craft({
  6. output = 'techcrafts:hinge 2',
  7. recipe = {
  8. {'default:steel_ingot', 'darkage:iron_stick', ''},
  9. {'', '', 'default:steel_ingot'},
  10. }
  11. })
  12. minetest.register_craftitem("techcrafts:hinge_wood", {
  13. description = "Wooden Hinge And Dowel",
  14. inventory_image = "technic_hinge_wood.png",
  15. })
  16. minetest.register_craft({
  17. output = 'techcrafts:hinge_wood 2',
  18. recipe = {
  19. {'group:wood', 'default:stick', ''},
  20. {'', '', 'group:wood'},
  21. }
  22. })
  23. minetest.register_craftitem("techcrafts:copper_coil", {
  24. description = "Copper Coil",
  25. inventory_image = "technic_copper_coil.png",
  26. })
  27. minetest.register_craft({
  28. output = 'techcrafts:copper_coil',
  29. recipe = {
  30. {'fine_wire:copper', 'default:steel_ingot', 'fine_wire:copper'},
  31. {'default:steel_ingot', '', 'default:steel_ingot'},
  32. {'fine_wire:copper', 'default:steel_ingot', 'fine_wire:copper'},
  33. }
  34. })
  35. minetest.register_craftitem("techcrafts:electric_motor", {
  36. description = "Electric Motor",
  37. inventory_image = "technic_motor.png",
  38. })
  39. minetest.register_craft({
  40. output = 'techcrafts:electric_motor',
  41. recipe = {
  42. {'carbon_steel:ingot', 'techcrafts:copper_coil', 'carbon_steel:ingot'},
  43. {'carbon_steel:ingot', 'techcrafts:copper_coil', 'carbon_steel:ingot'},
  44. {'carbon_steel:ingot', 'default:copper_ingot', 'carbon_steel:ingot'},
  45. }
  46. })
  47. minetest.register_craftitem("techcrafts:control_logic_unit", {
  48. description = "Control Logic Unit\n\nImproves machine speed if used as upgrade.\nCan be used as mailbox upgrade.",
  49. inventory_image = "technic_control_logic_unit.png",
  50. stack_max = 1, -- Is used as upgrade. May store metadata.
  51. })
  52. minetest.register_craft({
  53. output = 'techcrafts:control_logic_unit',
  54. recipe = {
  55. {'silicon:wafer', 'fine_wire:gold', 'silicon:wafer'},
  56. {'default:copper_ingot', 'silicon:wafer', 'default:copper_ingot'},
  57. {'quartz:quartz_crystal_piece', 'chromium:ingot', 'quartz:quartz_crystal_piece'},
  58. }
  59. })
  60. minetest.register_craftitem("techcrafts:mixed_metal_ingot", {
  61. description = "Composite Ingot",
  62. inventory_image = "technic_mixed_metal_ingot.png",
  63. })
  64. minetest.register_craft({
  65. output = 'techcrafts:mixed_metal_ingot 9',
  66. recipe = {
  67. {'stainless_steel:ingot', 'stainless_steel:ingot', 'stainless_steel:ingot'},
  68. {'default:bronze_ingot', 'default:bronze_ingot', 'default:bronze_ingot'},
  69. {'moreores:tin_ingot', 'moreores:tin_ingot', 'moreores:tin_ingot'},
  70. }
  71. })
  72. minetest.register_craftitem("techcrafts:composite_plate", {
  73. description = "Composite Plate",
  74. inventory_image = "technic_composite_plate.png",
  75. })
  76. minetest.register_craftitem("techcrafts:copper_plate", {
  77. description = "Copper Plate",
  78. inventory_image = "technic_copper_plate.png",
  79. })
  80. minetest.register_craftitem("techcrafts:carbon_plate", {
  81. description = "Carbon Plate",
  82. inventory_image = "technic_carbon_plate.png",
  83. })
  84. minetest.register_craftitem("techcrafts:graphite", {
  85. description = "Graphite",
  86. inventory_image = "technic_graphite.png",
  87. })
  88. minetest.register_craftitem("techcrafts:carbon_cloth", {
  89. description = "Carbon Cloth",
  90. inventory_image = "technic_carbon_cloth.png",
  91. })
  92. minetest.register_craft({
  93. output = 'techcrafts:carbon_cloth',
  94. recipe = {
  95. {'techcrafts:graphite', 'techcrafts:graphite', 'techcrafts:graphite'}
  96. }
  97. })
  98. minetest.register_craft({
  99. type = "compressing",
  100. output = "techcrafts:composite_plate",
  101. recipe = "techcrafts:mixed_metal_ingot",
  102. time = 12,
  103. })
  104. minetest.register_craft({
  105. type = "compressing",
  106. output = "techcrafts:copper_plate",
  107. recipe = "default:copper_ingot 5",
  108. time = 12,
  109. })
  110. minetest.register_craft({
  111. type = "compressing",
  112. output = "techcrafts:graphite",
  113. recipe = "dusts:coal 4",
  114. time = 6,
  115. })
  116. minetest.register_craft({
  117. type = "compressing",
  118. output = "techcrafts:carbon_plate",
  119. recipe = "techcrafts:carbon_cloth 4",
  120. time = 6,
  121. })
  122. minetest.register_node("techcrafts:machine_casing", {
  123. description = "Machine Chassis",
  124. groups = utility.dig_groups("machine"),
  125. -- This node has some special rendering properties so that it
  126. -- looks good in-world.
  127. paramtype = "light",
  128. drawtype = "nodebox",
  129. node_box = {
  130. type = "fixed",
  131. -- Avoid Z-fighting.
  132. fixed = {-0.4999, -0.4999, -0.4999, 0.4999, 0.4999, 0.4999},
  133. },
  134. tiles = {
  135. {name="technic_machine_casing.png", backface_culling=false},
  136. {name="technic_machine_casing.png", backface_culling=false},
  137. {name="technic_machine_casing.png", backface_culling=false},
  138. {name="technic_machine_casing.png", backface_culling=false},
  139. {name="technic_machine_casing.png", backface_culling=false},
  140. {name="technic_machine_casing.png", backface_culling=false},
  141. },
  142. sounds = default.node_sound_metal_defaults(),
  143. })
  144. minetest.register_craft({
  145. output = "techcrafts:machine_casing",
  146. recipe = {
  147. { "cast_iron:ingot", "cast_iron:ingot", "cast_iron:ingot" },
  148. { "cast_iron:ingot", "brass:ingot", "cast_iron:ingot" },
  149. { "cast_iron:ingot", "cast_iron:ingot", "cast_iron:ingot" },
  150. },
  151. })