Advertisement
Guest User

Untitled

a guest
Jul 12th, 2022
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.81 KB | None | 0 0
  1.  
  2. minetest.register_node("default:water_source", {
  3. description = S("Water Source"),
  4. drawtype = "liquid",
  5. waving = 3,
  6. tiles = {
  7. {
  8. name = "default_water_source_animated.png",
  9. backface_culling = false,
  10. animation = {
  11. type = "vertical_frames",
  12. aspect_w = 16,
  13. aspect_h = 16,
  14. length = 2.0,
  15. },
  16. },
  17. {
  18. name = "default_water_source_animated.png",
  19. backface_culling = true,
  20. animation = {
  21. type = "vertical_frames",
  22. aspect_w = 16,
  23. aspect_h = 16,
  24. length = 2.0,
  25. },
  26. },
  27. },
  28. use_texture_alpha = "blend",
  29. paramtype = "light",
  30. walkable = false,
  31. pointable = false,
  32. diggable = false,
  33. buildable_to = true,
  34. is_ground_content = false,
  35. drop = "",
  36. drowning = 1,
  37. liquidtype = "source",
  38. liquid_alternative_flowing = "default:water_flowing",
  39. liquid_alternative_source = "default:water_source",
  40. liquid_viscosity = 1,
  41. post_effect_color = {a = 103, r = 30, g = 60, b = 90},
  42. groups = {water = 3, liquid = 3, cools_lava = 1},
  43. sounds = default.node_sound_water_defaults(),
  44. })
  45.  
  46. minetest.register_node("default:water_flowing", {
  47. description = S("Flowing Water"),
  48. drawtype = "flowingliquid",
  49. waving = 3,
  50. tiles = {"default_water.png"},
  51. special_tiles = {
  52. {
  53. name = "default_water_flowing_animated.png",
  54. backface_culling = false,
  55. animation = {
  56. type = "vertical_frames",
  57. aspect_w = 16,
  58. aspect_h = 16,
  59. length = 0.5,
  60. },
  61. },
  62. {
  63. name = "default_water_flowing_animated.png",
  64. backface_culling = true,
  65. animation = {
  66. type = "vertical_frames",
  67. aspect_w = 16,
  68. aspect_h = 16,
  69. length = 0.5,
  70. },
  71. },
  72. },
  73. use_texture_alpha = "blend",
  74. paramtype = "light",
  75. paramtype2 = "flowingliquid",
  76. walkable = false,
  77. pointable = false,
  78. diggable = false,
  79. buildable_to = true,
  80. is_ground_content = false,
  81. drop = "",
  82. drowning = 1,
  83. liquidtype = "flowing",
  84. liquid_alternative_flowing = "default:water_flowing",
  85. liquid_alternative_source = "default:water_source",
  86. liquid_viscosity = 1,
  87. post_effect_color = {a = 103, r = 30, g = 60, b = 90},
  88. groups = {water = 3, liquid = 3, not_in_creative_inventory = 1,
  89. cools_lava = 1},
  90. sounds = default.node_sound_water_defaults(),
  91. })
  92.  
  93.  
  94. minetest.register_node("default:river_water_source", {
  95. description = S("River Water Source"),
  96. drawtype = "liquid",
  97. tiles = {
  98. {
  99. name = "default_river_water_source_animated.png",
  100. backface_culling = false,
  101. animation = {
  102. type = "vertical_frames",
  103. aspect_w = 16,
  104. aspect_h = 16,
  105. length = 2.0,
  106. },
  107. },
  108. {
  109. name = "default_river_water_source_animated.png",
  110. backface_culling = true,
  111. animation = {
  112. type = "vertical_frames",
  113. aspect_w = 16,
  114. aspect_h = 16,
  115. length = 2.0,
  116. },
  117. },
  118. },
  119. use_texture_alpha = "blend",
  120. paramtype = "light",
  121. walkable = false,
  122. pointable = false,
  123. diggable = false,
  124. buildable_to = true,
  125. is_ground_content = false,
  126. drop = "",
  127. drowning = 1,
  128. liquidtype = "source",
  129. liquid_alternative_flowing = "default:river_water_flowing",
  130. liquid_alternative_source = "default:river_water_source",
  131. liquid_viscosity = 1,
  132. -- Not renewable to avoid horizontal spread of water sources in sloping
  133. -- rivers that can cause water to overflow riverbanks and cause floods.
  134. -- River water source is instead made renewable by the 'force renew'
  135. -- option used in the 'bucket' mod by the river water bucket.
  136. liquid_renewable = false,
  137. liquid_range = 2,
  138. post_effect_color = {a = 103, r = 30, g = 76, b = 90},
  139. groups = {water = 3, liquid = 3, cools_lava = 1},
  140. sounds = default.node_sound_water_defaults(),
  141. })
  142.  
  143. minetest.register_node("default:river_water_flowing", {
  144. description = S("Flowing River Water"),
  145. drawtype = "flowingliquid",
  146. tiles = {"default_river_water.png"},
  147. special_tiles = {
  148. {
  149. name = "default_river_water_flowing_animated.png",
  150. backface_culling = false,
  151. animation = {
  152. type = "vertical_frames",
  153. aspect_w = 16,
  154. aspect_h = 16,
  155. length = 0.5,
  156. },
  157. },
  158. {
  159. name = "default_river_water_flowing_animated.png",
  160. backface_culling = true,
  161. animation = {
  162. type = "vertical_frames",
  163. aspect_w = 16,
  164. aspect_h = 16,
  165. length = 0.5,
  166. },
  167. },
  168. },
  169. use_texture_alpha = "blend",
  170. paramtype = "light",
  171. paramtype2 = "flowingliquid",
  172. walkable = false,
  173. pointable = false,
  174. diggable = false,
  175. buildable_to = true,
  176. is_ground_content = false,
  177. drop = "",
  178. drowning = 1,
  179. liquidtype = "flowing",
  180. liquid_alternative_flowing = "default:river_water_flowing",
  181. liquid_alternative_source = "default:river_water_source",
  182. liquid_viscosity = 1,
  183. liquid_renewable = false,
  184. liquid_range = 2,
  185. post_effect_color = {a = 103, r = 30, g = 76, b = 90},
  186. groups = {water = 3, liquid = 3, not_in_creative_inventory = 1,
  187. cools_lava = 1},
  188. sounds = default.node_sound_water_defaults(),
  189. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement