init.lua 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. minetest.register_node("liquids:water_source", {
  2. description = "Water Source",
  3. drawtype = "liquid",
  4. waving = 3,
  5. tiles = {
  6. {
  7. name = "liquids_water_source_animated.png",
  8. backface_culling = false,
  9. animation = {
  10. type = "vertical_frames",
  11. aspect_w = 32,
  12. aspect_h = 32,
  13. length = 2.0,
  14. },
  15. },
  16. {
  17. name = "liquids_water_source_animated.png",
  18. backface_culling = true,
  19. animation = {
  20. type = "vertical_frames",
  21. aspect_w = 32,
  22. aspect_h = 32,
  23. length = 2.0,
  24. },
  25. },
  26. },
  27. use_texture_alpha = "blend",
  28. paramtype = "light",
  29. walkable = false,
  30. pointable = false,
  31. buildable_to = true,
  32. is_ground_content = false,
  33. drop = "",
  34. drowning = 1,
  35. liquidtype = "source",
  36. liquid_alternative_flowing = "liquids:water_flowing",
  37. liquid_alternative_source = "liquids:water_source",
  38. liquid_viscosity = 1,
  39. post_effect_color = {a = 103, r = 30, g = 60, b = 90},
  40. groups = {breakable=1, liquid=1},
  41. --sounds = default.node_sound_water_defaults(),
  42. })
  43. minetest.register_node("liquids:water_flowing", {
  44. description = "Flowing Water",
  45. drawtype = "flowingliquid",
  46. waving = 3,
  47. tiles = {"liquids_water.png"},
  48. special_tiles = {
  49. {
  50. name = "liquids_water_flowing_animated.png",
  51. backface_culling = false,
  52. animation = {
  53. type = "vertical_frames",
  54. aspect_w = 32,
  55. aspect_h = 32,
  56. length = 0.5,
  57. },
  58. },
  59. {
  60. name = "liquids_water_flowing_animated.png",
  61. backface_culling = true,
  62. animation = {
  63. type = "vertical_frames",
  64. aspect_w = 32,
  65. aspect_h = 32,
  66. length = 0.5,
  67. },
  68. },
  69. },
  70. use_texture_alpha = "blend",
  71. paramtype = "light",
  72. paramtype2 = "flowingliquid",
  73. walkable = false,
  74. pointable = false,
  75. buildable_to = true,
  76. is_ground_content = false,
  77. drop = "",
  78. drowning = 1,
  79. liquidtype = "flowing",
  80. liquid_alternative_flowing = "liquids:water_flowing",
  81. liquid_alternative_source = "liquids:water_source",
  82. liquid_viscosity = 1,
  83. post_effect_color = {a = 103, r = 30, g = 60, b = 90},
  84. groups = {breakable=1, not_in_creative_inventory=1, liquid=1},
  85. --sounds = default.node_sound_water_defaults(),
  86. })
  87. minetest.register_node("liquids:river_water_source", {
  88. description = "River Water Source",
  89. drawtype = "liquid",
  90. tiles = {
  91. {
  92. name = "liquids_river_water_source_animated.png",
  93. backface_culling = false,
  94. animation = {
  95. type = "vertical_frames",
  96. aspect_w = 32,
  97. aspect_h = 32,
  98. length = 2.0,
  99. },
  100. },
  101. {
  102. name = "liquids_river_water_source_animated.png",
  103. backface_culling = true,
  104. animation = {
  105. type = "vertical_frames",
  106. aspect_w = 32,
  107. aspect_h = 32,
  108. length = 2.0,
  109. },
  110. },
  111. },
  112. use_texture_alpha = "blend",
  113. paramtype = "light",
  114. walkable = false,
  115. pointable = false,
  116. buildable_to = true,
  117. is_ground_content = false,
  118. drop = "",
  119. drowning = 1,
  120. liquidtype = "source",
  121. liquid_alternative_flowing = "liquids:river_water_flowing",
  122. liquid_alternative_source = "liquids:river_water_source",
  123. liquid_viscosity = 1,
  124. -- Not renewable to avoid horizontal spread of water sources in sloping
  125. -- rivers that can cause water to overflow riverbanks and cause floods.
  126. -- River water source is instead made renewable by the 'force renew'
  127. -- option used in the 'bucket' mod by the river water bucket.
  128. liquid_renewable = false,
  129. liquid_range = 2,
  130. post_effect_color = {a = 103, r = 30, g = 76, b = 90},
  131. groups = {breakable=1, liquid=1},
  132. --sounds = default.node_sound_water_defaults(),
  133. })
  134. minetest.register_node("liquids:river_water_flowing", {
  135. description = "Flowing River Water",
  136. drawtype = "flowingliquid",
  137. tiles = {"liquids_river_water.png"},
  138. special_tiles = {
  139. {
  140. name = "liquids_river_water_flowing_animated.png",
  141. backface_culling = false,
  142. animation = {
  143. type = "vertical_frames",
  144. aspect_w = 32,
  145. aspect_h = 32,
  146. length = 0.5,
  147. },
  148. },
  149. {
  150. name = "liquids_river_water_flowing_animated.png",
  151. backface_culling = true,
  152. animation = {
  153. type = "vertical_frames",
  154. aspect_w = 16,
  155. aspect_h = 16,
  156. length = 0.5,
  157. },
  158. },
  159. },
  160. use_texture_alpha = "blend",
  161. paramtype = "light",
  162. paramtype2 = "flowingliquid",
  163. walkable = false,
  164. pointable = false,
  165. buildable_to = true,
  166. is_ground_content = false,
  167. drop = "",
  168. drowning = 1,
  169. liquidtype = "flowing",
  170. liquid_alternative_flowing = "liquids:river_water_flowing",
  171. liquid_alternative_source = "liquids:river_water_source",
  172. liquid_viscosity = 1,
  173. liquid_renewable = false,
  174. liquid_range = 2,
  175. post_effect_color = {a = 103, r = 30, g = 76, b = 90},
  176. groups = {breakable=1, not_in_creative_inventory=1, liquid=1},
  177. --sounds = default.node_sound_water_defaults(),
  178. })
  179. minetest.register_node("liquids:lava_source", {
  180. description = "Lava Source",
  181. drawtype = "liquid",
  182. tiles = {
  183. {
  184. name = "liquids_lava_source_animated.png",
  185. backface_culling = false,
  186. animation = {
  187. type = "vertical_frames",
  188. aspect_w = 32,
  189. aspect_h = 32,
  190. length = 3.0,
  191. },
  192. },
  193. {
  194. name = "liquids_lava_source_animated.png",
  195. backface_culling = true,
  196. animation = {
  197. type = "vertical_frames",
  198. aspect_w = 32,
  199. aspect_h = 32,
  200. length = 3.0,
  201. },
  202. },
  203. },
  204. paramtype = "light",
  205. light_source = 13,
  206. walkable = false,
  207. pointable = false,
  208. buildable_to = true,
  209. is_ground_content = false,
  210. drop = "",
  211. drowning = 1,
  212. liquidtype = "source",
  213. liquid_alternative_flowing = "liquids:lava_flowing",
  214. liquid_alternative_source = "liquids:lava_source",
  215. liquid_viscosity = 7,
  216. liquid_renewable = false,
  217. damage_per_second = 4 * 2,
  218. post_effect_color = {a = 191, r = 255, g = 64, b = 0},
  219. groups = {breakable=1, liquid=1},
  220. })
  221. minetest.register_node("liquids:lava_flowing", {
  222. description = "Flowing Lava",
  223. drawtype = "flowingliquid",
  224. tiles = {"liquids_lava.png"},
  225. special_tiles = {
  226. {
  227. name = "liquids_lava_flowing_animated.png",
  228. backface_culling = false,
  229. animation = {
  230. type = "vertical_frames",
  231. aspect_w = 32,
  232. aspect_h = 32,
  233. length = 3.3,
  234. },
  235. },
  236. {
  237. name = "liquids_lava_flowing_animated.png",
  238. backface_culling = true,
  239. animation = {
  240. type = "vertical_frames",
  241. aspect_w = 32,
  242. aspect_h = 32,
  243. length = 3.3,
  244. },
  245. },
  246. },
  247. paramtype = "light",
  248. paramtype2 = "flowingliquid",
  249. light_source = 13,
  250. walkable = false,
  251. pointable = false,
  252. buildable_to = true,
  253. is_ground_content = false,
  254. drop = "",
  255. drowning = 1,
  256. liquidtype = "flowing",
  257. liquid_alternative_flowing = "liquids:lava_flowing",
  258. liquid_alternative_source = "liquids:lava_source",
  259. liquid_viscosity = 7,
  260. liquid_renewable = false,
  261. damage_per_second = 4 * 2,
  262. post_effect_color = {a = 191, r = 255, g = 64, b = 0},
  263. groups = {breakable=1, not_in_creative_inventory=1, liquid=1},
  264. })