init.lua 4.4 KB

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