aboutsummaryrefslogtreecommitdiff
path: root/games/devtest/mods/testnodes
diff options
context:
space:
mode:
authorWuzzy <wuzzy2@mail.ru>2020-05-30 01:46:57 +0200
committerGitHub <noreply@github.com>2020-05-30 00:46:57 +0100
commit51de4ae297c3dc3380bf5d12288afc75f6de2f30 (patch)
treef6c0bc0ed394910ad5d1d6fbb3d5f8c05ca4e82d /games/devtest/mods/testnodes
parent4c8e1c320054ee0dc5d8ec821a6b4cd69002aa09 (diff)
downloadminetest-51de4ae297c3dc3380bf5d12288afc75f6de2f30.tar.gz
minetest-51de4ae297c3dc3380bf5d12288afc75f6de2f30.tar.bz2
minetest-51de4ae297c3dc3380bf5d12288afc75f6de2f30.zip
Devtest: Fix missing/incorrect liquid properties (#9955)
Diffstat (limited to 'games/devtest/mods/testnodes')
-rw-r--r--games/devtest/mods/testnodes/drawtypes.lua23
-rw-r--r--games/devtest/mods/testnodes/textures.lua6
2 files changed, 23 insertions, 6 deletions
diff --git a/games/devtest/mods/testnodes/drawtypes.lua b/games/devtest/mods/testnodes/drawtypes.lua
index 35fda960f..6bf57fa37 100644
--- a/games/devtest/mods/testnodes/drawtypes.lua
+++ b/games/devtest/mods/testnodes/drawtypes.lua
@@ -330,8 +330,7 @@ minetest.register_node("testnodes:plantlike_rooted_degrotate", {
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",
@@ -347,6 +346,9 @@ minetest.register_node("testnodes: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 },
@@ -367,6 +369,9 @@ minetest.register_node("testnodes:liquid_flowing", {
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 },
@@ -387,8 +392,11 @@ minetest.register_node("testnodes:liquid_waving", {
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", {
@@ -408,8 +416,11 @@ 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 },
})
diff --git a/games/devtest/mods/testnodes/textures.lua b/games/devtest/mods/testnodes/textures.lua
index f5db9ccbf..6ffef8fe9 100644
--- a/games/devtest/mods/testnodes/textures.lua
+++ b/games/devtest/mods/testnodes/textures.lua
@@ -62,6 +62,12 @@ for a=1,#alphas do
},
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 },
})
end