HereCroppy
一个用于 自动耕作 的 Paper Minecraft 插件——在玩家定义的矩形区域内自动收获成熟的作物、收集掉落物并重新播种,支持高级配置选项。
功能特性
- 区域选择 — 使用锄头进行 Shift+右键点击以设置耕作区域的两个角(点 A 和点 B)。
- 区域扫描 — 设置点 B 后,系统将扫描并对区域进行分类,标记为可耕作、可通过、门或受阻。在开始之前你会收到一份摘要报告。
- 智能寻路 — 生成一条安全的路径,涵盖可耕作和可通过的方块(例如圆石路径),同时避开熔岩、水、栅栏和楼梯等障碍物。
- 自动耕作开关 — 通过
/herecroppy start或/herecroppy stop命令启动或停止自动耕作。 - 从最后一个方块重启 — 如果因背包已满而停止耕作,使用
/herecroppy restart可从最后访问的方块处恢复。 - 循环内重新扫描 — 完成一轮耕作后,系统会重新扫描区域以检测新出现的障碍物或变化。
- 成熟作物检测 — 检测并收割完全成熟的作物(小麦、胡萝卜、土豆、甜菜根、下界疣、甘蔗、南瓜、西瓜)。
- 自动补种 — 收割后立即使用库存中的种子重新种植作物。
- 智能补种 — 优先尝试重新种植刚刚收割的同类型作物,若失败则回退到播种优先级列表。
- 播种优先级 — 通过
/herecroppy config菜单定义用于补种的种子顺序。 - 自动耕地 — 如果选定区域包含未耕作的泥土或草方块,插件会使用你手持的锄头将其整地为农田。
- 自动种植 — 在空白的农田或灵魂沙上,插件会自动从你的库存中种植第一个可用的种子。
- 掉落物收集 — 破坏作物后自动收集掉落的物品。
- 背包满检测 — 当背包已满时自动停止耕作,并允许重新启动。
- 活动摘要 — 显示详细的耕作状态“表格”(包括收集的作物、种子、骨粉使用情况以及库存倾倒记录),取代单独的消息提示。
- 离线清理 — 当玩家断开连接时,自动将其从自动耕作列表中移除。
- 设置向导 — 使用
/herecroppy setup配置可选的倾倒箱和骨粉收集:- 倾倒不需要的作物 — 自动将不需要的作物存入指定箱子。
- 保留需要的作物 — 自动将所需的作物存入另一个存储箱(毒马铃薯始终被保留)。
- 骨粉收集 — 在耕作过程中自动收集并使用骨粉作用于作物。
- 作物配置 UI — 通过
/herecroppy config针对每种作物微调耕作行为:- 启用/禁用播种 — 控制哪些作物会被种植。
- 启用/禁用收集 — 控制哪些作物会被收割。
- 启用/禁用骨粉 — 控制哪些作物会接受骨粉处理。
- 启用/禁用种子倾倒 — 控制哪些种子会被倒入存储箱(默认:倾倒所有种子)。
- 播种优先级 — 调整要种植的作物的优先级顺序。
- 智能骨粉使用 — 自动收集骨粉并将其应用于未成熟的作物以加速生长(尊重每种作物的单独配置)。
- 正确的南瓜/西瓜收割 — 收集果实方块而不破坏茎秆,从而实现持续生产。
- 正确的甘蔗收割 — 在地面上方 2 格高度处折断甘蔗,留下一块以便自然再生。
- 灵魂沙支持 — 正确识别并在灵魂沙方块上种植下界疣。
- AuraSkills 集成 — 当安装 AuraSkills 时,插件会检查玩家的农耕技能等级以获得额外增益:
- 额外 AuraSkills XP — 基于农耕等级提升 AuraSkills 农耕经验获取量。
- 幸运掉落 — 基于农耕等级获得双倍作物掉落的几率。
- 更快的耕作速度 — 基于农耕等级略微增加在作物间移动的速度。
- HereRolePlay 集成 — 当安装 HereRolePlay 时,每收割一种作物,会自动向玩家发放与手动收割相匹配的采集经验值。
支持的作物
该插件支持以下作物的自动收割和补种:
| 作物 | 种子物品 | 地面类型 | 特殊要求 |
|---|---|---|---|
| 小麦 | 小麦种子 | 农田 | 无 |
| 胡萝卜 | 胡萝卜 | 农田 | 无 |
| 土豆 | 土豆 | 农田 | 无 |
| 甜菜根 | 甜菜种子 | 农田 | 无 |
| 下界疣 | 下界疣 | 灵魂沙 | 无 |
| 甘蔗 | 甘蔗 | 泥土/草地/农田 | 必须紧邻水源 |
| 南瓜 | 南瓜种子 | 农田 | 从茎秆收割,产出南瓜方块 |
| 西瓜 | 西瓜种子 | 农田 | 从茎秆收割,产出西瓜方块 |
注意: 甘蔗需要紧邻水源,且只会种植在水源旁边的方块上。南瓜和西瓜在农田上的茎秆生长,完全成熟时会产出自家对应的方块。
依赖要求
- Paper 1.21+ 服务器
- Java 21+
- (可选)AuraSkills 2.x 用于农耕技能经验加成
安装步骤
- 从 发布页面 下载最新的
HereCroppy-*.jar文件。 - 将 JAR 文件放入服务器的
plugins/文件夹中。 - 重启服务器。
从源代码构建
使用 Gradle(推荐):
./gradlew build
编译后的 JAR 文件将位于 build/libs/HereCroppy-1.2.5.jar。
近期更改 (v1.2.5)
- 修复副手骨粉消耗问题 — 现在能够可靠地检测并扣除玩家副手(或主手/快捷栏槽位)中的骨粉,在将其应用于作物时进行消耗。此前存在一个 bug,导致骨粉可以无限使用而不会被消耗。
- 可靠的作物成熟度验证 — 仅当骨粉成功应用于实际具备生长条件的作物(即未完全成熟的作物)时才会被消耗。
- 添加命令别名
/hc— 玩家现在可以使用/hc作为/herecroppy的简短别名。
最近更新 (v1.2.2)
- 修复骨粉消耗 — 将骨粉应用于作物后,现在会从物品栏(包括副手)中正确移除骨粉。
- 修复经验值奖励 — Minecraft 经验球现在会在被收割方块的位置正确生成。
- 改善经验值可见性 — 经验球现在居中显示在方块上,以便更好地查看。
命令
所有命令都可以用 /hc 代替 /herecroppy 运行。
| 命令 | 描述 | 权限 |
|---|---|---|
/herecroppy start (或 /hc start) |
在您选择的区域开始自动耕作 | herecroppy.use |
/herecroppy stop (或 /hc stop) |
停止自动耕作 | herecroppy.use |
/herecroppy restart (或 /hc restart) |
从库存满暂停前的最后一个方块处恢复 | herecroppy.use |
/herecroppy clear (或 /hc clear) |
清除您当前的选择和设置配置 | herecroppy.use |
/herecroppy setup (或 /hc setup) |
启动设置向导以配置倾倒箱和骨粉收集 | herecroppy.setup |
/herecroppy config (或 /hc config) |
打开作物配置 UI 以启用/禁用单个作物的设置 | herecroppy.config |
权限
| 权限 | 描述 | 默认值 |
|---|---|---|
herecroppy.use |
允许使用 /herecroppy 命令 |
true |
herecroppy.setup |
允许使用设置向导 | true |
herecroppy.config |
允许使用作物配置 UI | true |
使用方法
基本耕作设置
- 在主手中手持任何锄头。
- 按住 Shift 右键点击一个方块以设置 A 点。
- 按住 Shift 右键点击另一个方块以设置 B 点。系统将扫描该区域,您将看到摘要信息。
- 运行
/herecroppy start开始自动耕作。 - 插件将控制您的角色穿过该区域,收割成熟的作物并重新种植。
- 如果背包已满,耕作会暂停。使用
/herecroppy restart从最后一个方块处恢复。 - 运行
/herecroppy stop手动停止。
高级用法:设置向导
设置向导允许您配置可选的倾倒箱和骨粉收集功能:
- 运行
/herecroppy setup启动设置向导。 - 手持锄头,按住 Shift 右键点击您希望倾倒 不需要的作物 的箱子。
- 按住 Shift 右键点击您希望倾倒 保留的作物 的箱子。
- 按住 Shift 右键点击您希望 从中收集骨粉 的箱子。
- 输入每个耕作循环要收集的骨粉数量(插件会建议可用数量)。
- 设置完成!您的配置会自动保存。
注意: 设置向导是可选的。您可以不使用它进行耕作,所有作物都会直接进入您的物品栏。
高级用法:作物配置
微调哪些作物会被播种、收集以及接受骨粉处理:
- 运行
/herecroppy config打开作物配置 UI。 - 点击一个作物类别(耕地作物 或 特殊作物)。
- 点击特定作物以打开其设置。
- 点击切换开关以启用/禁用以下选项:
- 播种 (Seeding) — 是否种植此作物
- 收集 (Collecting) — 是否收割此作物
- 骨粉 (Bonemeal) — 是否对此作物施加骨粉
- 在主
/herecroppy config菜单中,点击 播种优先级 (Seeding Priority) 以重新排序当有多种类型可用时优先使用的种子顺序。- 左键点击可将作物向上移动优先级。
- 右键点击可将作物向下移动优先级。
- 点击“返回 (Back)”回到作物列表,或点击“关闭 (Close)”退出。
默认设置:
- 所有作物:启用播种和收集
- 骨粉:默认仅对南瓜和西瓜启用
HereCroppy
A Paper Minecraft plugin for auto-farming — automatically harvest ripe crops, collect drops, and replant seeds in a player-defined rectangular area with advanced configuration options.
Features
- Area selection — Shift-right-click with a hoe to set two corners (Point A and Point B) of your farming area.
- Area scanning — After setting Point B, the area is scanned and classified as farmable, passable, door, or obstructed. You get a summary before starting.
- Smart pathfinding — Generates a safe snake path that includes farmable and passable blocks (e.g. cobblestone paths) while avoiding obstacles like lava, water, fences, and stairs.
- Auto-farming toggle — Start or stop auto-farming with
/herecroppy startor/herecroppy stop. - Restart from last block — If farming stops because your inventory is full, use
/herecroppy restartto resume from the last visited block. - Rescan on loop — After completing a full loop, the area is rescanned to detect new obstacles or changes.
- Ripe crop detection — Detects and harvests fully grown crops (Wheat, Carrots, Potatoes, Beetroots, Nether Wart, Sugar Cane, Pumpkins, Watermelons).
- Automatic replanting — Replants crops immediately after harvesting using seeds from your inventory.
- Smart Replanting — Automatically tries to replant the same crop type that was just harvested before falling back to the seeding priority list.
- Seeding Priority — Define the order of seeds used for replanting via the
/herecroppy configmenu. - Auto-tilling — If your selected area contains untilled dirt or grass, plugin uses your held hoe to prepare it into farmland.
- Auto-planting — On empty farmland or soul sand, plugin automatically plants first available seeds from your inventory.
- Drop collection — Automatically collects dropped items after breaking crops.
- Inventory full detection — Automatically stops when your inventory is full and allows restart.
- Activity Summary — Displays a detailed "table" of farming status (crops collected, seeds, bonemeal used, and inventory dumps) instead of individual messages.
- Offline cleanup — Automatically removes players from auto-farming when they disconnect.
- Setup Wizard — Configure optional dump boxes and bonemeal collection with
/herecroppy setup:- Dump unwanted crops — Automatically deposit unwanted crops in a designated box.
- Dump keep crops — Automatically deposit desired crops in a separate storage box (Poisonous Potatoes are always kept).
- Bonemeal collection — Automatically collect and apply bonemeal to crops during farming.
- Crop Configuration UI — Fine-tune farming behavior per crop with
/herecroppy config:- Enable/disable seeding — Control which crops are planted.
- Enable/disable collecting — Control which crops are harvested.
- Enable/disable bonemeal — Control which crops receive bonemeal.
- Enable/disable seed dumping — Control which seeds are dumped to storage (default: dump all seeds).
- Seeding Priority — Reorder the priority of crops to be planted.
- Smart Bonemeal Usage — Bonemeal is automatically collected and applied to unripe crops to speed up growth (respects per-crop configuration).
- Proper Pumpkin/Watermelon Harvesting — Collects fruit blocks without breaking stems, allowing continuous production.
- Correct Sugar Cane Harvesting — Breaks sugar cane at height 2 above ground, leaving 1 block to regrow naturally.
- Soul Sand Support — Properly recognizes and farms nether wart on soul sand blocks.
- AuraSkills integration — When AuraSkills is installed, plugin inspects player's Farming skill level for extra buffs:
- Bonus AuraSkills XP — AuraSkills Farming XP gains are boosted based on farming level.
- Fortune drops — Chance for double crop drops based on farming level.
- Faster farming — Slightly increased movement speed between crops based on farming level.
- HereRolePlay integration — When HereRolePlay is installed, automatically awards Collect experience points directly to the player for each crop harvested, matching manual harvesting XP.
Supported Crops
The plugin supports the following crops with automatic harvesting and replanting:
| Crop | Seed Item | Ground Type | Special Requirements |
|---|---|---|---|
| Wheat | Wheat Seeds | Farmland | None |
| Carrots | Carrot | Farmland | None |
| Potatoes | Potato | Farmland | None |
| Beetroots | Beetroot Seeds | Farmland | None |
| Nether Wart | Nether Wart | Soul Sand | None |
| Sugar Cane | Sugar Cane | Dirt/Grass/Farmland | Must be adjacent to water |
| Pumpkins | Pumpkin Seeds | Farmland | Harvests from stem, produces pumpkin block |
| Watermelons | Melon Seeds | Farmland | Harvests from stem, produces melon block |
Note: Sugar cane requires water adjacency and will only be planted on blocks next to water. Pumpkins and watermelons grow from stems on farmland and produce their respective blocks when fully grown.
Requirements
- Paper 1.21+ server
- Java 21+
- (Optional) AuraSkills 2.x for farming skill XP
Installation
- Download the latest
HereCroppy-*.jarfrom the releases page. - Drop the JAR into your server's
plugins/folder. - Restart the server.
Building from Source
Using Gradle (recommended):
./gradlew build
The compiled JAR will be in build/libs/HereCroppy-1.2.5.jar.
Recent Changes (v1.2.5)
- Fixed Off-hand Bonemeal Consumption — Bonemeal in the player's off-hand (or main hand/hotbar slots) is now robustly detected and subtracted upon application to crops, fixing a bug where bonemeal could be used infinitely without being consumed.
- Robust Crop Age Verification — Bonemeal is only consumed when successfully applied to crops that are actually eligible for growth (i.e. not fully grown).
- Added command alias
/hc— Players can now use/hcas a short alias for/herecroppy.
Recent Changes (v1.2.2)
- Fixed bonemeal consumption — Bonemeal is now correctly removed from inventory (including offhand) when applied to crops.
- Fixed XP rewards — Minecraft experience orbs are now correctly spawned at the harvested block's location.
- Improved XP visibility — Experience orbs are now centered on the block for better visibility.
Commands
All commands can be run with /hc instead of /herecroppy.
| Command | Description | Permission |
|---|---|---|
/herecroppy start (or /hc start) |
Start auto-farming in your selected area | herecroppy.use |
/herecroppy stop (or /hc stop) |
Stop auto-farming | herecroppy.use |
/herecroppy restart (or /hc restart) |
Resume from last block after inventory-full stop | herecroppy.use |
/herecroppy clear (or /hc clear) |
Clear your current selection and setup configuration | herecroppy.use |
/herecroppy setup (or /hc setup) |
Start the setup wizard to configure dump boxes and bonemeal collection | herecroppy.setup |
/herecroppy config (or /hc config) |
Open the crop configuration UI to enable/disable per-crop settings | herecroppy.config |
Permissions
| Permission | Description | Default |
|---|---|---|
herecroppy.use |
Allows use of the /herecroppy command |
true |
herecroppy.setup |
Allows use of the setup wizard | true |
herecroppy.config |
Allows use of the crop configuration UI | true |
How to Use
Basic Farming Setup
- Hold any hoe in your main hand.
- Shift-right-click a block to set Point A.
- Shift-right-click another block to set Point B. The area will be scanned and you'll see a summary.
- Run
/herecroppy startto begin auto-farming. - The plugin will move your character through the area, harvesting ripe crops and replanting them.
- If your inventory fills up, farming pauses. Use
/herecroppy restartto resume from the last block. - Run
/herecroppy stopto stop manually.
Advanced Usage: Setup Wizard
The setup wizard allows you to configure optional dump boxes and bonemeal collection:
- Run
/herecroppy setupto start the setup wizard. - Hold a hoe and shift-right-click the box where you want to dump unwanted crops.
- Shift-right-click the box where you want to dump crops to keep.
- Shift-right-click the box where you want to collect bonemeal from.
- Type the amount of bonemeal to collect per farming loop (the plugin will suggest the available amount).
- Setup is complete! Your configuration is saved automatically.
Note: The setup wizard is optional. You can farm without it, and all crops will go directly to your inventory.
Advanced Usage: Crop Configuration
Fine-tune which crops are seeded, collected, and receive bonemeal:
- Run
/herecroppy configto open the crop configuration UI. - Click on a crop category (Farmland Crops or Special Crops).
- Click on a specific crop to open its settings.
- Click on the toggles to enable/disable:
- Seeding — Whether to plant this crop
- Collecting — Whether to harvest this crop
- Bonemeal — Whether to apply bonemeal to this crop
- In the main
/herecroppy configmenu, click Seeding Priority to reorder which seeds are used first when multiple types are available.- Left-click to move a crop UP in priority.
- Right-click to move a crop DOWN in priority.
- Click "Back" to return to the crop list or "Close" to exit.
Default Settings:
- All crops: Seeding and Collecting enabled
- Bonemeal: Only enabled for Pumpkins and Watermelons by default
Configuration Files
HereCroppy stores player configurations in YAML files:
- Setup configurations:
plugins/HereCroppy/setup-configs/{playerId}.yml - Crop configurations:
plugins/HereCroppy/player-configs/{playerId}.yml
These files are created automatically and can be edited manually if needed.
License
This project is licensed under the GNU General Public License v3.0.
下载 Herecroppy
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Herecroppy
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Herecroppy
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Herecroppy
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Herecroppy
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Herecroppy
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Herecroppy
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Herecroppy
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Herecroppy
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
与其他“Here”插件的兼容性更好,并修复了 GUI 问题
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧