1 -- Add liquids for ranges and viscosity levels 0-8
4 minetest.register_node("testnodes:rliquid_"..d, {
5 description = "Test Liquid Source, Range "..d,
7 tiles = {"testnodes_liquidsource_r"..d..".png"},
9 {name = "testnodes_liquidsource_r"..d..".png", backface_culling = false},
10 {name = "testnodes_liquidsource_r"..d..".png", backface_culling = true},
12 use_texture_alpha = "blend",
16 is_ground_content = false,
17 liquidtype = "source",
18 liquid_alternative_flowing = "testnodes:rliquid_flowing_"..d,
19 liquid_alternative_source = "testnodes:rliquid_"..d,
23 minetest.register_node("testnodes:rliquid_flowing_"..d, {
24 description = "Flowing Test Liquid, Range "..d,
25 drawtype = "flowingliquid",
26 tiles = {"testnodes_liquidflowing_r"..d..".png"},
28 {name = "testnodes_liquidflowing_r"..d..".png", backface_culling = false},
29 {name = "testnodes_liquidflowing_r"..d..".png", backface_culling = false},
31 use_texture_alpha = "blend",
33 paramtype2 = "flowingliquid",
36 is_ground_content = false,
37 liquidtype = "flowing",
38 liquid_alternative_flowing = "testnodes:rliquid_flowing_"..d,
39 liquid_alternative_source = "testnodes:rliquid_"..d,
43 local mod = "^[colorize:#000000:127"
44 minetest.register_node("testnodes:vliquid_"..d, {
45 description = "Test Liquid Source, Viscosity "..d,
47 tiles = {"testnodes_liquidsource_r"..d..".png"..mod},
49 {name = "testnodes_liquidsource_r"..d..".png"..mod, backface_culling = false},
50 {name = "testnodes_liquidsource_r"..d..".png"..mod, backface_culling = true},
52 use_texture_alpha = "blend",
56 is_ground_content = false,
57 liquidtype = "source",
58 liquid_alternative_flowing = "testnodes:vliquid_flowing_"..d,
59 liquid_alternative_source = "testnodes:vliquid_"..d,
63 minetest.register_node("testnodes:vliquid_flowing_"..d, {
64 description = "Flowing Test Liquid, Viscosity "..d,
65 drawtype = "flowingliquid",
66 tiles = {"testnodes_liquidflowing_r"..d..".png"..mod},
68 {name = "testnodes_liquidflowing_r"..d..".png"..mod, backface_culling = false},
69 {name = "testnodes_liquidflowing_r"..d..".png"..mod, backface_culling = false},
71 use_texture_alpha = "blend",
73 paramtype2 = "flowingliquid",
76 is_ground_content = false,
77 liquidtype = "flowing",
78 liquid_alternative_flowing = "testnodes:vliquid_flowing_"..d,
79 liquid_alternative_source = "testnodes:vliquid_"..d,