diff --git a/README.md b/README.md index ad808fe..77435a8 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # Regional Weather A weather pack for [__Climate API__](https://github.com/t-affeldt/climate_api) by Till Affeldt (TestificateMods) -![](https://raw.githubusercontent.com/t-affeldt/regional_weather/master/screenshot.png) +![](https://raw.githubusercontent.com/t-affeldt/regional_weather/master/screenshot.webp) Not every biome is the same and neither should their weather be. -Regional Weather controls it's effects with the local climate in mind. +Regional Weather controls its effects with the local climate in mind. Experience the humid air of the rain forest and harsh desert sandstorms. ## License information @@ -17,11 +17,11 @@ The entire source code is available on [Github](https://github.com/t-affeldt/reg ### Particles - Hail textures: *CC BY-SA (3.0)* made by me - Snow flake textures: *CC BY-SA (3.0)* by paramat, found in snowdrift mod at https://github.com/paramat/snowdrift -- Snow composite texture: *CC BY-SA (3.0)* by Piet Affeldt, created from aforementioned snow flakes by paramat (please credit original artist as well) -- Rain textures: *CC BY-SA (3.0)* by Piet Affeldt (an original design for this mod) +- Snow composite texture: *CC BY-SA (3.0)* by Cap, created from aforementioned snow flakes by paramat (please credit original artist as well) +- Rain textures: *CC BY-SA (3.0)* by Cap (an original design for this mod) ### Block Textures -- Puddle texture: *CC BY-SA (3.0)* by Piet Affeldt +- Puddle textures: *CC BY-SA (3.0)* by Cap - Snow layers and ice block using textures from *default* (not included) ### Sounds @@ -29,13 +29,15 @@ The entire source code is available on [Github](https://github.com/t-affeldt/reg - Light Rain sounds: *CC BY 3.0* by Arctura from https://freesound.org/people/Arctura/sounds/34065/ - Wind sound: *CC BY (3.0)* by InspectorJ from https://freesound.org/people/InspectorJ/sounds/376415/ - Hail sound: *CC0* by ikayuka from https://freesound.org/people/ikayuka/sounds/240742/ +- Puddle footstep sound: *CC0* by swordofkings128 from https://freesound.org/people/swordofkings128/sounds/398032/ ### HUD Overlays -- Frost HUD: *CC BY-SA (3.0)* by Piet Affeldt +- Frost HUD: *CC BY-SA (3.0)* by Cap - Original texture for sand storm HUD: *CC0* from https://freestocktextures.com/texture/dirty-baking-paper,1202.html, edits by me under *CC0* as well ### Assets in screenshots -- All screenshots and editing by me: *CC BY-SA (3.0)* +- Screenshots and editing: *CC BY-SA (3.0)* by me +- Logos and artwork: *CC BY-SA (3.0)* by Cap - Lato Font (for the Logo): *OFL* by Ɓukasz Dziedzic from http://www.latofonts.com/lato-free-fonts/ - Liberation Fonts (for the text): *OFL*, see https://github.com/liberationfonts/liberation-fonts - Used texture pack: Polygonia (128px edition) *CC BY-SA (4.0)* by Lokrates. See https://forum.minetest.net/viewtopic.php?f=4&t=19043 diff --git a/abms/puddle.lua b/abms/puddle.lua index cd96fa1..7be944b 100644 --- a/abms/puddle.lua +++ b/abms/puddle.lua @@ -52,6 +52,12 @@ for i = 1,VARIANT_COUNT do regional_weather_puddle = 1 }, drop = "", + sounds = { + footstep = { + name = "weather_puddle", + gain = 0.8 + } + } }) end end diff --git a/ca_weathers/fog.lua b/ca_weathers/fog.lua index 0e903c8..f078fdc 100644 --- a/ca_weathers/fog.lua +++ b/ca_weathers/fog.lua @@ -18,7 +18,7 @@ effects["climate_api:skybox"] = { }, cloud_data = { density = 1, - color = "#ffffff00", + color = "#ffffff80", thickness = 40, speed = {x=0,y=0,z=0} }, diff --git a/ca_weathers/fog_heavy.lua b/ca_weathers/fog_heavy.lua index 1ebd0f7..c7ef644 100644 --- a/ca_weathers/fog_heavy.lua +++ b/ca_weathers/fog_heavy.lua @@ -14,7 +14,8 @@ local effects = {} effects["climate_api:hud_overlay"] = { file = "weather_hud_fog.png^[opacity:100", - z_index = -200 + z_index = -200, + color_correction = true } effects["climate_api:skybox"] = { diff --git a/ca_weathers/sandstorm.lua b/ca_weathers/sandstorm.lua index 3be9c94..d91fe81 100644 --- a/ca_weathers/sandstorm.lua +++ b/ca_weathers/sandstorm.lua @@ -20,7 +20,8 @@ local effects = {} effects["climate_api:hud_overlay"] = { file = "weather_hud_sand.png", - z_index = -100 + z_index = -100, + color_correction = true } effects["regional_weather:damage"] = { @@ -45,7 +46,6 @@ effects["climate_api:particles"] = { effects["climate_api:skybox"] = { sky_data = { type = "plain", - base_color = "#f7e4bfff", clouds = true, }, cloud_data = { @@ -59,8 +59,13 @@ effects["climate_api:skybox"] = { local function generate_effects(params) local override = {} + local light = math.max(params.light / 15, 0.2) + local color = {r = 247 * light, g = 228 * light, b = 191 * light, a = 256} override["climate_api:skybox"] = { - cloud_data= { + sky_data = { + base_color = color + }, + cloud_data = { height = params.player:get_pos().y - 20 } } diff --git a/ca_weathers/snow_heavy.lua b/ca_weathers/snow_heavy.lua index 7783124..fbd3e83 100644 --- a/ca_weathers/snow_heavy.lua +++ b/ca_weathers/snow_heavy.lua @@ -12,7 +12,8 @@ local effects = {} effects["climate_api:hud_overlay"] = { file = "weather_hud_frost.png", - z_index = -100 + z_index = -100, + color_correction = true } effects["climate_api:particles"] = { diff --git a/screenshot.png b/screenshot.png index 4010a27..e7f6592 100644 Binary files a/screenshot.png and b/screenshot.png differ diff --git a/screenshot.webp b/screenshot.webp new file mode 100644 index 0000000..9121479 Binary files /dev/null and b/screenshot.webp differ diff --git a/sounds/weather_puddle.ogg b/sounds/weather_puddle.ogg new file mode 100644 index 0000000..a0efdfb Binary files /dev/null and b/sounds/weather_puddle.ogg differ