跳到正文

RSS Gutenberg

作者:sykesgabri

A Fabric mod for 1.20.4 that pulls articles from an RSS or Atom feed and delivers them in-game as written books you can buy from Villagers or Wandering Traders.

收藏

介绍

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

RSS Gutenberg

A Fabric mod for Minecraft 1.20.4 that pulls articles from an RSS or Atom feed and delivers them in-game as written books you can buy from Villagers or Wandering Traders.

This mod can run entirely server-side without issue, and does not need to be installed client-side. If it is installed client-side, players will get a creative menu containing every book generated by this mod, otherwise, they can only get the books through trading.

This mod depends on Fabric API 0.97.3+1.20.4 or newer.

Configuration

The config file is located in config/rss-gutenberg.json, and is automatically generated on first launch with the following defaults:

{
  "feedUrl": "",
  "dateFormat": "DMY",
  "authorOverride": "",
  "checkSchedule": "0 */12 * * *",
  "tradeItem": "minecraft:emerald",
  "tradeQuantity": 1
}

| Field | Type | Default | Description |
|—|—|—|—|
| feedUrl | string | "" | URL of the RSS 2.0 or Atom 1.0 feed to read. |
| dateFormat | string | "DMY" | Date format appended to book titles. "DMY" gives DD/MM, "MDY" gives MM/DD. |
| authorOverride | string | "" | Forces a custom author name on every book. Leave blank to use the name from the feed (or the feed’s domain if none is provided). |
| checkSchedule | string | "0 */12 * * *" | How often to check the feed, as a cron expression. The default checks every 12 hours. crontab.guru is a good site for figuring out how to write these. |
| tradeItem | string | "minecraft:emerald" | The item charged by Villagers and Wandering Traders for the books. |
| tradeQuantity | int | 1 | How many of that item each book costs. |

Persistence

Books are saved to config/rss-gutenberg-books.json between restarts, so your library survives a reboot. Articles that have already been fetched are tracked by their GUID and won’t be duplicated.


Server command

/rssgutenberg check

Triggers an immediate feed check outside the normal schedule. Requires operator level 2.


Updates?

I have no plans to update this mod to newer versions of the game, unless I personally need this mod to run on a newer version. I made this mod for a private server I run, which happens to be running on 1.20.4. Because I actively play on a server this mod will be installed on, any severe bugs will almost certainly get patched, and small improvements may be added over time if I can be bothered to do so, but I myself won’t update it to run on newer versions of Minecraft unless I myself need it on a newer version. If you do, feel free to fork.

Forge/Quilt/NeoForge/Paper/Spigot/Bukkit/BreakIntoMojangAndSneakItIntoVanilla?

No plans for me to personally do any of those ports, as I personally don’t need them, and don’t think I ever will. If you do, feel free to fork.

(It will _probably_ work on Quilt as most Fabric mods do, but I haven’t tested this.)


License

GNU General Public License v3.

常见问题

RSS Gutenberg 支持哪些 Minecraft 版本?

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

RSS Gutenberg 怎么安装?

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

评论

登录后评论和评分

sykesgabri 的其他作品

查看全部 →