oldwires.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. minetest.register_node("mesecons:mesecon_off", {
  2. drawtype = "raillike",
  3. tiles = {"jeija_mesecon_off.png", "jeija_mesecon_curved_off.png", "jeija_mesecon_t_junction_off.png", "jeija_mesecon_crossing_off.png"},
  4. inventory_image = "jeija_mesecon_off.png",
  5. wield_image = "jeija_mesecon_off.png",
  6. paramtype = "light",
  7. is_ground_content = false,
  8. walkable = false,
  9. selection_box = {
  10. type = "fixed",
  11. fixed = {-0.5, -0.5, -0.5, 0.5, -0.45, 0.5},
  12. },
  13. groups = {dig_immediate=3, mesecon=1, mesecon_conductor_craftable=1},
  14. description="Mesecons",
  15. mesecons = {conductor={
  16. state = mesecon.state.off,
  17. onstate = "mesecons:mesecon_on"
  18. }}
  19. })
  20. minetest.register_node("mesecons:mesecon_on", {
  21. drawtype = "raillike",
  22. tiles = {"jeija_mesecon_on.png", "jeija_mesecon_curved_on.png", "jeija_mesecon_t_junction_on.png", "jeija_mesecon_crossing_on.png"},
  23. paramtype = "light",
  24. is_ground_content = false,
  25. walkable = false,
  26. selection_box = {
  27. type = "fixed",
  28. fixed = {-0.5, -0.5, -0.5, 0.5, -0.45, 0.5},
  29. },
  30. groups = {dig_immediate=3, not_in_creaive_inventory=1, mesecon=1},
  31. drop = "mesecons:mesecon_off 1",
  32. light_source = default.LIGHT_MAX-11,
  33. mesecons = {conductor={
  34. state = mesecon.state.on,
  35. offstate = "mesecons:mesecon_off"
  36. }}
  37. })