init.lua 781 B

1234567891011121314151617181920212223242526272829303132
  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. walkable = false,
  10. groups = {dig_immediate=3, mesecon = 2},
  11. light_source = LIGHT_MAX-9,
  12. description="Power Plant",
  13. selection_box = {
  14. type = "fixed",
  15. fixed = {-0.1, -0.5, -0.1, 0.1, -0.5+0.6, 0.1},
  16. },
  17. sounds = default.node_sound_leaves_defaults(),
  18. mesecons = {receptor = {
  19. state = mesecon.state.on
  20. }}
  21. })
  22. minetest.register_craft({
  23. output = '"mesecons_powerplant:power_plant" 1',
  24. recipe = {
  25. {'"group:mesecon_conductor_craftable"'},
  26. {'"group:mesecon_conductor_craftable"'},
  27. {'"default:sapling"'},
  28. }
  29. })