1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

Allow allfaces drawtypes to have 6 textures (#15175)

This commit is contained in:
DragonWrangler1
2024-09-26 08:34:16 -07:00
committed by GitHub
parent d08d34d803
commit 65ec371b78
3 changed files with 30 additions and 8 deletions

View File

@@ -98,6 +98,23 @@ minetest.register_node("testnodes:allfaces", {
groups = { dig_immediate = 3 },
})
minetest.register_node("testnodes:allfaces_6", {
description = S("\"allfaces 6 Textures\" Drawtype Test Node").."\n"..
S("Transparent node with visible internal backfaces"),
drawtype = "allfaces",
paramtype = "light",
tiles = {
"testnodes_allfaces.png^[colorize:red",
"testnodes_allfaces.png^[colorize:orange",
"testnodes_allfaces.png^[colorize:yellow",
"testnodes_allfaces.png^[colorize:green",
"testnodes_allfaces.png^[colorize:blue",
"testnodes_allfaces.png^[colorize:purple"
},
groups = { dig_immediate = 3 },
})
local allfaces_optional_tooltip = ""..
S("Rendering depends on 'leaves_style' setting:").."\n"..
S("* 'fancy': transparent with visible internal backfaces").."\n"..