aboutsummaryrefslogtreecommitdiff
path: root/games/devtest
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2021-01-16 22:16:04 +0100
committersfan5 <sfan5@live.de>2021-01-29 17:34:41 +0100
commitedd8c3c664ad005eb32e1968ce80091851ffb817 (patch)
treeaf80ed33fa80879ac97c6875fdbb930b857617ad /games/devtest
parente6e5910cb432f0fb25a8af3dc6cb9950fd9a05f5 (diff)
downloadminetest-edd8c3c664ad005eb32e1968ce80091851ffb817.tar.gz
minetest-edd8c3c664ad005eb32e1968ce80091851ffb817.tar.bz2
minetest-edd8c3c664ad005eb32e1968ce80091851ffb817.zip
Drop never documented 'alpha' property from nodedef
Includes minimal support code for practical reasons. We'll need it for a slightly different purpose next commit.
Diffstat (limited to 'games/devtest')
-rw-r--r--games/devtest/mods/testnodes/textures.lua15
1 files changed, 4 insertions, 11 deletions
diff --git a/games/devtest/mods/testnodes/textures.lua b/games/devtest/mods/testnodes/textures.lua
index e0724c229..af3b7f468 100644
--- a/games/devtest/mods/testnodes/textures.lua
+++ b/games/devtest/mods/testnodes/textures.lua
@@ -51,23 +51,16 @@ for a=1,#alphas do
groups = { dig_immediate = 3 },
})
- -- Transparency set via "alpha" parameter
+ -- Transparency set via texture modifier
minetest.register_node("testnodes:alpha_"..alpha, {
description = S("Alpha Test Node (@1)", alpha),
- -- It seems that only the liquid drawtype supports the alpha parameter
- drawtype = "liquid",
+ drawtype = "glasslike",
paramtype = "light",
tiles = {
- "testnodes_alpha.png",
+ "testnodes_alpha.png^[opacity:" .. alpha,
},
- alpha = alpha,
-
+ use_texture_alpha = true,
- 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