new sand monster death particles thanks to benrob

This commit is contained in:
TenPlus1 2018-01-12 20:48:48 +00:00
parent c06f3a55f9
commit ed67fa2e02
2 changed files with 4 additions and 6 deletions

View File

@ -19,7 +19,7 @@ local effect = function(pos, amount, texture, min_size, max_size, radius, gravit
minvel = {x = -radius, y = -radius, z = -radius},
maxvel = {x = radius, y = radius, z = radius},
minacc = {x = 0, y = gravity, z = 0},
maxacc = {x = 0, y = gravity, z = 0},
maxacc = {x = -20, y = gravity, z = 15},
minexptime = 0.1,
maxexptime = 1,
minsize = min_size,
@ -49,9 +49,7 @@ mobs:register_mob("mobs_monster:sand_monster", {
textures = {
{"mobs_sand_monster.png"},
},
blood_texture = {
"default_desert_sand.png", "default_sand.png"
},
blood_texture = "default_desert_sand.png",
makes_footstep_sound = true,
sounds = {
random = "mobs_sandmonster",
@ -88,9 +86,9 @@ mobs:register_mob("mobs_monster:sand_monster", {
]]
on_die = function(self, pos)
pos.y = pos.y + 0.5
effect(pos, 20, "default_desert_sand.png", nil, nil, 0.5, nil)
effect(pos, 30, "mobs_sand_particles.png", 0.1, 2, 3, 5)
pos.y = pos.y + 0.25
effect(pos, 20, "default_desert_sand.png", nil, nil, 1, nil)
effect(pos, 30, "mobs_sand_particles.png", 0.1, 2, 3, 5)
end,
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 B