diff --git a/mods/bed/init.lua b/mods/bed/init.lua index 69a5107..87d9b1b 100644 --- a/mods/bed/init.lua +++ b/mods/bed/init.lua @@ -270,6 +270,7 @@ minetest.register_node( wield_image = "bed_bed_inventory.png", inventory_image = "bed_bed_inventory.png", tiles = {"bed_foot.png", "default_wood.png", "bed_side.png"}, + use_texture_alpha = "clip", groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, bed = 1}, is_ground_content = false, sounds = default.node_sound_wood_defaults(), @@ -443,6 +444,7 @@ minetest.register_node( pointable = false, diggable = false, tiles = {"bed_head.png", "default_wood.png", "bed_side.png"}, + use_texture_alpha = "clip", groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3}, sounds = default.node_sound_wood_defaults(), node_box = { diff --git a/mods/default/init.lua b/mods/default/init.lua index 3199ffb..2295664 100644 --- a/mods/default/init.lua +++ b/mods/default/init.lua @@ -5,13 +5,10 @@ default = {} -default.SWAMP_WATER_ALPHA = 220 default.SWAMP_WATER_VISC = 4 -default.RIVER_WATER_ALPHA = 160 default.RIVER_WATER_VISC = 2 -default.WATER_ALPHA = 200 default.WATER_VISC = 1 default.LIGHT_MAX = 14 diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index fabab7d..b9fb72e 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -686,6 +686,7 @@ minetest.register_node( _tt_help = S("Grows on sand or dirt near water"), drawtype = "nodebox", tiles = {"default_papyrus_repixture.png"}, + use_texture_alpha = "clip", inventory_image = "default_papyrus_inventory.png", wield_image = "default_papyrus_inventory.png", paramtype = "light", @@ -807,6 +808,7 @@ minetest.register_node( "default_ladder_nodebox_back.png", "default_ladder_nodebox_front.png" }, + use_texture_alpha = "clip", inventory_image = "default_ladder_inventory.png", wield_image = "default_ladder_inventory.png", paramtype = "light", @@ -926,6 +928,7 @@ minetest.register_node( fixed = {-0.5, -0.5, -0.5, 0.5, -0.5 + (1 / 16), 0.5} }, tiles = {"default_flowers.png"}, + use_texture_alpha = "clip", inventory_image = "default_flowers_inventory.png", wield_image = "default_flowers_inventory.png", paramtype = "light", @@ -1083,6 +1086,7 @@ minetest.register_node( _tt_food_satiation = 10, drawtype = "nodebox", tiles = {"default_apple_top.png", "default_apple_bottom.png", "default_apple_side.png"}, + use_texture_alpha = "clip", inventory_image = "default_apple.png", wield_image = "default_apple.png", paramtype = "light", @@ -1110,6 +1114,7 @@ minetest.register_node( _tt_food_satiation = 40, drawtype = "nodebox", tiles = {"default_clam.png"}, + use_texture_alpha = "clip", inventory_image = "default_clam_inventory.png", wield_image = "default_clam_inventory.png", paramtype = "light", @@ -1158,7 +1163,6 @@ minetest.register_node( }, }, drop = "", - alpha = default.WATER_ALPHA, paramtype = "light", walkable = false, pointable = false, @@ -1189,7 +1193,6 @@ minetest.register_node( }, }, drop = "", - alpha = default.WATER_ALPHA, paramtype = "light", walkable = false, pointable = false, @@ -1226,7 +1229,6 @@ minetest.register_node( }, }, drop= "", - alpha = default.RIVER_WATER_ALPHA, paramtype = "light", walkable = false, pointable = false, @@ -1259,7 +1261,6 @@ minetest.register_node( }, }, drop= "", - alpha = default.RIVER_WATER_ALPHA, paramtype = "light", walkable = false, pointable = false, @@ -1298,7 +1299,6 @@ minetest.register_node( }, }, drop= "", - alpha = default.SWAMP_WATER_ALPHA, paramtype = "light", walkable = false, pointable = false, @@ -1331,7 +1331,6 @@ minetest.register_node( }, }, drop= "", - alpha = default.SWAMP_WATER_ALPHA, paramtype = "light", walkable = false, pointable = false, diff --git a/mods/default/torch.lua b/mods/default/torch.lua index d6b3010..0441cce 100644 --- a/mods/default/torch.lua +++ b/mods/default/torch.lua @@ -12,6 +12,7 @@ local function register_torch(subname, description, tt_help, tiles, overlay_tile _tt_help = tt_help, drawtype = "nodebox", tiles = tiles, + use_texture_alpha = "clip", overlay_tiles = overlay_tiles, inventory_image = inv_image, wield_image = inv_image, @@ -91,6 +92,7 @@ local function register_torch(subname, description, tt_help, tiles, overlay_tile { drawtype = "nodebox", tiles = tiles2, + use_texture_alpha = "clip", overlay_tiles = overlay_tiles2, paramtype = "light", paramtype2 = "wallmounted", diff --git a/mods/door/init.lua b/mods/door/init.lua index 4d644c4..4b7f373 100644 --- a/mods/door/init.lua +++ b/mods/door/init.lua @@ -153,6 +153,7 @@ function door.register_door(name, def) name.."_b_1", { tiles = {tb[2], tb[2], tb[2], tb[2], tb[1], tb[1].."^[transformfx"}, + use_texture_alpha = "clip", paramtype = "light", paramtype2 = "facedir", drop = name, @@ -191,6 +192,7 @@ function door.register_door(name, def) name.."_t_1", { tiles = {tt[2], tt[2], tt[2], tt[2], tt[1], tt[1].."^[transformfx"}, + use_texture_alpha = "clip", paramtype = "light", paramtype2 = "facedir", drop = "", @@ -228,6 +230,7 @@ function door.register_door(name, def) name.."_b_2", { tiles = {tb[2], tb[2], tb[2], tb[2], tb[1].."^[transformfx", tb[1]}, + use_texture_alpha = "clip", paramtype = "light", paramtype2 = "facedir", drop = name, @@ -265,6 +268,7 @@ function door.register_door(name, def) name.."_t_2", { tiles = {tt[2], tt[2], tt[2], tt[2], tt[1].."^[transformfx", tt[1]}, + use_texture_alpha = "clip", paramtype = "light", paramtype2 = "facedir", drop = "",