fix https://github.com/mt-mods/plantlife_modpack/issues/38 - add use_texture_alpa param to nodes that have textures with alpa

This commit is contained in:
unknown 2023-01-21 15:48:24 -05:00
parent a2cbc18351
commit 577404c850
10 changed files with 18 additions and 0 deletions

View File

@ -51,6 +51,7 @@ for i in pairs(BushBranchCenter) do
"bushes_leaves_"..TexNum..".png", "bushes_leaves_"..TexNum..".png",
"bushes_branches_center_"..TexNum..".png" "bushes_branches_center_"..TexNum..".png"
}, },
use_texture_alpha = "clip",
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = { fixed = {
@ -93,6 +94,7 @@ for i in pairs(BushBranchSide) do
--[[back]] "bushes_branches_center_"..TexNum..".png",-- unless U really want 'em 2 B different --[[back]] "bushes_branches_center_"..TexNum..".png",-- unless U really want 'em 2 B different
--[[front]] "bushes_branches_right_"..TexNum..".png" --[[front]] "bushes_branches_right_"..TexNum..".png"
}, },
use_texture_alpha = "clip",
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = { fixed = {
@ -129,6 +131,7 @@ for i in pairs(BushLeafNode) do
description = S("Bush Leaves @1", Num), description = S("Bush Leaves @1", Num),
drawtype = "allfaces_optional", drawtype = "allfaces_optional",
tiles = {"bushes_leaves_"..Num..".png"}, tiles = {"bushes_leaves_"..Num..".png"},
use_texture_alpha = "clip",
paramtype = "light", paramtype = "light",
groups = { -- MM: Should we add leafdecay? groups = { -- MM: Should we add leafdecay?
snappy=3, snappy=3,

View File

@ -130,6 +130,7 @@ minetest.register_node("dryplants:grass", {
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
tiles = {"dryplants_grass.png"}, tiles = {"dryplants_grass.png"},
use_texture_alpha = "clip",
drawtype = "nodebox", drawtype = "nodebox",
node_box = { node_box = {
type = "fixed", type = "fixed",
@ -161,6 +162,7 @@ minetest.register_node("dryplants:hay", {
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
tiles = {"dryplants_hay.png"}, tiles = {"dryplants_hay.png"},
use_texture_alpha = "clip",
drawtype = "nodebox", drawtype = "nodebox",
node_box = { node_box = {
type = "fixed", type = "fixed",

View File

@ -200,6 +200,7 @@ minetest.register_node("ferns:tree_fern_leave_big_end", {
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
tiles = { "ferns_tree_fern_leave_big_end.png" }, tiles = { "ferns_tree_fern_leave_big_end.png" },
use_texture_alpha = "clip",
walkable = false, walkable = false,
node_box = { node_box = {
type = "fixed", type = "fixed",
@ -232,6 +233,7 @@ minetest.register_node("ferns:fern_trunk_big_top", {
"ferns_fern_trunk_big_top.png^ferns_tree_fern_leave_big_cross.png", "ferns_fern_trunk_big_top.png^ferns_tree_fern_leave_big_cross.png",
"ferns_fern_trunk_big.png" "ferns_fern_trunk_big.png"
}, },
use_texture_alpha = "clip",
node_box = { node_box = {
type = "fixed", type = "fixed",
-- {left, bottom, front, right, top, back } -- {left, bottom, front, right, top, back }
@ -269,6 +271,7 @@ minetest.register_node("ferns:fern_trunk_big", {
"ferns_fern_trunk_big_top.png", "ferns_fern_trunk_big_top.png",
"ferns_fern_trunk_big.png" "ferns_fern_trunk_big.png"
}, },
use_texture_alpha = "clip",
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = {-1/4, -1/2, -1/4, 1/4, 1/2, 1/4}, fixed = {-1/4, -1/2, -1/4, 1/4, 1/2, 1/4},

View File

@ -147,6 +147,7 @@ minetest.register_node("ferns:fern_trunk", {
"ferns_fern_trunk_top.png", "ferns_fern_trunk_top.png",
"ferns_fern_trunk.png" "ferns_fern_trunk.png"
}, },
use_texture_alpha = "clip",
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = {-1/8, -1/2, -1/8, 1/8, 1/2, 1/8}, fixed = {-1/8, -1/2, -1/8, 1/8, 1/2, 1/8},

View File

@ -26,6 +26,7 @@ minetest.register_node("molehills:molehill",{
description = S("Mole Hill"), description = S("Mole Hill"),
inventory_image = "molehills_side.png", inventory_image = "molehills_side.png",
tiles = { "molehills_dirt.png" }, tiles = { "molehills_dirt.png" },
use_texture_alpha = "clip",
paramtype = "light", paramtype = "light",
selection_box = mh_cbox, selection_box = mh_cbox,
collision_box = mh_cbox, collision_box = mh_cbox,

View File

@ -25,6 +25,7 @@ for i in ipairs(algae_list) do
"flowers_seaweed"..num..".png", "flowers_seaweed"..num..".png",
"flowers_seaweed"..num..".png^[transformFY" "flowers_seaweed"..num..".png^[transformFY"
}, },
use_texture_alpha = "clip",
inventory_image = "flowers_seaweed_2.png", inventory_image = "flowers_seaweed_2.png",
wield_image = "flowers_seaweed_2.png", wield_image = "flowers_seaweed_2.png",
sunlight_propagates = true, sunlight_propagates = true,

View File

@ -23,6 +23,7 @@ minetest.register_node(":flowers:sunflower", {
inventory_image = "flowers_sunflower_inv.png", inventory_image = "flowers_sunflower_inv.png",
mesh = "flowers_sunflower.obj", mesh = "flowers_sunflower.obj",
tiles = { "flowers_sunflower.png" }, tiles = { "flowers_sunflower.png" },
use_texture_alpha = "clip",
walkable = false, walkable = false,
buildable_to = true, buildable_to = true,
is_ground_content = true, is_ground_content = true,

View File

@ -36,6 +36,7 @@ for i in ipairs(lilies_list) do
"flowers_waterlily"..deg2..".png", "flowers_waterlily"..deg2..".png",
"flowers_waterlily"..deg2..".png^[transformFY" "flowers_waterlily"..deg2..".png^[transformFY"
}, },
use_texture_alpha = "clip",
inventory_image = "flowers_waterlily.png", inventory_image = "flowers_waterlily.png",
wield_image = "flowers_waterlily.png", wield_image = "flowers_waterlily.png",
sunlight_propagates = true, sunlight_propagates = true,

View File

@ -24,6 +24,7 @@ for i in pairs(NoDe) do
"trunks_twig_"..NR..".png^[transformFY", -- mirror "trunks_twig_"..NR..".png^[transformFY", -- mirror
"trunks_twig_6.png" -- empty "trunks_twig_6.png" -- empty
}, },
use_texture_alpha = "clip",
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
walkable = false, walkable = false,
@ -88,6 +89,7 @@ for r = 0, 3 do
description = S("Moss"), description = S("Moss"),
drawtype = "nodebox", drawtype = "nodebox",
tiles = {"trunks_moss.png"..xform}, tiles = {"trunks_moss.png"..xform},
use_texture_alpha = "clip",
inventory_image = "trunks_moss.png", inventory_image = "trunks_moss.png",
wield_image = "trunks_moss.png", wield_image = "trunks_moss.png",
paramtype = "light", paramtype = "light",
@ -110,6 +112,7 @@ for r = 0, 3 do
tiles = {"trunks_moss_fungus.png"..xform}, tiles = {"trunks_moss_fungus.png"..xform},
inventory_image = "trunks_moss_fungus.png", inventory_image = "trunks_moss_fungus.png",
wield_image = "trunks_moss_fungus.png", wield_image = "trunks_moss_fungus.png",
use_texture_alpha = "clip",
paramtype = "light", paramtype = "light",
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
sunlight_propagates = true, sunlight_propagates = true,
@ -376,6 +379,7 @@ for i in pairs(TRuNKS) do
--[[back]] MoD.."_"..TRuNK..".png", --[[back]] MoD.."_"..TRuNK..".png",
--[[front]] MoD.."_"..TRuNK..".png" --[[front]] MoD.."_"..TRuNK..".png"
}, },
use_texture_alpha = "clip",
drawtype = "nodebox", drawtype = "nodebox",
selection_box = {type = "fixed", fixed = roots_cube}, selection_box = {type = "fixed", fixed = roots_cube},
node_box = {type = "fixed", fixed = roots_sheet}, node_box = {type = "fixed", fixed = roots_sheet},

View File

@ -31,6 +31,7 @@ minetest.register_node("youngtrees:youngtree2_middle",{
description = S("Young Tree 2 (middle)"), description = S("Young Tree 2 (middle)"),
drawtype="nodebox", drawtype="nodebox",
tiles = {"youngtree2branch.png"}, tiles = {"youngtree2branch.png"},
use_texture_alpha = "clip",
inventory_image = "youngtree2branch.png", inventory_image = "youngtree2branch.png",
wield_image = "youngtree2branch.png", wield_image = "youngtree2branch.png",
paramtype = "light", paramtype = "light",