From 393bc195fb92442d6ac63f32de221c8a3444fb88 Mon Sep 17 00:00:00 2001 From: epCode Date: Fri, 19 Feb 2021 13:11:18 -0800 Subject: [PATCH] Enable alpha for mobs --- mods/ENTITIES/mcl_mobs/api.lua | 1 + mods/ENTITIES/mobs_mc/slime+magma_cube.lua | 3 +++ .../mobs_mc/textures/mobs_mc_slime.png | Bin 992 -> 2040 bytes 3 files changed, 4 insertions(+) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index 460988972f..fff107ae66 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -3712,6 +3712,7 @@ end minetest.register_entity(name, { + use_texture_alpha = true, stepheight = def.stepheight or 0.6, name = name, type = def.type, diff --git a/mods/ENTITIES/mobs_mc/slime+magma_cube.lua b/mods/ENTITIES/mobs_mc/slime+magma_cube.lua index 98c29870ce..58b23b462f 100644 --- a/mods/ENTITIES/mobs_mc/slime+magma_cube.lua +++ b/mods/ENTITIES/mobs_mc/slime+magma_cube.lua @@ -78,6 +78,9 @@ local slime_big = { attack = "green_slime_attack", distance = 16, }, + do_custom = function(self) + ice_texture_alpha = minetest.features.object_use_texture_alpha and "blend" or true + end, damage = 4, reach = 3, armor = 100, diff --git a/mods/ENTITIES/mobs_mc/textures/mobs_mc_slime.png b/mods/ENTITIES/mobs_mc/textures/mobs_mc_slime.png index 82ed087193b0fed32b49e219f5dd22d6ab17f7bc..278fafb9d7d64bcfb1ce6232e5625b6a8f959e72 100644 GIT binary patch delta 2037 zcmV!!Be(Y0-_m1y>#yj!Ri&JAsejaD)k>{aLJF{(z#8xu zUp<%^#^W(ymITPYkF>(rehfR$Gw;0f&YLpczq4brupB4!)#q2?KmXz9uR&ND z`Z^wB7J$-WHxs9KS>{4smrvNR0ZNBmbpEUZumAvlD}-6lroDB7!W|O;Fmwk10K*Ef z|L_EF>t)V=^MAaKp=;q*aWMC@MtuXi?cw(08s`&MM{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