Enable alpha for mobs
This commit is contained in:
parent
d29c045ad8
commit
393bc195fb
|
@ -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,
|
||||||
|
|
|
@ -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 |
Loading…
Reference in New Issue
Block a user