可配置的 Paper 插件,为铜傀儡添加钻石和下界合金升级。它允许升级后的傀儡在可配置区域内整理物品,在没有匹配存储时回退到使用铜箱子,并通过管理员命令进行全面管理。
用法
管理员命令
-
/cg reload — 重新加载插件配置
-
/cg on — 启用插件
-
/cg off — 禁用插件
权限
coppergolem.admin - 允许管理 CopperGolem Rethought
升级行为
钻石升级
当玩家对铜傀儡使用钻石时,它会变成升级版的钻石傀儡。钻石傀儡在 X 和 Z 轴上具有 10 个方块的可配置半径,Y 轴上为 3 个方块,默认最大携带堆叠数量为 16。
下界合金升级
下界合金傀儡作为独立的升级类型存在,可以在配置中独立启用或禁用。它们使用黑色粒子效果,在 X 和 Z 轴上具有 40 个方块的可配置半径,Y 轴上为 5 个方块,默认最大携带堆叠数量为 32。
整理行为
当升级后的傀儡获取物品时,它会在其配置区域内搜索箱子,并选择已包含相同物品类型的箱子。
如果范围内没有箱子包含该物品,傀儡将使用回退行为并将物品放回铜箱子。在此过程中,它会将物品放入从末尾数的最后一个可用槽位,或者放入已包含相同物品的槽位。
- 当需要回退存储且范围内有多个铜箱子可用时,傀儡优先选择涂蜡氧化铜箱子,其次是氧化铜箱子。如果没有首选的箱子可用,则可以使用最近的合适铜箱子。
配置
升级设置
两种升级类型均在 GolemUpgrades 下进行配置,每种都有各自的设置块。对于每种升级,您可以配置是否启用、应用所需的物品、颜色效果(或 null)以及自定义名称(或 null)。
行为设置
配置还包括每个升级的半径、堆叠限制、缓存刷新、移动容差、粒子效果、交互计时、回退行为、不可达目标处理以及首选铜箱子顺序的设置。
Configurable Paper plugin that adds diamond and netherite upgrades for copper golems. It lets upgraded golems sort items within a configurable area, use fallback copper chests when no matching storage is found, and be fully managed through admin command
Usage
Admin commands
-
/cg reload — reload the plugin configuration
-
/cg on — enable the plugin
-
/cg off — disable the plugin
Permissions
coppergolem.admin - Allows managing CopperGolem Rethought
Upgrade behavior
Diamond upgrade
A copper golem becomes an upgraded diamond golem when a player uses a diamond on it. Diamond golems work within a configurable radius of 10 blocks on X and Z and 3 blocks on Y, and their default maximum carried stack size is 16.
Netherite upgrade
Netherite golems are available as a separate upgrade type and can be enabled or disabled independently in the configuration. They use black particle effects, work within a configurable radius of 40 blocks on X and Z and 5 blocks on Y, and their default maximum carried stack size is 32.
Sorting behavior
When an upgraded golem takes an item, it searches for chests within its configured area and chooses a chest that already contains the same item type
If no chest in range contains that item, the golem uses fallback behavior and returns the item to a copper chest. When doing so, it places the item into the last available slot from the end, or into a slot that already contains the same item.
- When fallback storage is needed and multiple copper chests are available in range, the golem prioritizes waxed oxidized copper chests first and oxidized copper chests after that. If no preferred chest is available, it can use the nearest suitable copper chest.
Configuration
Upgrade settings
Both upgrade types are configured under GolemUpgrades, where each one has its own block of settings. For each upgrade, you can configure whether it is enabled, which item is used to apply it, the effect color or null, and a custom name or null.
Behavior settings
The configuration also includes per-upgrade settings for radius, stack limit, cache refresh, movement tolerance, particles, interaction timings, fallback behavior, unreachable-target handling, and preferred copper chest order.
评论 0
登录后参与评分
还没有评论,来抢沙发吧