From 6df04e3a3e00edcc6946df26309c500495c66421 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Mon, 5 Apr 2021 09:49:24 +0100 Subject: [PATCH] add fire_damage and tidy code --- mobs/ant_queen.lua | 1 + mobs/ant_soldier.lua | 1 + mobs/ant_worker.lua | 1 + mobs/black_widow.lua | 1 + mobs/bloco.lua | 1 + mobs/crab.lua | 1 + mobs/crocodile.lua | 1 + mobs/daddy_long_legs.lua | 1 + mobs/dolidrosaurus.lua | 1 + mobs/duck.lua | 1 + mobs/duckking.lua | 1 + mobs/echidna.lua | 1 + mobs/enderduck.lua | 1 + mobs/felucco.lua | 1 + mobs/flying_duck.lua | 1 + mobs/giant_sandworm.lua | 1 + mobs/icelamander.lua | 1 + mobs/icesnake.lua | 1 + mobs/kraken.lua | 1 + mobs/larva.lua | 3 +- mobs/lava_titan.lua | 1 + mobs/manticore.lua | 3 +- mobs/mantis.lua | 1 + mobs/mantis_beast.lua | 1 + mobs/masticone.lua | 33 +++++++++--------- mobs/mese_dragon.lua | 1 + mobs/moonheron.lua | 1 + mobs/mordain.lua | 1 + mobs/morde.lua | 33 +++++++++--------- mobs/morgre.lua | 1 + mobs/morgut.lua | 33 +++++++++--------- mobs/morlu.lua | 33 +++++++++--------- mobs/morvalar.lua | 72 ++++++++++++++++++++++------------------ mobs/morvy.lua | 36 +++++++++++--------- mobs/morwa.lua | 1 + mobs/night_master.lua | 67 +++++++++++++++++++------------------ mobs/octopus.lua | 2 ++ mobs/phoenix.lua | 1 + mobs/pumpboom.lua | 3 ++ mobs/pumpking.lua | 1 + mobs/sand_bloco.lua | 1 + mobs/sandworm.lua | 1 + mobs/scrausics.lua | 1 + mobs/signosigno.lua | 1 + mobs/snow_biter.lua | 1 + mobs/spiderduck.lua | 1 + mobs/stone_eater.lua | 1 + mobs/swimming_duck.lua | 1 + mobs/tarantula.lua | 34 ++++++++++--------- mobs/uloboros.lua | 1 + mobs/werewolf.lua | 1 + mobs/white_werewolf.lua | 1 + 52 files changed, 230 insertions(+), 162 deletions(-) diff --git a/mobs/ant_queen.lua b/mobs/ant_queen.lua index 2fcc820..c93bc4f 100644 --- a/mobs/ant_queen.lua +++ b/mobs/ant_queen.lua @@ -33,6 +33,7 @@ mobs:register_mob("nssm:ant_queen", { drawtype = "front", water_damage = 2, lava_damage = 7, + fire_damage = 7, light_damage = 0, blood_texture = "nssm_blood_blue.png", blood_amount = 50, diff --git a/mobs/ant_soldier.lua b/mobs/ant_soldier.lua index 45c0d91..40aec1f 100644 --- a/mobs/ant_soldier.lua +++ b/mobs/ant_soldier.lua @@ -31,6 +31,7 @@ mobs:register_mob("nssm:ant_soldier", { drawtype = "front", water_damage = 2, lava_damage = 7, + fire_damage = 7, light_damage = 0, group_attack = true, attack_animals = false, diff --git a/mobs/ant_worker.lua b/mobs/ant_worker.lua index 9a0c568..b8e4517 100644 --- a/mobs/ant_worker.lua +++ b/mobs/ant_worker.lua @@ -32,6 +32,7 @@ mobs:register_mob("nssm:ant_worker", { drawtype = "front", water_damage = 2, lava_damage = 7, + fire_damage = 7, light_damage = 0, group_attack = true, knock_back = 4, diff --git a/mobs/black_widow.lua b/mobs/black_widow.lua index 19c5165..09b1abd 100644 --- a/mobs/black_widow.lua +++ b/mobs/black_widow.lua @@ -31,6 +31,7 @@ mobs:register_mob("nssm:black_widow", { drawtype = "front", water_damage = 1, lava_damage = 7, + fire_damage = 7, group_attack = true, attack_animals = true, knock_back = 2, diff --git a/mobs/bloco.lua b/mobs/bloco.lua index 8cc9b23..5f4e8c3 100644 --- a/mobs/bloco.lua +++ b/mobs/bloco.lua @@ -31,6 +31,7 @@ mobs:register_mob("nssm:bloco", { water_damage = 3, lava_damage = 1, light_damage = 0, + fire_damage = 0, group_attack = true, attack_animals = true, knock_back = 0, diff --git a/mobs/crab.lua b/mobs/crab.lua index 552c5cd..cc5afb0 100644 --- a/mobs/crab.lua +++ b/mobs/crab.lua @@ -33,6 +33,7 @@ mobs:register_mob("nssm:crab", { drawtype = "front", water_damage = 0, lava_damage = 10, + fire_damage = 10, light_damage = 0, group_attack = true, attack_animals = true, diff --git a/mobs/crocodile.lua b/mobs/crocodile.lua index 848e2b6..e04fcad 100644 --- a/mobs/crocodile.lua +++ b/mobs/crocodile.lua @@ -29,6 +29,7 @@ mobs:register_mob("nssm:crocodile", { reach = 2, water_damage = 0, lava_damage = 10, + fire_damage = 10, light_damage = 0, group_attack = true, attack_animals = true, diff --git a/mobs/daddy_long_legs.lua b/mobs/daddy_long_legs.lua index d7278e6..c9d2060 100644 --- a/mobs/daddy_long_legs.lua +++ b/mobs/daddy_long_legs.lua @@ -29,6 +29,7 @@ mobs:register_mob("nssm:daddy_long_legs", { drawtype = "front", water_damage = 1, lava_damage = 7, + fire_damage = 7, light_damage = 0, group_attack = true, attack_animals = true, diff --git a/mobs/dolidrosaurus.lua b/mobs/dolidrosaurus.lua index 80fe8b8..1dd3216 100644 --- a/mobs/dolidrosaurus.lua +++ b/mobs/dolidrosaurus.lua @@ -36,6 +36,7 @@ mobs:register_mob("nssm:dolidrosaurus", { drawtype = "front", water_damage = 0, lava_damage = 10, + fire_damage = 10, light_damage = 0, group_attack = true, attack_animals = true, diff --git a/mobs/duck.lua b/mobs/duck.lua index ae3b15f..3f10db8 100644 --- a/mobs/duck.lua +++ b/mobs/duck.lua @@ -31,6 +31,7 @@ mobs:register_mob("nssm:duck", { fear_height = 5, floats = 1, lava_damage = 5, + fire_damage = 5, light_damage = 0, group_attack = true, attack_animals = true, diff --git a/mobs/duckking.lua b/mobs/duckking.lua index b2f4121..e2c9fba 100644 --- a/mobs/duckking.lua +++ b/mobs/duckking.lua @@ -35,6 +35,7 @@ mobs:register_mob("nssm:duckking", { water_damage = 0, floats = 1, lava_damage = 5, + fire_damage = 5, light_damage = 0, attack_type = "dogshoot", dogshoot_switch = true, diff --git a/mobs/echidna.lua b/mobs/echidna.lua index a7993d3..14c458a 100644 --- a/mobs/echidna.lua +++ b/mobs/echidna.lua @@ -30,6 +30,7 @@ mobs:register_mob("nssm:echidna", { water_damage = 0, floats = 1, lava_damage = 0, + fire_damage = 0, light_damage = 0, blood_texture = "nssm_blood.png", blood_amount = 10, diff --git a/mobs/enderduck.lua b/mobs/enderduck.lua index 3110df2..7fccaf7 100644 --- a/mobs/enderduck.lua +++ b/mobs/enderduck.lua @@ -33,6 +33,7 @@ mobs:register_mob("nssm:enderduck", { floats = 1, lava_damage = 5, light_damage = 0, + fire_damage = 4, group_attack = true, attack_animals = true, knock_back = 4, diff --git a/mobs/felucco.lua b/mobs/felucco.lua index 2c11983..9d9c3b2 100644 --- a/mobs/felucco.lua +++ b/mobs/felucco.lua @@ -29,6 +29,7 @@ mobs:register_mob("nssm:felucco", { drawtype = "front", water_damage = 2, lava_damage = 5, + fire_damage = 5, light_damage = 0, group_attack = true, attack_animals = true, diff --git a/mobs/flying_duck.lua b/mobs/flying_duck.lua index 0e9d804..7d3bd7a 100644 --- a/mobs/flying_duck.lua +++ b/mobs/flying_duck.lua @@ -30,6 +30,7 @@ mobs:register_mob("nssm:flying_duck", { drawtype = "front", water_damage = 0, lava_damage = 5, + fire_damage = 5, light_damage = 0, group_attack = true, attack_animals = true, diff --git a/mobs/giant_sandworm.lua b/mobs/giant_sandworm.lua index 54b989d..5000b93 100644 --- a/mobs/giant_sandworm.lua +++ b/mobs/giant_sandworm.lua @@ -28,6 +28,7 @@ mobs:register_mob("nssm:giant_sandworm", { water_damage = 5, lava_damage = 3, light_damage = 0, + fire_damage = 0, blood_texture = "nssm_blood_blue.png", blood_amount = 50, knock_back = 0, diff --git a/mobs/icelamander.lua b/mobs/icelamander.lua index 52bccab..e00a85b 100644 --- a/mobs/icelamander.lua +++ b/mobs/icelamander.lua @@ -31,6 +31,7 @@ mobs:register_mob("nssm:icelamander", { drawtype = "front", water_damage = 0, lava_damage = 30, + fire_damage = 20, light_damage = 0, attack_type = "dogshoot", dogshoot_switch = true, diff --git a/mobs/icesnake.lua b/mobs/icesnake.lua index e93a1ac..89d7c53 100644 --- a/mobs/icesnake.lua +++ b/mobs/icesnake.lua @@ -31,6 +31,7 @@ mobs:register_mob("nssm:icesnake", { drawtype = "front", water_damage = 0, lava_damage = 20, + fire_damage = 15, light_damage = 0, group_attack = true, attack_animals = true, diff --git a/mobs/kraken.lua b/mobs/kraken.lua index 7580100..4275087 100644 --- a/mobs/kraken.lua +++ b/mobs/kraken.lua @@ -35,6 +35,7 @@ mobs:register_mob("nssm:kraken", { drawtype = "front", water_damage = 0, lava_damage = 10, + fire_damage = 10, light_damage = 0, blood_texture = "nssm_blood_blue.png", blood_amount = 100, diff --git a/mobs/larva.lua b/mobs/larva.lua index 25b3177..9374f16 100644 --- a/mobs/larva.lua +++ b/mobs/larva.lua @@ -30,6 +30,7 @@ mobs:register_mob("nssm:larva", { drawtype = "front", water_damage = 2, lava_damage = 4, + fire_damage = 4, light_damage = 0, group_attack = true, attack_animals = true, @@ -75,7 +76,7 @@ mobs:register_mob("nssm:larva", { maxexptime = 1, minsize = 3, maxsize = 4, - collisiondetection =false, + collisiondetection = false, texture = "tnt_smoke.png" }) diff --git a/mobs/lava_titan.lua b/mobs/lava_titan.lua index 6f23a0b..81984d3 100644 --- a/mobs/lava_titan.lua +++ b/mobs/lava_titan.lua @@ -33,6 +33,7 @@ mobs:register_mob("nssm:lava_titan", { rotate = 270, light_damage = 0, lava_damage = 0, + fire_damage = 0, floats = 0, blood_texture = "stone_blood.png", blood_amount = 50, diff --git a/mobs/manticore.lua b/mobs/manticore.lua index ca13a4e..710241b 100644 --- a/mobs/manticore.lua +++ b/mobs/manticore.lua @@ -29,6 +29,7 @@ mobs:register_mob("nssm:manticore", { water_damage = 2, rotate = 270, lava_damage = 5, + fire_damage = 5, light_damage = 0, attack_type = "dogshoot", dogshoot_switch = true, @@ -51,7 +52,7 @@ mobs:register_mob("nssm:manticore", { run_end = 108, punch_start = 110, punch_end = 143, - shoot_start =180, + shoot_start = 180, shoot_end=230, } }) diff --git a/mobs/mantis.lua b/mobs/mantis.lua index 4eab711..a24dcc9 100644 --- a/mobs/mantis.lua +++ b/mobs/mantis.lua @@ -30,6 +30,7 @@ mobs:register_mob("nssm:mantis", { drawtype = "front", water_damage = 2, lava_damage = 5, + fire_damage = 5, light_damage = 0, group_attack = true, attack_animals = true, diff --git a/mobs/mantis_beast.lua b/mobs/mantis_beast.lua index c9e97ea..c61042f 100644 --- a/mobs/mantis_beast.lua +++ b/mobs/mantis_beast.lua @@ -31,6 +31,7 @@ mobs:register_mob("nssm:mantis_beast", { drawtype = "front", water_damage = 2, lava_damage = 5, + fire_damage = 5, light_damage = 0, group_attack = true, attack_animals = true, diff --git a/mobs/masticone.lua b/mobs/masticone.lua index 7bc6166..695d0a8 100644 --- a/mobs/masticone.lua +++ b/mobs/masticone.lua @@ -30,6 +30,7 @@ mobs:register_mob("nssm:masticone", { drawtype = "front", water_damage = 0, lava_damage = 10, + fire_damage = 10, floats = 0, light_damage = 0, group_attack = true, @@ -57,22 +58,22 @@ mobs:register_mob("nssm:masticone", { core.after(2, function() - minetest.add_particlespawner( - 200, --amount - 0.1, --time - {x = pos.x - 1, y = pos.y - 1, z = pos.z - 1}, --minpos - {x = pos.x + 1, y = pos.y + 1, z = pos.z + 1}, --maxpos - {x = -0, y = -0, z = -0}, --minvel - {x = 1, y = 1, z = 1}, --maxvel - {x = -0.5, y = 5, z = -0.5}, --minacc - {x = 0.5, y = 5, z = 0.5}, --maxacc - 0.1, --minexptime - 1, --maxexptime - 3, --minsize - 4, --maxsize - false, --collisiondetection - "tnt_smoke.png" --texture - ) + minetest.add_particlespawner({ + amount = 200, + time = 0.1, + minpos = {x = pos.x - 1, y = pos.y - 1, z = pos.z - 1}, + maxpos = {x = pos.x + 1, y = pos.y + 1, z = pos.z + 1}, + minvel = {x = -0, y = -0, z = -0}, + maxvel = {x = 1, y = 1, z = 1}, + minacc = {x = -0.5, y = 5, z = -0.5}, + maxacc = {x = 0.5, y = 5, z = 0.5}, + minexptime = 0.1, + maxexptime = 1, + minsize = 3, + maxsize = 4, + collisiondetection = false, + texture = "tnt_smoke.png" + }) for i = 1, 2 do diff --git a/mobs/mese_dragon.lua b/mobs/mese_dragon.lua index 7fe0362..1d270b2 100644 --- a/mobs/mese_dragon.lua +++ b/mobs/mese_dragon.lua @@ -31,6 +31,7 @@ mobs:register_mob("nssm:mese_dragon", { drawtype = "front", water_damage = 0, lava_damage = 0, + fire_damage = 0, light_damage = 0, on_rightclick = nil, attack_type = "dogshoot", diff --git a/mobs/moonheron.lua b/mobs/moonheron.lua index fcfbc50..f2f5e6c 100644 --- a/mobs/moonheron.lua +++ b/mobs/moonheron.lua @@ -30,6 +30,7 @@ mobs:register_mob("nssm:moonheron", { drawtype = "front", water_damage = 5, lava_damage = 5, + fire_damage = 5, group_attack = true, attack_animals = true, knock_back = 4, diff --git a/mobs/mordain.lua b/mobs/mordain.lua index b281872..0b8ac7b 100644 --- a/mobs/mordain.lua +++ b/mobs/mordain.lua @@ -28,6 +28,7 @@ mobs:register_mob("nssm:mordain", { drawtype = "front", water_damage = 0, lava_damage = 1, + fire_damage = 1, -- light_damage = 2, group_attack = true, attack_animals = true, diff --git a/mobs/morde.lua b/mobs/morde.lua index d347b05..f450f8e 100644 --- a/mobs/morde.lua +++ b/mobs/morde.lua @@ -30,6 +30,7 @@ mobs:register_mob("nssm:morde", { fear_height = 4, floats = 1, lava_damage = 0, + fire_damage = 0, light_damage = 0, group_attack = true, attack_animals = true, @@ -85,22 +86,22 @@ mobs:register_mob("nssm:morde", { damage_groups = {fleshy = self.damage} }, nil) - minetest.add_particlespawner( - 6, --amount - 1, --time - {x=p.x-0.5, y=p.y-0.5, z=p.z-0.5}, --minpos - {x=p.x+0.5, y=p.y+0.5, z=p.z+0.5}, --maxpos - {x=(s.x-p.x)*m, y=(s.y-p.y+1)*m, z=(s.z-p.z)*m}, --minvel - {x=(s.x-p.x)*m, y=(s.y-p.y+1)*m, z=(s.z-p.z)*m}, --maxvel - {x=s.x-p.x, y=s.y-p.y+1, z=s.z-p.z}, --minacc - {x=s.x-p.x, y=s.y-p.y+1, z=s.z-p.z}, --maxacc - 0.2, --minexptime - 0.3, --maxexptime - 2, --minsize - 3, --maxsize - false, --collisiondetection - "morparticle.png" --texture - ) + minetest.add_particlespawner({ + amount = 6, + time = 1, + minpos = {x=p.x-0.5, y=p.y-0.5, z=p.z-0.5}, + maxpos = {x=p.x+0.5, y=p.y+0.5, z=p.z+0.5}, + minvel = {x=(s.x-p.x)*m, y=(s.y-p.y+1)*m, z=(s.z-p.z)*m}, + maxvel = {x=(s.x-p.x)*m, y=(s.y-p.y+1)*m, z=(s.z-p.z)*m}, + minacc = {x=s.x-p.x, y=s.y-p.y+1, z=s.z-p.z}, + maxacc = {x=s.x-p.x, y=s.y-p.y+1, z=s.z-p.z}, + minexptime = 0.2, + maxexptime = 0.3, + minsize = 2, + maxsize = 3, + collisiondetection = false, + texture = "morparticle.png" + }) end end end, diff --git a/mobs/morgre.lua b/mobs/morgre.lua index 8e1dac5..318de33 100644 --- a/mobs/morgre.lua +++ b/mobs/morgre.lua @@ -30,6 +30,7 @@ mobs:register_mob("nssm:morgre", { drawtype = "front", water_damage = 0, lava_damage = 0, + fire_damage = 0, light_damage = 0, group_attack = true, attack_animals = true, diff --git a/mobs/morgut.lua b/mobs/morgut.lua index 182337e..dd05f42 100644 --- a/mobs/morgut.lua +++ b/mobs/morgut.lua @@ -31,6 +31,7 @@ mobs:register_mob("nssm:morgut", { fear_height = 4, floats = 1, lava_damage = 0, + fire_damage = 0, light_damage = 0, group_attack = true, attack_animals = true, @@ -102,22 +103,22 @@ mobs:register_mob("nssm:morgut", { local m = 2 - minetest.add_particlespawner( - 6, --amount - 1, --time - {x=p.x-0.5, y=p.y-0.5, z=p.z-0.5}, --minpos - {x=p.x+0.5, y=p.y+0.5, z=p.z+0.5}, --maxpos - {x=(s.x-p.x)*m, y=(s.y-p.y)*m, z=(s.z-p.z)*m}, --minvel - {x=(s.x-p.x)*m, y=(s.y-p.y)*m, z=(s.z-p.z)*m}, --maxvel - {x=s.x-p.x, y=s.y-p.y, z=s.z-p.z}, --minacc - {x=s.x-p.x, y=s.y-p.y, z=s.z-p.z}, --maxacc - 0.2, --minexptime - 0.3, --maxexptime - 2, --minsize - 3, --maxsize - false, --collisiondetection - "roasted_duck_legs.png" --texture - ) + minetest.add_particlespawner({ + amount = 6, + time = 1, + minpos = {x=p.x-0.5, y=p.y-0.5, z=p.z-0.5}, + maxpos = {x=p.x+0.5, y=p.y+0.5, z=p.z+0.5}, + minvel = {x=(s.x-p.x)*m, y=(s.y-p.y)*m, z=(s.z-p.z)*m}, + maxvel = {x=(s.x-p.x)*m, y=(s.y-p.y)*m, z=(s.z-p.z)*m}, + minacc = {x=s.x-p.x, y=s.y-p.y, z=s.z-p.z}, + maxacc = {x=s.x-p.x, y=s.y-p.y, z=s.z-p.z}, + minexptime = 0.2, + maxexptime = 0.3, + minsize = 2, + maxsize = 3, + collisiondetection = false, + texture = "roasted_duck_legs.png" + }) minetest.after(1, function(self) diff --git a/mobs/morlu.lua b/mobs/morlu.lua index 531ff2f..5e27ac2 100644 --- a/mobs/morlu.lua +++ b/mobs/morlu.lua @@ -32,6 +32,7 @@ mobs:register_mob("nssm:morlu", { fear_height = 4, floats = 1, lava_damage = 0, + fire_damage = 0, light_damage = 0, group_attack = true, attack_animals = true, @@ -161,22 +162,22 @@ mobs:register_mob("nssm:morlu", { end --minetest.chat_send_all("Nome della texture: "..nname) - minetest.add_particlespawner( - 1, --amount - 1, --time - {x=p.x, y=p.y+1, z=p.z}, --minpos - {x=p.x, y=p.y+1, z=p.z}, --maxpos - {x=(s.x-p.x)*m, y=(s.y-p.y)*m, z=(s.z-p.z)*m}, --minvel - {x=(s.x-p.x)*m, y=(s.y-p.y)*m, z=(s.z-p.z)*m}, --maxvel - {x=s.x-p.x, y=s.y-p.y-1, z=s.z-p.z}, --minacc - {x=s.x-p.x, y=s.y-p.y-1, z=s.z-p.z}, --maxacc - 0.5, --minexptime - 0.5, --maxexptime - 10, --minsize - 10, --maxsize - false, --collisiondetection - nname --texture - ) + minetest.add_particlespawner({ + amount = 1, + time = 1, + minpos = {x=p.x, y=p.y+1, z=p.z}, + maxpos = {x=p.x, y=p.y+1, z=p.z}, + minvel = {x=(s.x-p.x)*m, y=(s.y-p.y)*m, z=(s.z-p.z)*m}, + maxvel = {x=(s.x-p.x)*m, y=(s.y-p.y)*m, z=(s.z-p.z)*m}, + minacc = {x=s.x-p.x, y=s.y-p.y-1, z=s.z-p.z}, + maxacc = {x=s.x-p.x, y=s.y-p.y-1, z=s.z-p.z}, + minexptime = 0.5, + maxexptime = 0.5, + minsize = 10, + maxsize = 10, + collisiondetection = false, + texture = nname + }) minetest.after(1, function (self) diff --git a/mobs/morvalar.lua b/mobs/morvalar.lua index 83b8c2d..e700e87 100644 --- a/mobs/morvalar.lua +++ b/mobs/morvalar.lua @@ -49,6 +49,7 @@ mobs:register_mob("nssm:morvalar", { fear_height = 4, floats = 1, lava_damage = 0, + fire_damage = 0, blood_texture = "morparticle.png", blood_amount = 10, knock_back = 0, @@ -135,22 +136,22 @@ mobs:register_mob("nssm:morvalar", { nname = "3d_armor_inv_chestplate_diamond.png" end - minetest.add_particlespawner( - 1, --amount - 1, --time - {x=p.x, y=p.y+1, z=p.z}, --minpos - {x=p.x, y=p.y+1, z=p.z}, --maxpos - {x=(s.x-p.x)*m, y=(s.y-p.y)*m, z=(s.z-p.z)*m}, --minvel - {x=(s.x-p.x)*m, y=(s.y-p.y)*m, z=(s.z-p.z)*m}, --maxvel - {x=s.x-p.x, y=s.y-p.y-1, z=s.z-p.z}, --minacc - {x=s.x-p.x, y=s.y-p.y-1, z=s.z-p.z}, --maxacc - 0.5, --minexptime - 0.5, --maxexptime - 10, --minsize - 10, --maxsize - false, --collisiondetection - nname --texture - ) + minetest.add_particlespawner({ + amount = 1, + time = 1, + minpos = {x=p.x, y=p.y+1, z=p.z}, + maxpos = {x=p.x, y=p.y+1, z=p.z}, + minvel = {x=(s.x-p.x)*m, y=(s.y-p.y)*m, z=(s.z-p.z)*m}, + maxvel = {x=(s.x-p.x)*m, y=(s.y-p.y)*m, z=(s.z-p.z)*m}, + minacc = {x=s.x-p.x, y=s.y-p.y-1, z=s.z-p.z}, + maxacc = {x=s.x-p.x, y=s.y-p.y-1, z=s.z-p.z}, + minexptime = 0.5, + maxexptime = 0.5, + minsize = 10, + maxsize = 10, + collisiondetection = false, + texture = nname + }) minetest.after(1, function (self) @@ -234,6 +235,7 @@ mobs:register_mob("nssm:morvalar6", { fear_height = 4, floats = 1, lava_damage = 0, + fire_damage = 0, light_damage = 0, blood_texture = "morparticle.png", blood_amount = 10, @@ -302,22 +304,22 @@ mobs:register_mob("nssm:morvalar6", { }, nil) else s.y = s.y+1.8 - minetest.add_particlespawner( - 1, --amount - 1, --time - {x=p.x, y=p.y+1, z=p.z}, --minpos - {x=p.x, y=p.y+1, z=p.z}, --maxpos - {x=(s.x-p.x)*m, y=(s.y-p.y)*m, z=(s.z-p.z)*m}, --minvel - {x=(s.x-p.x)*m, y=(s.y-p.y)*m, z=(s.z-p.z)*m}, --maxvel - {x=s.x-p.x, y=s.y-p.y-1, z=s.z-p.z}, --minacc - {x=s.x-p.x, y=s.y-p.y-1, z=s.z-p.z}, --maxacc - 0.5, --minexptime - 0.5, --maxexptime - 10, --minsize - 10, --maxsize - false, --collisiondetection - "roasted_duck_legs.png" --texture - ) + minetest.add_particlespawner({ + amount = 1, + time = 1, + minpos = {x=p.x, y=p.y+1, z=p.z}, + maxpos = {x=p.x, y=p.y+1, z=p.z}, + minvel = {x=(s.x-p.x)*m, y=(s.y-p.y)*m, z=(s.z-p.z)*m}, + maxvel = {x=(s.x-p.x)*m, y=(s.y-p.y)*m, z=(s.z-p.z)*m}, + minacc = {x=s.x-p.x, y=s.y-p.y-1, z=s.z-p.z}, + maxacc = {x=s.x-p.x, y=s.y-p.y-1, z=s.z-p.z}, + minexptime = 0.5, + maxexptime = 0.5, + minsize = 10, + maxsize = 10, + collisiondetection = false, + texture = "roasted_duck_legs.png" + }) end self.morvalar6_timer = os.time() end @@ -361,6 +363,7 @@ mobs:register_mob("nssm:morvalar5", { fear_height = 4, floats = 1, lava_damage = 0, + fire_damage = 0, light_damage = 0, blood_texture="morparticle.png", blood_amount=10, @@ -432,6 +435,7 @@ mobs:register_mob("nssm:morvalar4", { fear_height = 4, floats = 1, lava_damage = 0, + fire_damage = 0, light_damage = 0, blood_texture="morparticle.png", blood_amount=10, @@ -554,6 +558,7 @@ mobs:register_mob("nssm:morvalar3", { fear_height = 4, floats = 1, lava_damage = 0, + fire_damage = 0, light_damage = 0, blood_texture="morparticle.png", blood_amount=10, @@ -615,6 +620,7 @@ mobs:register_mob("nssm:morvalar2", { fear_height = 4, floats = 1, lava_damage = 0, + fire_damage = 0, light_damage = 0, blood_texture="morparticle.png", blood_amount=10, @@ -715,6 +721,7 @@ mobs:register_mob("nssm:morvalar1", { fear_height = 4, floats = 1, lava_damage = 0, + fire_damage = 0, light_damage = 0, blood_texture="morparticle.png", blood_amount=10, @@ -805,6 +812,7 @@ mobs:register_mob("nssm:morvalar0", { fear_height = 4, floats = 1, lava_damage = 0, + fire_damage = 0, light_damage = 0, blood_texture="morparticle.png", blood_amount=10, diff --git a/mobs/morvy.lua b/mobs/morvy.lua index 2a41c39..b84b2f1 100644 --- a/mobs/morvy.lua +++ b/mobs/morvy.lua @@ -30,6 +30,7 @@ mobs:register_mob("nssm:morvy", { water_damage = 0, lava_damage = 0, light_damage = 0, + fire_damage = 0, group_attack = true, attack_animals = true, knock_back = 1, @@ -115,22 +116,22 @@ mobs:register_mob("nssm:morvy", { minetest.add_entity(pos1, bat) - minetest.add_particlespawner( - 20, --amount - 0.1, --time - {x=pos1.x-0.2, y=pos1.y-0.2, z=pos1.z-0.2}, --minpos - {x=pos1.x+0.2, y=pos1.y+0.2, z=pos1.z+0.2}, --maxpos - {x=0, y=0, z=0}, --minvel - {x=0.1, y=0.3, z=0.1}, --maxvel - {x=-0.5,y=1,z=-0.5}, --minacc - {x=0.5,y=1,z=0.5}, --maxacc - 0.1, --minexptime - 4, --maxexptime - 2, --minsize - 6, --maxsize - false, --collisiondetection - "morparticle.png" --texture - ) + minetest.add_particlespawner({ + amount = 20, + time = 0.1, + minpos = {x=pos1.x-0.2, y=pos1.y-0.2, z=pos1.z-0.2}, + maxpos = {x=pos1.x+0.2, y=pos1.y+0.2, z=pos1.z+0.2}, + minvel = {x=0, y=0, z=0}, + maxvel = {x=0.1, y=0.3, z=0.1}, + minacc = {x=-0.5,y=1,z=-0.5}, + maxacc = {x=0.5,y=1,z=0.5}, + minexptime = 0.1, + maxexptime = 4, + minsize = 2, + maxsize = 6, + collisiondetection = false, + texture = "morparticle.png" + }) end end end @@ -170,6 +171,7 @@ mobs:register_mob("nssm:morbat1", { drawtype = "front", water_damage = 0, lava_damage = 0, + fire_damage = 0, light_damage = 0, blood_texture="morparticle.png", fly = true, @@ -218,6 +220,7 @@ mobs:register_mob("nssm:morbat2", { drawtype = "front", water_damage = 0, lava_damage = 0, + fire_damage = 0, light_damage = 0, blood_texture="morparticle.png", fly = true, @@ -268,6 +271,7 @@ mobs:register_mob("nssm:morbat3", { drawtype = "front", water_damage = 0, lava_damage = 0, + fire_damage = 0, light_damage = 0, blood_texture = "morparticle.png", fly = true, diff --git a/mobs/morwa.lua b/mobs/morwa.lua index f027118..f0fd446 100644 --- a/mobs/morwa.lua +++ b/mobs/morwa.lua @@ -29,6 +29,7 @@ mobs:register_mob("nssm:morwa", { reach = 4, rotate = 270, lava_damage = 0, + fire_damage = 0, light_damage = 0, group_attack = true, attack_animals = true, diff --git a/mobs/night_master.lua b/mobs/night_master.lua index 5e4b08c..5f6b9c0 100644 --- a/mobs/night_master.lua +++ b/mobs/night_master.lua @@ -27,6 +27,7 @@ mobs:register_mob("nssm:night_master", { drawtype = "front", water_damage = 0, lava_damage = 5, + fire_damage = 5, light_damage = 0, blood_texture = "nssm_blood.png", blood_amount = 50, @@ -47,22 +48,22 @@ mobs:register_mob("nssm:night_master", { on_die = function(self, pos) - minetest.add_particlespawner( - 200, --amount - 0.1, --time - {x=pos.x-1, y=pos.y-1, z=pos.z-1}, --minpos - {x=pos.x+1, y=pos.y+1, z=pos.z+1}, --maxpos - {x=-0, y=-0, z=-0}, --minvel - {x=1, y=1, z=1}, --maxvel - {x=-0.5,y=5,z=-0.5}, --minacc - {x=0.5,y=5,z=0.5}, --maxacc - 0.1, --minexptime - 1, --maxexptime - 3, --minsize - 4, --maxsize - false, --collisiondetection - "tnt_smoke.png" --texture - ) + minetest.add_particlespawner({ + amount = 200, + time = 0.1, + minpos = {x=pos.x-1, y=pos.y-1, z=pos.z-1}, + maxpos = {x=pos.x+1, y=pos.y+1, z=pos.z+1}, + minvel = {x=-0, y=-0, z=-0}, + maxvel = {x=1, y=1, z=1}, + minacc = {x=-0.5,y=5,z=-0.5}, + maxacc = {x=0.5,y=5,z=0.5}, + minexptime = 0.1, + maxexptime = 1, + minsize = 3, + maxsize = 4, + collisiondetection = false, + texture = "tnt_smoke.png" + }) self.object:remove() @@ -99,6 +100,7 @@ mobs:register_mob("nssm:night_master_2", { drawtype = "front", water_damage = 0, lava_damage = 5, + fire_damage = 5, light_damage = 0, fly = true, attack_type = "dogfight", @@ -117,22 +119,22 @@ mobs:register_mob("nssm:night_master_2", { on_die = function(self, pos) - minetest.add_particlespawner( - 200, --amount - 0.1, --time - {x=pos.x-1, y=pos.y-1, z=pos.z-1}, --minpos - {x=pos.x+1, y=pos.y+1, z=pos.z+1}, --maxpos - {x=-0, y=-0, z=-0}, --minvel - {x=1, y=1, z=1}, --maxvel - {x=-0.5,y=5,z=-0.5}, --minacc - {x=0.5,y=5,z=0.5}, --maxacc - 0.1, --minexptime - 1, --maxexptime - 3, --minsize - 4, --maxsize - false, --collisiondetection - "tnt_smoke.png" --texture - ) + minetest.add_particlespawner({ + amount = 200, + time = 0.1, + minpos = {x=pos.x-1, y=pos.y-1, z=pos.z-1}, + maxpos = {x=pos.x+1, y=pos.y+1, z=pos.z+1}, + minvel = {x=-0, y=-0, z=-0}, + maxvel = {x=1, y=1, z=1}, + minacc = {x=-0.5,y=5,z=-0.5}, + maxacc = {x=0.5,y=5,z=0.5}, + minexptime = 0.1, + maxexptime = 1, + minsize = 3, + maxsize = 4, + collisiondetection = false, + texture = "tnt_smoke.png" + }) self.object:remove() @@ -174,6 +176,7 @@ mobs:register_mob("nssm:night_master_1", { drawtype = "front", water_damage = 0, lava_damage = 5, + fire_damage = 5, light_damage = 0, fly = true, attack_type = "dogfight", diff --git a/mobs/octopus.lua b/mobs/octopus.lua index 7d346cb..f460ae3 100644 --- a/mobs/octopus.lua +++ b/mobs/octopus.lua @@ -32,6 +32,7 @@ mobs:register_mob("nssm:octopus", { drawtype = "front", water_damage = 0, lava_damage = 10, + fire_damage = 10, light_damage = 0, group_attack = true, attack_animals = true, @@ -86,6 +87,7 @@ mobs:register_mob("nssm:xgaloctopus", { drawtype = "front", water_damage = 0, lava_damage = 10, + fire_damage = 10, light_damage = 0, group_attack = true, attack_animals = true, diff --git a/mobs/phoenix.lua b/mobs/phoenix.lua index 7bab14d..086afb9 100644 --- a/mobs/phoenix.lua +++ b/mobs/phoenix.lua @@ -33,6 +33,7 @@ mobs:register_mob("nssm:phoenix", { drawtype = "front", water_damage = 5, lava_damage = 0, + fire_damage = 0, light_damage = 0, blood_texture = "nssm_blood.png", blood_amount = 50, diff --git a/mobs/pumpboom.lua b/mobs/pumpboom.lua index 0e524e8..b35e285 100644 --- a/mobs/pumpboom.lua +++ b/mobs/pumpboom.lua @@ -29,6 +29,7 @@ mobs:register_mob("nssm:pumpboom_small", { drawtype = "front", water_damage = 2, lava_damage = 5, + fire_damage = 5, light_damage = 0, group_attack = true, attack_animals = true, @@ -80,6 +81,7 @@ mobs:register_mob("nssm:pumpboom_medium", { drawtype = "front", water_damage = 2, lava_damage = 5, + fire_damage = 5, light_damage = 0, group_attack = true, attack_animals = true, @@ -131,6 +133,7 @@ mobs:register_mob("nssm:pumpboom_large", { drawtype = "front", water_damage = 2, lava_damage = 5, + fire_damage = 5, light_damage = 0, group_attack = true, attack_animals = true, diff --git a/mobs/pumpking.lua b/mobs/pumpking.lua index 018ed83..0f088c6 100644 --- a/mobs/pumpking.lua +++ b/mobs/pumpking.lua @@ -31,6 +31,7 @@ mobs:register_mob("nssm:pumpking", { drawtype = "front", water_damage = 2, lava_damage = 5, + fire_damage = 5, light_damage = 0, blood_texture = "nssm_blood.png", blood_amount = 25, diff --git a/mobs/sand_bloco.lua b/mobs/sand_bloco.lua index e491d9f..93ba7b0 100644 --- a/mobs/sand_bloco.lua +++ b/mobs/sand_bloco.lua @@ -30,6 +30,7 @@ mobs:register_mob("nssm:sand_bloco", { drawtype = "front", water_damage = 10, lava_damage = 1, + fire_damage = 1, light_damage = 0, group_attack = true, attack_animals = true, diff --git a/mobs/sandworm.lua b/mobs/sandworm.lua index 77a7806..186a8ba 100644 --- a/mobs/sandworm.lua +++ b/mobs/sandworm.lua @@ -31,6 +31,7 @@ mobs:register_mob("nssm:sandworm", { drawtype = "front", water_damage = 5, lava_damage = 10, + fire_damage = 10, light_damage = 0, group_attack = true, attack_animals = true, diff --git a/mobs/scrausics.lua b/mobs/scrausics.lua index 88339b0..7712408 100644 --- a/mobs/scrausics.lua +++ b/mobs/scrausics.lua @@ -30,6 +30,7 @@ mobs:register_mob("nssm:scrausics", { drawtype = "front", water_damage = 5, lava_damage = 5, + fire_damage = 5, light_damage = 0, group_attack = true, attack_animals = true, diff --git a/mobs/signosigno.lua b/mobs/signosigno.lua index 3efb057..a7069bb 100644 --- a/mobs/signosigno.lua +++ b/mobs/signosigno.lua @@ -27,6 +27,7 @@ mobs:register_mob("nssm:signosigno", { drawtype = "front", water_damage = 1, lava_damage = 2, + fire_damage = 2, light_damage = 1, group_attack = true, attack_animals = true, diff --git a/mobs/snow_biter.lua b/mobs/snow_biter.lua index 18737e3..ec1bec0 100644 --- a/mobs/snow_biter.lua +++ b/mobs/snow_biter.lua @@ -32,6 +32,7 @@ mobs:register_mob("nssm:snow_biter", { drawtype = "front", water_damage = 0, lava_damage = 30, + fire_damage = 20, light_damage = 0, group_attack = true, attack_animals = true, diff --git a/mobs/spiderduck.lua b/mobs/spiderduck.lua index d527b23..02455f2 100644 --- a/mobs/spiderduck.lua +++ b/mobs/spiderduck.lua @@ -31,6 +31,7 @@ mobs:register_mob("nssm:spiderduck", { drawtype = "front", water_damage = 2, lava_damage = 5, + fire_damage = 5, light_damage = 0, group_attack = true, attack_animals = true, diff --git a/mobs/stone_eater.lua b/mobs/stone_eater.lua index cefed5c..91c53c7 100644 --- a/mobs/stone_eater.lua +++ b/mobs/stone_eater.lua @@ -28,6 +28,7 @@ mobs:register_mob("nssm:stone_eater", { drawtype = "front", water_damage = 1, lava_damage = 1, + fire_damage = 1, group_attack = true, attack_animals = true, knock_back = 0, diff --git a/mobs/swimming_duck.lua b/mobs/swimming_duck.lua index 483da4c..bef2937 100644 --- a/mobs/swimming_duck.lua +++ b/mobs/swimming_duck.lua @@ -31,6 +31,7 @@ mobs:register_mob("nssm:swimming_duck", { drawtype = "front", water_damage = 0, lava_damage = 10, + fire_damage = 10, light_damage = 0, group_attack = true, attack_animals = true, diff --git a/mobs/tarantula.lua b/mobs/tarantula.lua index d4cbe2c..4c682a2 100644 --- a/mobs/tarantula.lua +++ b/mobs/tarantula.lua @@ -28,6 +28,7 @@ mobs:register_mob("nssm:tarantula", { drawtype = "front", water_damage = 1, lava_damage = 7, + fire_damage = 7, reach = 3, knock_back = 0, blood_texture = "nssm_blood_blue.png", @@ -57,22 +58,22 @@ mobs:register_mob("nssm:tarantula", { self.object:remove() - minetest.add_particlespawner( - 200, --amount - 0.1, --time - {x=pos.x-1, y=pos.y-1, z=pos.z-1}, --minpos - {x=pos.x+1, y=pos.y+1, z=pos.z+1}, --maxpos - {x=-0, y=-0, z=-0}, --minvel - {x=1, y=1, z=1}, --maxvel - {x=-0.5,y=5,z=-0.5}, --minacc - {x=0.5,y=5,z=0.5}, --maxacc - 0.1, --minexptime - 1, --maxexptime - 3, --minsize - 4, --maxsize - false, --collisiondetection - "tnt_smoke.png" --texture - ) + minetest.add_particlespawner({ + amount = 200, + time = 0.1, + minpos = {x=pos.x-1, y=pos.y-1, z=pos.z-1}, + maxpos = {x=pos.x+1, y=pos.y+1, z=pos.z+1}, + minvel = {x=-0, y=-0, z=-0}, + maxvel = {x=1, y=1, z=1}, + minacc = {x=-0.5,y=5,z=-0.5}, + maxacc = {x=0.5,y=5,z=0.5}, + minexptime = 0.1, + maxexptime = 1, + minsize = 3, + maxsize = 4, + collisiondetection = false, + texture = "tnt_smoke.png" + }) minetest.add_entity(pos, "nssm:tarantula_propower") end, @@ -112,6 +113,7 @@ mobs:register_mob("nssm:tarantula_propower", { drawtype = "front", water_damage = 1, lava_damage = 3, + fire_damage = 3, reach = 4, knock_back = 0, blood_texture = "nssm_blood_blue.png", diff --git a/mobs/uloboros.lua b/mobs/uloboros.lua index 4e6bd9e..1eff141 100644 --- a/mobs/uloboros.lua +++ b/mobs/uloboros.lua @@ -31,6 +31,7 @@ mobs:register_mob("nssm:uloboros", { drawtype = "front", water_damage = 1, lava_damage = 7, + fire_damage = 7, light_damage = 0, group_attack = true, attack_animals = true, diff --git a/mobs/werewolf.lua b/mobs/werewolf.lua index 1a436e0..f2c568c 100644 --- a/mobs/werewolf.lua +++ b/mobs/werewolf.lua @@ -28,6 +28,7 @@ mobs:register_mob("nssm:werewolf", { drawtype = "front", water_damage = 2, lava_damage = 5, + fire_damage = 5, light_damage = 0, group_attack = true, attack_animals = true, diff --git a/mobs/white_werewolf.lua b/mobs/white_werewolf.lua index 01c6580..7f8be70 100644 --- a/mobs/white_werewolf.lua +++ b/mobs/white_werewolf.lua @@ -28,6 +28,7 @@ mobs:register_mob("nssm:white_werewolf", { drawtype = "front", water_damage = 2, lava_damage = 5, + fire_damage = 5, light_damage = 0, group_attack = true, attack_animals = true,