mirror of
				https://github.com/mt-mods/plantlife_modpack.git
				synced 2025-11-04 07:25:30 +01:00 
			
		
		
		
	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:
		@@ -51,6 +51,7 @@ for i in pairs(BushBranchCenter) do
 | 
			
		||||
			"bushes_leaves_"..TexNum..".png",
 | 
			
		||||
			"bushes_branches_center_"..TexNum..".png"
 | 
			
		||||
		},
 | 
			
		||||
		use_texture_alpha = "clip",
 | 
			
		||||
		node_box = {
 | 
			
		||||
			type = "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
 | 
			
		||||
--[[front]]	"bushes_branches_right_"..TexNum..".png"
 | 
			
		||||
		},
 | 
			
		||||
		use_texture_alpha = "clip",
 | 
			
		||||
		node_box = {
 | 
			
		||||
			type = "fixed",
 | 
			
		||||
			fixed = {
 | 
			
		||||
@@ -129,6 +131,7 @@ for i in pairs(BushLeafNode) do
 | 
			
		||||
		description = S("Bush Leaves @1", Num),
 | 
			
		||||
		drawtype = "allfaces_optional",
 | 
			
		||||
		tiles = {"bushes_leaves_"..Num..".png"},
 | 
			
		||||
		use_texture_alpha = "clip",
 | 
			
		||||
		paramtype = "light",
 | 
			
		||||
		groups = {	-- MM: Should we add leafdecay?
 | 
			
		||||
			snappy=3,
 | 
			
		||||
 
 | 
			
		||||
@@ -130,6 +130,7 @@ minetest.register_node("dryplants:grass", {
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	tiles = {"dryplants_grass.png"},
 | 
			
		||||
	use_texture_alpha = "clip",
 | 
			
		||||
	drawtype = "nodebox",
 | 
			
		||||
	node_box = {
 | 
			
		||||
	    type = "fixed",
 | 
			
		||||
@@ -161,6 +162,7 @@ minetest.register_node("dryplants:hay", {
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	tiles = {"dryplants_hay.png"},
 | 
			
		||||
	use_texture_alpha = "clip",
 | 
			
		||||
	drawtype = "nodebox",
 | 
			
		||||
	node_box = {
 | 
			
		||||
	    type = "fixed",
 | 
			
		||||
 
 | 
			
		||||
@@ -200,6 +200,7 @@ minetest.register_node("ferns:tree_fern_leave_big_end", {
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	paramtype2 = "facedir",
 | 
			
		||||
	tiles = { "ferns_tree_fern_leave_big_end.png" },
 | 
			
		||||
	use_texture_alpha = "clip",
 | 
			
		||||
	walkable = false,
 | 
			
		||||
	node_box = {
 | 
			
		||||
		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.png"
 | 
			
		||||
	},
 | 
			
		||||
	use_texture_alpha = "clip",
 | 
			
		||||
	node_box = {
 | 
			
		||||
		type = "fixed",
 | 
			
		||||
--			{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.png"
 | 
			
		||||
	},
 | 
			
		||||
	use_texture_alpha = "clip",
 | 
			
		||||
	node_box = {
 | 
			
		||||
		type = "fixed",
 | 
			
		||||
		fixed = {-1/4, -1/2, -1/4, 1/4, 1/2, 1/4},
 | 
			
		||||
 
 | 
			
		||||
@@ -147,6 +147,7 @@ minetest.register_node("ferns:fern_trunk", {
 | 
			
		||||
		"ferns_fern_trunk_top.png",
 | 
			
		||||
		"ferns_fern_trunk.png"
 | 
			
		||||
	},
 | 
			
		||||
	use_texture_alpha = "clip",
 | 
			
		||||
	node_box = {
 | 
			
		||||
		type = "fixed",
 | 
			
		||||
		fixed = {-1/8, -1/2, -1/8, 1/8, 1/2, 1/8},
 | 
			
		||||
 
 | 
			
		||||
@@ -26,6 +26,7 @@ minetest.register_node("molehills:molehill",{
 | 
			
		||||
	description = S("Mole Hill"),
 | 
			
		||||
	inventory_image = "molehills_side.png",
 | 
			
		||||
	tiles = { "molehills_dirt.png" },
 | 
			
		||||
	use_texture_alpha = "clip",
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	selection_box = mh_cbox,
 | 
			
		||||
	collision_box = mh_cbox,
 | 
			
		||||
 
 | 
			
		||||
@@ -25,6 +25,7 @@ for i in ipairs(algae_list) do
 | 
			
		||||
			"flowers_seaweed"..num..".png",
 | 
			
		||||
			"flowers_seaweed"..num..".png^[transformFY"
 | 
			
		||||
		},
 | 
			
		||||
		use_texture_alpha = "clip",
 | 
			
		||||
		inventory_image = "flowers_seaweed_2.png",
 | 
			
		||||
		wield_image	= "flowers_seaweed_2.png",
 | 
			
		||||
		sunlight_propagates = true,
 | 
			
		||||
 
 | 
			
		||||
@@ -23,6 +23,7 @@ minetest.register_node(":flowers:sunflower", {
 | 
			
		||||
	inventory_image = "flowers_sunflower_inv.png",
 | 
			
		||||
	mesh = "flowers_sunflower.obj",
 | 
			
		||||
	tiles = { "flowers_sunflower.png" },
 | 
			
		||||
	use_texture_alpha = "clip",
 | 
			
		||||
	walkable = false,
 | 
			
		||||
	buildable_to = true,
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
 
 | 
			
		||||
@@ -36,6 +36,7 @@ for i in ipairs(lilies_list) do
 | 
			
		||||
			"flowers_waterlily"..deg2..".png",
 | 
			
		||||
			"flowers_waterlily"..deg2..".png^[transformFY"
 | 
			
		||||
		},
 | 
			
		||||
		use_texture_alpha = "clip",
 | 
			
		||||
		inventory_image = "flowers_waterlily.png",
 | 
			
		||||
		wield_image	= "flowers_waterlily.png",
 | 
			
		||||
		sunlight_propagates = true,
 | 
			
		||||
 
 | 
			
		||||
@@ -24,6 +24,7 @@ for i in pairs(NoDe) do
 | 
			
		||||
			"trunks_twig_"..NR..".png^[transformFY", -- mirror
 | 
			
		||||
			"trunks_twig_6.png" -- empty
 | 
			
		||||
		},
 | 
			
		||||
		use_texture_alpha = "clip",
 | 
			
		||||
		paramtype = "light",
 | 
			
		||||
		paramtype2 = "facedir",
 | 
			
		||||
		walkable = false,
 | 
			
		||||
@@ -88,6 +89,7 @@ for r = 0, 3 do
 | 
			
		||||
		description = S("Moss"),
 | 
			
		||||
		drawtype = "nodebox",
 | 
			
		||||
		tiles = {"trunks_moss.png"..xform},
 | 
			
		||||
		use_texture_alpha = "clip",
 | 
			
		||||
		inventory_image = "trunks_moss.png",
 | 
			
		||||
		wield_image = "trunks_moss.png",
 | 
			
		||||
		paramtype = "light",
 | 
			
		||||
@@ -110,6 +112,7 @@ for r = 0, 3 do
 | 
			
		||||
		tiles = {"trunks_moss_fungus.png"..xform},
 | 
			
		||||
		inventory_image = "trunks_moss_fungus.png",
 | 
			
		||||
		wield_image = "trunks_moss_fungus.png",
 | 
			
		||||
		use_texture_alpha = "clip",
 | 
			
		||||
		paramtype = "light",
 | 
			
		||||
		paramtype2 = "wallmounted",
 | 
			
		||||
		sunlight_propagates = true,
 | 
			
		||||
@@ -376,6 +379,7 @@ for i in pairs(TRuNKS) do
 | 
			
		||||
--[[back]]			MoD.."_"..TRuNK..".png",
 | 
			
		||||
--[[front]]			MoD.."_"..TRuNK..".png"
 | 
			
		||||
				},
 | 
			
		||||
				use_texture_alpha = "clip",
 | 
			
		||||
				drawtype = "nodebox",
 | 
			
		||||
				selection_box = {type = "fixed", fixed = roots_cube},
 | 
			
		||||
				node_box = {type = "fixed", fixed = roots_sheet},
 | 
			
		||||
 
 | 
			
		||||
@@ -31,6 +31,7 @@ minetest.register_node("youngtrees:youngtree2_middle",{
 | 
			
		||||
	description = S("Young Tree 2 (middle)"),
 | 
			
		||||
	drawtype="nodebox",
 | 
			
		||||
	tiles = {"youngtree2branch.png"},
 | 
			
		||||
	use_texture_alpha = "clip",
 | 
			
		||||
	inventory_image = "youngtree2branch.png",
 | 
			
		||||
	wield_image = "youngtree2branch.png",
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user