跳到正文

WeatherSync

作者:macbrayne

Server-side mod to sync peoples' weather to the real world!

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Weather Sync

Side: Server-Side
License

Syncs your weather with the real world!

How it works

It queries the OpenMeteo API to find out the weather at different locations 🙂
You can either provide a city name, latitude and longitude or let the mod geolocate you using your IP address.

Configuration

This mod provides a bunch of in-game commands:

  • /weathersync enable: Enables the mod for you
  • /weathersync disable: Disables the mod for you
  • /weathersync location set auto: Geolocates your IP and sets the location the mod queries to your city’s coordinates
  • /weathersync location set city <name>: Sets the location the mod queries to the city you provide (default: Berlin)
  • /weathersync location set custom <latitude> <longitude>: Sets the location the mod queries to the latitude and longitude you provide
  • /weathersync location get: Sends you the location the mod queries
  • /weathersync sync: Forces the game to send you your stored weather
  • /weathersync timer get: Sends you the time left in minutes until the next global weather sync is performed

You can change the API base URL using the weathersync.api-backend Java system property. The default value is https://api.open-meteo.com/v1/dwd-icon.

Please open an issue if the weather doesn’t properly sync and you don’t get the weather described in the message to you

Credits

Weather data by OpenMeteo
GeoIP by DB-IP

License

This mod is licensed under EUPL-1.2

常见问题

WeatherSync 支持哪些 Minecraft 版本?

WeatherSync 支持 Minecraft Java 版 1.20.4,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

WeatherSync 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

macbrayne 的其他作品

查看全部 →