meters.lua 1007 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. minetest.register_node("morecrops:thermometer", {
  2. paramtype = "light",
  3. walkable = false,
  4. sunlight_propagates = true,
  5. drawtype = "nodebox",
  6. tiles = {"morecrops_thermometer.png"},
  7. node_box = {
  8. type = "fixed",
  9. fixed = {
  10. {-0.5, -0.5, -0.5, 0.5, -0.1, 0.5}
  11. },
  12. },
  13. selection_box = {
  14. type = "fixed",
  15. fixed = {
  16. {-0.5, -0.5, -0.5, 0.5, -0.1, 0.5}
  17. },
  18. },
  19. groups = {cracky=1},
  20. sounds = default.node_sound_leaves_defaults(),
  21. on_construct = function(pos)
  22. -- get the temperature
  23. end,
  24. })
  25. minetest.register_node("morecrops:hygrometer", {
  26. paramtype = "light",
  27. walkable = false,
  28. sunlight_propagates = true,
  29. drawtype = "nodebox",
  30. tiles = {"morecrops_hygrometer.png"},
  31. node_box = {
  32. type = "fixed",
  33. fixed = {
  34. {-0.5, -0.5, -0.5, 0.5, -0.1, 0.5}
  35. },
  36. },
  37. selection_box = {
  38. type = "fixed",
  39. fixed = {
  40. {-0.5, -0.5, -0.5, 0.5, -0.1, 0.5}
  41. },
  42. },
  43. groups = {cracky=1},
  44. sounds = default.node_sound_leaves_defaults(),
  45. on_construct = function(pos)
  46. -- get the humidity
  47. end,
  48. })