From ed67fa2e02a692737dd2a5afcb737f0177cfdc66 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Fri, 12 Jan 2018 20:48:48 +0000 Subject: [PATCH] new sand monster death particles thanks to benrob --- sand_monster.lua | 10 ++++------ textures/mobs_sand_particles.png | Bin 0 -> 148 bytes 2 files changed, 4 insertions(+), 6 deletions(-) create mode 100644 textures/mobs_sand_particles.png diff --git a/sand_monster.lua b/sand_monster.lua index 072483c..ca27fb6 100644 --- a/sand_monster.lua +++ b/sand_monster.lua @@ -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, }) diff --git a/textures/mobs_sand_particles.png b/textures/mobs_sand_particles.png new file mode 100644 index 0000000000000000000000000000000000000000..d8822313c4190150d149056f816217c68b1b2964 GIT binary patch literal 148 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`(Vi}jAr`&K2@)j_PQAMF|HPl% zw~GG@SGqE`FLMm{+;uG1+<32)78&qol`;+044c0`v3p{ literal 0 HcmV?d00001