SoundAPI Conditions for the current Weather!
Adds 3 new conditions you can use for SoundAPI mods:
- "LethalCompany:weather:name" - (String) Returns true if the exact name matches (Basically the name of the Weather you would see on the terminal). Works with any kind of weather!
- "LethalCompany:weather:isweatherpresent" - (String) Returns true if the specified weather is found on the current moon (Such as in Combined Weathers)
- "LethalCompany:weather:iscombinedweather" - (Bool) Returns true if the current weather is a combined weather
For an example how to use it, check out my LalalatteLoadstone mod, which changes the Loadstone Loading Music depending on the current weather! You're welcome to use it as a base for your own mod.
Support for WeatherTweaks progressing weathers is planned so it can detect later weathers, as both conditions will only return true for the first weather part of the chain. For now, you would just have to use the "name" condition, and put the full name of the progressing weather (E.g. "None > Foggy").
Changelog
- 1.0.0 Initial upload
- 1.0.1 Added new "iscombinedweather" condition
- 1.0.2 Fixed "iscombinedweather" and "isweatherpresent" not actually working, updated dependencies
- 1.1.0 Updated dependencies (compat with new WeatherRegistry update). The mod will likely not work with WeatherRegistry versions before 0.7.5, so make sure to downgrade if you are using an older WeatherRegistry still. Added a Github link.