Leos Weather Forecast API
An API I made so that SoundAPI can now have weather as a conditionUsage guide
- Install this mod (duh)
- Create a normal replacer for SoundAPI
- condition type is: "lwfAPI:weather" and value is the weather string
A little bonus I added shows the weather string when an lwfAPI condition is triggered, weather registry mod does the same upon landing on a planet. (Yes its more convenient than my solution 😭)
Code example:
"replacements": [
{
"matches": "#FacilityMeltdown:music",
"sounds": [
{
"sound": "Music/eclipsemeltdown.ogg",
"condition": {
"type": "lwfAPI:weather",
"value": "eclipsed"
}
}
Changelog
- (Version 1.0.0) - Initial Release :D
