From 17f611567c13bd20f54d830a93347fbc6b1e8feb Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 7 Apr 2020 02:40:48 +0200 Subject: [PATCH] Spawn rain and snow particles higher --- mods/ENVIRONMENT/mcl_weather/rain.lua | 2 +- mods/ENVIRONMENT/mcl_weather/snow.lua | 2 +- mods/ENVIRONMENT/mcl_weather/weather_core.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/ENVIRONMENT/mcl_weather/rain.lua b/mods/ENVIRONMENT/mcl_weather/rain.lua index cb39daebc0..ccb8cd5b2f 100644 --- a/mods/ENVIRONMENT/mcl_weather/rain.lua +++ b/mods/ENVIRONMENT/mcl_weather/rain.lua @@ -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}, velocity = {x=0, y=-10, z=0}, acceleration = {x=0, y=-30, z=0}, - expirationtime = 0.2, + expirationtime = 1.0, size = math.random(0.5, 3), collisiondetection = true, collision_removal = true, diff --git a/mods/ENVIRONMENT/mcl_weather/snow.lua b/mods/ENVIRONMENT/mcl_weather/snow.lua index c1812a1bca..9635283505 100644 --- a/mods/ENVIRONMENT/mcl_weather/snow.lua +++ b/mods/ENVIRONMENT/mcl_weather/snow.lua @@ -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}, 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)}, - expirationtime = 2.0, + expirationtime = 3.0, size = math.random(0.5, 2), collisiondetection = true, collision_removal = true, diff --git a/mods/ENVIRONMENT/mcl_weather/weather_core.lua b/mods/ENVIRONMENT/mcl_weather/weather_core.lua index 29da968f84..fb90aa740f 100644 --- a/mods/ENVIRONMENT/mcl_weather/weather_core.lua +++ b/mods/ENVIRONMENT/mcl_weather/weather_core.lua @@ -117,7 +117,7 @@ mcl_weather.get_random_pos_by_player_look_dir = function(player) 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 end