Use new format for `add_particlespawner` call.

This commit is contained in:
Diego Martinez 2014-12-21 15:27:31 -03:00
parent d213e5aa16
commit 1f1c889601
1 changed files with 16 additions and 16 deletions

View File

@ -62,22 +62,22 @@ minetest.register_abm({
minetest.get_node({x=pos.x, y=pos.y+2.0, z=pos.z}).name == "air" minetest.get_node({x=pos.x, y=pos.y+2.0, z=pos.z}).name == "air"
then then
local image_number = math.random(4) local image_number = math.random(4)
minetest.add_particlespawner( minetest.add_particlespawner({
8, --particles amount amount = 8,
1, --time time = 1,
{x=pos.x-0.25, y=pos.y+0.4, z=pos.z-0.25}, --min. smoke position minpos = {x=pos.x-0.25, y=pos.y+0.4, z=pos.z-0.25},
{x=pos.x+0.25, y=pos.y+8, z=pos.z+0.25}, --max. smoke position maxpos = {x=pos.x+0.25, y=pos.y+8, z=pos.z+0.25},
{x=-0.2, y=0.3, z=-0.2}, --min. particle velocity minvel = {x=-0.2, y=0.3, z=-0.2},
{x=0.2, y=1, z=0.2}, --max. particle velocity maxvel = {x=0.2, y=1, z=0.2},
{x=0,y=0,z=0}, --min. particle acceleration minacc = {x=0,y=0,z=0},
{x=0,y=0,z=0}, --max. particle acceleration maxacc = {x=0,y=0,z=0},
0.5, --min. time particle expiration minexptime = 0.5,
3, --max. time particle expiration maxexptime = 3,
2, --min. particle size minsize = 2,
10, --max. particle size maxsize = 10,
false, --collision detection collisiondetection = false,
"smoke_particle_"..image_number..".png" --textures texture = "smoke_particle_"..image_number..".png",
) })
end end
end end
}) })