init.lua 842 B

12345678910111213141516171819202122232425262728293031323334
  1. -- The POWER_PLANT
  2. -- Just emits power. always.
  3. minetest.register_node("mesecons_powerplant:power_plant", {
  4. drawtype = "plantlike",
  5. visual_scale = 1,
  6. tiles = {"jeija_power_plant.png"},
  7. inventory_image = "jeija_power_plant.png",
  8. paramtype = "light",
  9. is_ground_content = false,
  10. walkable = false,
  11. groups = {dig_immediate=3, mesecon = 2},
  12. light_source = default.LIGHT_MAX-9,
  13. description="Power Plant",
  14. selection_box = {
  15. type = "fixed",
  16. fixed = {-0.3, -0.5, -0.3, 0.3, -0.5+0.7, 0.3},
  17. },
  18. sounds = default.node_sound_leaves_defaults(),
  19. mesecons = {receptor = {
  20. state = mesecon.state.on
  21. }},
  22. on_blast = mesecon.on_blastnode,
  23. })
  24. minetest.register_craft({
  25. output = "mesecons_powerplant:power_plant 1",
  26. recipe = {
  27. {"group:mesecon_conductor_craftable"},
  28. {"group:mesecon_conductor_craftable"},
  29. {"group:sapling"},
  30. }
  31. })