From e96fddfc2d7f9449b879229788c0a4a692de16b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Sat, 13 Aug 2022 09:04:04 +0200 Subject: [PATCH] edit alpha --- scripts/damageblock.lua | 2 +- scripts/doors.lua | 4 ++-- scripts/toxicwater.lua | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/damageblock.lua b/scripts/damageblock.lua index 57681dd..f23db1d 100644 --- a/scripts/damageblock.lua +++ b/scripts/damageblock.lua @@ -26,7 +26,7 @@ minetest.register_node( groups = {cracky = 1, mesecon = 2}, drawtype = "glasslike", paramtype = "light", - alpha = 50, + use_texture_alpha = "blend", sunlight_propagates = true, sounds = stone_sounds, walkable = false, diff --git a/scripts/doors.lua b/scripts/doors.lua index 2dfbdc8..435068b 100644 --- a/scripts/doors.lua +++ b/scripts/doors.lua @@ -30,7 +30,7 @@ minetest.register_node( sunlight_propagates = true, sounds = stone_sounds, drawtype = "nodebox", - alpha = 160, + use_texture_alpha = "blend", node_box = { type = "fixed", fixed = {-0.5, -0.5, 0.4, 0.5, 0.5, 0.5} @@ -91,7 +91,7 @@ minetest.register_node( sunlight_propagates = true, sounds = stone_sounds, drawtype = "nodebox", - alpha = 160, + use_texture_alpha = "blend", node_box = { type = "fixed", fixed = {-0.5, -0.5, 0.4, 0.5, 0.5, 0.5} diff --git a/scripts/toxicwater.lua b/scripts/toxicwater.lua index 89b035a..82bbe91 100644 --- a/scripts/toxicwater.lua +++ b/scripts/toxicwater.lua @@ -4,7 +4,7 @@ minetest.register_node( description = "Toxic water", drawtype = "liquid", tiles = {"portalgun_toxwat.png"}, - alpha = 190, + use_texture_alpha = "blend" paramtype = "light", walkable = false, pointable = false, @@ -35,7 +35,7 @@ minetest.register_node( {name = "portalgun_toxwat.png", backface_culling = true}, {name = "portalgun_toxwat.png", backface_culling = false} }, - alpha = 190, + use_texture_alpha = "blend" paramtype = "light", paramtype2 = "flowingliquid", walkable = false,