From 512765a37d639f5e8aef1c8f73cc813fd2b49695 Mon Sep 17 00:00:00 2001 From: epCode Date: Sun, 21 Feb 2021 17:10:04 -0800 Subject: [PATCH] Make use_texture_alpha an mobs_mc.entity setting --- mods/ENTITIES/mcl_mobs/api.lua | 2 +- mods/ENTITIES/mobs_mc/slime+magma_cube.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index fff107ae66..a45dae28da 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -3712,7 +3712,7 @@ end minetest.register_entity(name, { - use_texture_alpha = true, + use_texture_alpha = def.use_texture_alpha, 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..54269b46e6 100644 --- a/mods/ENTITIES/mobs_mc/slime+magma_cube.lua +++ b/mods/ENTITIES/mobs_mc/slime+magma_cube.lua @@ -110,6 +110,7 @@ local slime_big = { spawn_small_alternative = "mobs_mc:slime_small", on_die = spawn_children_on_die("mobs_mc:slime_small", 4, 1.0, 1.5), fire_resistant = true, + use_texture_alpha = true, } mobs:register_mob("mobs_mc:slime_big", slime_big)