diff --git a/nc_sky_isgen/init.lua b/nc_sky_isgen/init.lua index a8ff541..5edefdb 100644 --- a/nc_sky_isgen/init.lua +++ b/nc_sky_isgen/init.lua @@ -160,7 +160,7 @@ local ignore_c = minetest.get_content_id("ignore") local function spawn_particle(x,y,z,player) minetest.add_particlespawner{ - amount = 30, + amount = 15, -- Number of particles spawned over the time period `time`. time = 60, @@ -171,12 +171,12 @@ local function spawn_particle(x,y,z,player) maxvel = {x=0.5, y=0.5, z=0.5}, minacc = {x=0, y=0, z=0}, maxacc = {x=0, y=0, z=0}, - minexptime = 2, - maxexptime = 3, - minsize = 5, - maxsize = 10, + minexptime = 0.2, + maxexptime = 1, + minsize = 10, + maxsize = 60, vertical = false, - texture = "nc_lux_gravel.png", + texture = "nc_stonework_stone.png", playername = player, glow = 14 @@ -207,9 +207,9 @@ local function spawn_particles(x,y,z,player) pos[ord3] = ma[ord3] end --print(dump(pos)) - if math.random(10)==1 then + --if math.random(10)==1 then spawn_particle(pos.x,pos.y,pos.z,player) - end + --end end end end @@ -504,8 +504,8 @@ minetest.register_chatcommand("reset",{ return end cooldowns[name] = utime + cooldown - local pl = players[name] - if pl then + local is = players[name] + if is then players[name] = nil table.insert(cells,{pos=is.pos,valid=is.valid}) end