3 local S = minetest.get_translator("testnodes")
5 minetest.register_node("testnodes:6sides", {
6 description = S("Six Textures Test Node"),
8 "testnodes_normal1.png",
9 "testnodes_normal2.png",
10 "testnodes_normal3.png",
11 "testnodes_normal4.png",
12 "testnodes_normal5.png",
13 "testnodes_normal6.png",
16 groups = { dig_immediate = 2 },
19 minetest.register_node("testnodes:anim", {
20 description = S("Animated Test Node"),
22 { name = "testnodes_anim.png",
24 type = "vertical_frames",
31 groups = { dig_immediate = 2 },
34 -- Node texture transparency test
36 local alphas = { 64, 128, 191 }
39 local alpha = alphas[a]
41 -- Transparency taken from texture
42 minetest.register_node("testnodes:alpha_texture_"..alpha, {
43 description = S("Texture Alpha Test Node (@1)", alpha),
44 drawtype = "glasslike",
47 "testnodes_alpha"..alpha..".png",
49 use_texture_alpha = "blend",
51 groups = { dig_immediate = 3 },
54 -- Transparency set via texture modifier
55 minetest.register_node("testnodes:alpha_"..alpha, {
56 description = S("Alpha Test Node (@1)", alpha),
57 drawtype = "glasslike",
60 "testnodes_alpha.png^[opacity:" .. alpha,
62 use_texture_alpha = "blend",
64 groups = { dig_immediate = 3 },