groups = { dig_immediate = 3 },
})
--- Demonstrative liquid nodes, source and flowing form. This is only the
--- drawtype, no physical liquid properties are used
+-- Demonstrative liquid nodes, source and flowing form.
minetest.register_node("testnodes:liquid", {
description = S("Source Liquid Drawtype Test Node"),
drawtype = "liquid",
walkable = false,
+ liquidtype = "source",
+ liquid_range = 1,
+ liquid_viscosity = 0,
liquid_alternative_flowing = "testnodes:liquid_flowing",
liquid_alternative_source = "testnodes:liquid",
groups = { dig_immediate = 3 },
walkable = false,
+ liquidtype = "flowing",
+ liquid_range = 1,
+ liquid_viscosity = 0,
liquid_alternative_flowing = "testnodes:liquid_flowing",
liquid_alternative_source = "testnodes:liquid",
groups = { dig_immediate = 3 },
walkable = false,
- liquid_alternative_flowing = "testnodes:liquid_flowing",
- liquid_alternative_source = "testnodes:liquid",
+ liquidtype = "source",
+ liquid_range = 1,
+ liquid_viscosity = 0,
+ liquid_alternative_flowing = "testnodes:liquid_flowing_waving",
+ liquid_alternative_source = "testnodes:liquid_waving",
groups = { dig_immediate = 3 },
})
minetest.register_node("testnodes:liquid_flowing_waving", {
walkable = false,
- liquid_alternative_flowing = "testnodes:liquid_flowing",
- liquid_alternative_source = "testnodes:liquid",
+ liquidtype = "flowing",
+ liquid_range = 1,
+ liquid_viscosity = 0,
+ liquid_alternative_flowing = "testnodes:liquid_flowing_waving",
+ liquid_alternative_source = "testnodes:liquid_waving",
groups = { dig_immediate = 3 },
})