water.lua 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. minetest.register_node("etherium_stuff:crystal_water_source", {
  2. description = "Crystal Water Source",
  3. drawtype = "liquid",
  4. tiles = {
  5. {
  6. name = "etherium_crystal_water_source_animated.png",
  7. backface_culling = false,
  8. animation = {
  9. type = "vertical_frames",
  10. aspect_w = 16,
  11. aspect_h = 16,
  12. length = 3.0,
  13. },
  14. },
  15. {
  16. name = "etherium_crystal_water_source_animated.png",
  17. backface_culling = true,
  18. animation = {
  19. type = "vertical_frames",
  20. aspect_w = 16,
  21. aspect_h = 16,
  22. length = 3.0,
  23. },
  24. },
  25. },
  26. alpha = 200,
  27. paramtype = "light",
  28. light_source = default.LIGHT_MAX - 1,
  29. walkable = false,
  30. pointable = false,
  31. diggable = false,
  32. buildable_to = true,
  33. is_ground_content = false,
  34. drop = "",
  35. drowning = 1,
  36. liquidtype = "source",
  37. liquid_alternative_flowing = "etherium_stuff:crystal_water_flowing",
  38. liquid_alternative_source = "etherium_stuff:crystal_water_source",
  39. liquid_viscosity = 1,
  40. liquid_renewable = false,
  41. post_effect_color = {a = 103, r = 30, g = 76, b = 90},
  42. groups = {water = 3, liquid = 2, cools_lava = 1},
  43. sounds = default.node_sound_water_defaults(),
  44. })
  45. minetest.register_node("etherium_stuff:crystal_water_flowing", {
  46. description = "Flowing Crystal Water",
  47. drawtype = "flowingliquid",
  48. tiles = {"etherium_crystal_water.png"},
  49. special_tiles = {
  50. {
  51. name = "etherium_crystal_water_flowing_animated.png",
  52. backface_culling = false,
  53. animation = {
  54. type = "vertical_frames",
  55. aspect_w = 16,
  56. aspect_h = 16,
  57. length = 3.3,
  58. },
  59. },
  60. {
  61. name = "etherium_crystal_water_flowing_animated.png",
  62. backface_culling = true,
  63. animation = {
  64. type = "vertical_frames",
  65. aspect_w = 16,
  66. aspect_h = 16,
  67. length = 3.3,
  68. },
  69. },
  70. },
  71. alpha = 200,
  72. paramtype = "light",
  73. paramtype2 = "flowingliquid",
  74. light_source = default.LIGHT_MAX - 1,
  75. walkable = false,
  76. pointable = false,
  77. diggable = false,
  78. buildable_to = true,
  79. is_ground_content = false,
  80. drop = "",
  81. drowning = 1,
  82. liquidtype = "flowing",
  83. liquid_alternative_flowing = "etherium_stuff:crystal_water_flowing",
  84. liquid_alternative_source = "etherium_stuff:crystal_water_source",
  85. liquid_viscosity = 1,
  86. liquid_renewable = false,
  87. post_effect_color = {a = 103, r = 30, g = 76, b = 90},
  88. groups = {water = 3, liquid = 2, cools_lava = 1,
  89. not_in_creative_inventory = 1},
  90. sounds = default.node_sound_water_defaults(),
  91. })
  92. bucket.register_liquid(
  93. "etherium_stuff:crystal_water_source",
  94. "etherium_stuff:crystal_water_flowing",
  95. "etherium_stuff:bucket_crystal_water",
  96. "bucket_crystal_water.png",
  97. "Crystal Water Bucket",
  98. {tool = 1, water_bucket = 1},
  99. true
  100. )