1
0
mirror of https://github.com/minetest/minetest.git synced 2024-12-29 20:20:29 +01:00

Devtest: Fix missing/incorrect liquid properties (#9955)

This commit is contained in:
Wuzzy 2020-05-30 01:46:57 +02:00 committed by GitHub
parent 4c8e1c3200
commit 51de4ae297
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 6 deletions

View File

@ -330,8 +330,7 @@ minetest.register_node("testnodes:plantlike_rooted_degrotate", {
groups = { dig_immediate = 3 }, groups = { dig_immediate = 3 },
}) })
-- Demonstrative liquid nodes, source and flowing form. This is only the -- Demonstrative liquid nodes, source and flowing form.
-- drawtype, no physical liquid properties are used
minetest.register_node("testnodes:liquid", { minetest.register_node("testnodes:liquid", {
description = S("Source Liquid Drawtype Test Node"), description = S("Source Liquid Drawtype Test Node"),
drawtype = "liquid", drawtype = "liquid",
@ -347,6 +346,9 @@ minetest.register_node("testnodes:liquid", {
walkable = false, walkable = false,
liquidtype = "source",
liquid_range = 1,
liquid_viscosity = 0,
liquid_alternative_flowing = "testnodes:liquid_flowing", liquid_alternative_flowing = "testnodes:liquid_flowing",
liquid_alternative_source = "testnodes:liquid", liquid_alternative_source = "testnodes:liquid",
groups = { dig_immediate = 3 }, groups = { dig_immediate = 3 },
@ -367,6 +369,9 @@ minetest.register_node("testnodes:liquid_flowing", {
walkable = false, walkable = false,
liquidtype = "flowing",
liquid_range = 1,
liquid_viscosity = 0,
liquid_alternative_flowing = "testnodes:liquid_flowing", liquid_alternative_flowing = "testnodes:liquid_flowing",
liquid_alternative_source = "testnodes:liquid", liquid_alternative_source = "testnodes:liquid",
groups = { dig_immediate = 3 }, groups = { dig_immediate = 3 },
@ -387,8 +392,11 @@ minetest.register_node("testnodes:liquid_waving", {
walkable = false, walkable = false,
liquid_alternative_flowing = "testnodes:liquid_flowing", liquidtype = "source",
liquid_alternative_source = "testnodes:liquid", liquid_range = 1,
liquid_viscosity = 0,
liquid_alternative_flowing = "testnodes:liquid_flowing_waving",
liquid_alternative_source = "testnodes:liquid_waving",
groups = { dig_immediate = 3 }, groups = { dig_immediate = 3 },
}) })
minetest.register_node("testnodes:liquid_flowing_waving", { minetest.register_node("testnodes:liquid_flowing_waving", {
@ -408,8 +416,11 @@ minetest.register_node("testnodes:liquid_flowing_waving", {
walkable = false, walkable = false,
liquid_alternative_flowing = "testnodes:liquid_flowing", liquidtype = "flowing",
liquid_alternative_source = "testnodes:liquid", liquid_range = 1,
liquid_viscosity = 0,
liquid_alternative_flowing = "testnodes:liquid_flowing_waving",
liquid_alternative_source = "testnodes:liquid_waving",
groups = { dig_immediate = 3 }, groups = { dig_immediate = 3 },
}) })

View File

@ -62,6 +62,12 @@ for a=1,#alphas do
}, },
alpha = alpha, alpha = alpha,
liquidtype = "source",
liquid_range = 0,
liquid_viscosity = 0,
liquid_alternative_source = "testnodes:alpha_"..alpha,
liquid_alternative_flowing = "testnodes:alpha_"..alpha,
groups = { dig_immediate = 3 }, groups = { dig_immediate = 3 },
}) })
end end