1
0
Fork 0

Minor formatting.

This commit is contained in:
Brandon 2020-06-20 12:02:42 -04:00
parent e882dfc3c5
commit a8beeb9f9b
1 changed files with 16 additions and 16 deletions

View File

@ -41,22 +41,22 @@ local function register_lingering(name, descr, color, def)
if n ~= "air" then if n ~= "air" then
minetest.sound_play("mcl_potions_breaking_glass") minetest.sound_play("mcl_potions_breaking_glass")
minetest.add_particlespawner({ minetest.add_particlespawner({
amount = 1000, amount = 1000,
time = 30, time = 30,
minpos = {x=pos.x-d, y=pos.y+0.5, z=pos.z-d}, minpos = {x=pos.x-d, y=pos.y+0.5, z=pos.z-d},
maxpos = {x=pos.x+d, y=pos.y+d, z=pos.z+d}, maxpos = {x=pos.x+d, y=pos.y+d, z=pos.z+d},
minvel = {x=-0.5, y=0, z=-0.5}, minvel = {x=-0.5, y=0, z=-0.5},
maxvel = {x=0.5, y=0.5, z=0.5}, maxvel = {x=0.5, y=0.5, z=0.5},
minacc = {x=-0.2, y=0, z=-0.2}, minacc = {x=-0.2, y=0, z=-0.2},
maxacc = {x=0.2, y=.05, z=0.2}, maxacc = {x=0.2, y=.05, z=0.2},
minexptime = 1, minexptime = 1,
maxexptime = 2, maxexptime = 2,
minsize = 2, minsize = 2,
maxsize = 4, maxsize = 4,
collisiondetection = true, collisiondetection = true,
vertical = false, vertical = false,
texture = "mcl_potions_sprite.png^[colorize:"..color..":127", texture = "mcl_potions_sprite.png^[colorize:"..color..":127",
}) })
self.object:remove() self.object:remove()
for i, obj in ipairs(minetest.get_objects_inside_radius(pos, 4)) do for i, obj in ipairs(minetest.get_objects_inside_radius(pos, 4)) do