跳到正文

Pylons Hoe Compat

作者:N4sT7eR

Tinkers' Construct's Scythe can now be used as an Input for Pylon's Harvester Pylon.

收藏

介绍

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

Pylons Hoe Compat

Adds configurable hoe compatibility to Pylons’ Harvester Pylon.

The Problem

Pylons’ HarvesterPylonTile decides whether an item counts as a “hoe” with a single hardcoded check:

<button class="copyButton_CEmTFw copyButton_-a7MRw" title="Copy code" aria-label="Copy code to clipboard"></button>

return stack.getItem() instanceof HoeItem;

There is no tag or config option to change this. Modded farming tools that don’t extend vanilla’s HoeItem — most notably Tinkers’ Construct’s Kama, which is a concrete class and can’t be made to inherit from HoeItem — are silently rejected by the Harvester Pylon’s tool slot, even though they function as harvesting tools in every other context.

What This Mod Does

Pylons Hoe Compat uses a Mixin to hook into HarvesterPylonTile#isItemValid. If the vanilla check returns false, it performs one additional check: is this item’s registry name in a configurable allow-list? If so, the item is accepted as a valid tool for the Harvester Pylon.

  • No dependency on Tinkers’ Construct (or any other mod) at compile time — items are matched purely by registry name (modid:item_id) string, so this works with any mod’s tools.
  • Tinkers’ Construct’s Kama (tconstruct:kama) is allowed by default.
  • Fully additive: it never removes vanilla hoe support, it only widens what else is accepted.

Configuration

A server config file is generated at config/pylonshoecompat-server.toml:

<button class="copyButton_CEmTFw copyButton_-a7MRw" title="Copy code" aria-label="Copy code to clipboard"></button>

extraHoeItems = ["tconstruct:kama"]

Add any other item’s registry name to extraHoeItems to let the Harvester Pylon accept it as well — no coding or additional mod updates required.

Compatibility

  • Minecraft: 1.20.1
  • Forge: 47.4.22+
  • Requires: Pylons 4.3.0+ (loaded after Pylons)
  • Works on both client and server; must be installed on the server (and any client that needs matching mod lists).

Notes

  • This is a small, targeted compatibility patch, not a general rebalance or feature mod.
  • Built and tested against Pylons 4.3.0. Other Pylons versions with the same isItemValid implementation should work but are untested.

License

MIT

常见问题

Pylons Hoe Compat 支持哪些 Minecraft 版本?

Pylons Hoe Compat 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

Pylons Hoe Compat 怎么安装?

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

评论

登录后评论和评分

N4sT7eR 的其他作品

查看全部 →