0
0
Fork 0

Spawn rain and snow particles higher

This commit is contained in:
Wuzzy 2020-04-07 02:40:48 +02:00
parent c9cc3651df
commit 17f611567c
3 changed files with 3 additions and 3 deletions

View File

@ -55,7 +55,7 @@ mcl_weather.rain.add_rain_particles = function(player)
pos = {x=random_pos_x, y=random_pos_y, z=random_pos_z}, pos = {x=random_pos_x, y=random_pos_y, z=random_pos_z},
velocity = {x=0, y=-10, z=0}, velocity = {x=0, y=-10, z=0},
acceleration = {x=0, y=-30, z=0}, acceleration = {x=0, y=-30, z=0},
expirationtime = 0.2, expirationtime = 1.0,
size = math.random(0.5, 3), size = math.random(0.5, 3),
collisiondetection = true, collisiondetection = true,
collision_removal = true, collision_removal = true,

View File

@ -15,7 +15,7 @@ mcl_weather.snow.add_snow_particles = function(player)
pos = {x=random_pos_x, y=random_pos_y, z=random_pos_z}, pos = {x=random_pos_x, y=random_pos_y, z=random_pos_z},
velocity = {x = math.random(-1,-0.5), y = math.random(-2,-1), z = math.random(-1,-0.5)}, velocity = {x = math.random(-1,-0.5), y = math.random(-2,-1), z = math.random(-1,-0.5)},
acceleration = {x = math.random(-1,-0.5), y=-0.5, z = math.random(-1,-0.5)}, acceleration = {x = math.random(-1,-0.5), y=-0.5, z = math.random(-1,-0.5)},
expirationtime = 2.0, expirationtime = 3.0,
size = math.random(0.5, 2), size = math.random(0.5, 2),
collisiondetection = true, collisiondetection = true,
collision_removal = true, collision_removal = true,

View File

@ -117,7 +117,7 @@ mcl_weather.get_random_pos_by_player_look_dir = function(player)
end end
end end
random_pos_y = math.random() + math.random(player_pos.y + 1, player_pos.y + 3) random_pos_y = math.random() + math.random(player_pos.y + 10, player_pos.y + 15)
return random_pos_x, random_pos_y, random_pos_z return random_pos_x, random_pos_y, random_pos_z
end end