update particlespawner

This commit is contained in:
tenplus1 2021-01-12 20:42:54 +00:00
parent f152b311b7
commit 5e5f5d7382

View File

@ -62,24 +62,24 @@ mobs:register_mob("nssm:larva", {
self.object:remove() self.object:remove()
minetest.add_particlespawner( minetest.add_particlespawner({
200, --amount amount = 200,
0.1, --time time = 0.1,
{x=pos.x-1, y=pos.y-1, z=pos.z-1}, --minpos minpos = {x = pos.x - 1, y = pos.y - 1, z = pos.z - 1},
{x=pos.x+1, y=pos.y+1, z=pos.z+1}, --maxpos maxpos = {x = pos.x + 1, y = pos.y + 1, z = pos.z + 1},
{x=-0, y=-0, z=-0}, --minvel minvel = {x = -0, y = -0, z = -0},
{x=1, y=1, z=1}, --maxvel maxvel = {x = 1, y = 1, z = 1},
{x=-0.5,y=5,z=-0.5}, --minacc minacc = {x = -0.5, y = 5, z = -0.5},
{x=0.5,y=5,z=0.5}, --maxacc maxacc = {x = 0.5, y = 5, z = 0.5},
0.1, --minexptime minexptime = 0.1,
1, --maxexptime maxexptime = 1,
3, --minsize minsize = 3,
4, --maxsize maxsize = 4,
false, --collisiondetection collisiondetection =false,
"tnt_smoke.png" --texture texture = "tnt_smoke.png"
) })
if math.random(1, 2) == 1 then if math.random(2) == 1 then
minetest.add_entity(pos, "nssm:mantis") minetest.add_entity(pos, "nssm:mantis")
else else
minetest.add_entity(pos, "nssm:mantis_beast") minetest.add_entity(pos, "nssm:mantis_beast")