1
0
Fork 0

Enable alpha for mobs

This commit is contained in:
epCode 2021-02-19 13:11:18 -08:00
parent d29c045ad8
commit 393bc195fb
3 changed files with 4 additions and 0 deletions

View File

@ -3712,6 +3712,7 @@ end
minetest.register_entity(name, { minetest.register_entity(name, {
use_texture_alpha = true,
stepheight = def.stepheight or 0.6, stepheight = def.stepheight or 0.6,
name = name, name = name,
type = def.type, type = def.type,

View File

@ -78,6 +78,9 @@ local slime_big = {
attack = "green_slime_attack", attack = "green_slime_attack",
distance = 16, distance = 16,
}, },
do_custom = function(self)
ice_texture_alpha = minetest.features.object_use_texture_alpha and "blend" or true
end,
damage = 4, damage = 4,
reach = 3, reach = 3,
armor = 100, armor = 100,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 992 B

After

Width:  |  Height:  |  Size: 2.0 KiB