init.lua 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. minetest.register_craftitem("transformer:lv", {
  2. description = "Low Voltage Transformer",
  3. inventory_image = "technic_lv_transformer.png",
  4. })
  5. minetest.register_craftitem("transformer:mv", {
  6. description = "Medium Voltage Transformer",
  7. inventory_image = "technic_mv_transformer.png",
  8. })
  9. minetest.register_craftitem( "transformer:hv", {
  10. description = "High Voltage Transformer",
  11. inventory_image = "technic_hv_transformer.png",
  12. })
  13. minetest.register_craft({
  14. output = 'transformer:lv',
  15. recipe = {
  16. {"rubber:rubber_fiber", 'default:steel_ingot', "rubber:rubber_fiber"},
  17. {'techcrafts:copper_coil', 'default:steel_ingot', 'techcrafts:copper_coil'},
  18. {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
  19. }
  20. })
  21. minetest.register_craft({
  22. output = 'transformer:mv',
  23. recipe = {
  24. {"rubber:rubber_fiber", 'carbon_steel:ingot', "rubber:rubber_fiber"},
  25. {'techcrafts:copper_coil', 'carbon_steel:ingot', 'techcrafts:copper_coil'},
  26. {'carbon_steel:ingot', 'carbon_steel:ingot', 'carbon_steel:ingot'},
  27. }
  28. })
  29. minetest.register_craft({
  30. output = 'transformer:hv',
  31. recipe = {
  32. {"rubber:rubber_fiber", 'stainless_steel:ingot', "rubber:rubber_fiber"},
  33. {'techcrafts:copper_coil', 'stainless_steel:ingot', 'techcrafts:copper_coil'},
  34. {'stainless_steel:ingot', 'stainless_steel:ingot', 'stainless_steel:ingot'},
  35. }
  36. })