Pickup
Pickup 是一个模组,允许玩家通过右键点击物品来拾取它们(或者使用你设置的交互按键)。它完全在服务端运行,因此任何原版客户端都可以加入。唯一的客户端功能是配置修改系统,这是一个在服务器运行时修改模组配置的额外系统(而不是编辑 JSON 并重启)。

配置
核心机制
- 启用/禁用修改后的拾取行为 - 切换模组的右键拾取功能
- 启用/禁用原版拾取行为 - 切换 Minecraft 的走过即拾取系统
以上两项可以独立开启或关闭。
您还可以使用自定义尺寸覆盖默认实体物品的碰撞箱。这使得瞄准更容易,因为原版物品实体的碰撞箱相当小。(碰撞箱最大限制为 1x1x1 方块,以防止堆叠过多)
附加功能
- 物品名称和数量叠加层 - 显示玩家注视的物品名称和数量
- 发光物品叠加层 - 为目标物品添加发光效果
- 叠加层范围 - 玩家需要处于多近的距离才能看到叠加层(与实际能够交互的距离分开计算)
- 使用默认范围 - 使用玩家的
EntityInteractionRange 属性而不是提供的值
- 拾取到当前手 - 与正常情况不同,拾取的物品不会堆叠到玩家的快捷栏/背包中,而是如果当前槽位为空,则放置在玩家的激活槽位中
编辑配置
除了在服务器离线时编辑 JSON 之外,如果您在客户端安装了此模组,还有几种其他选项可以配置模组。
- 命令 - 以管理员身份运行
pickup_config 将打开一个友好的图形界面,您可以在其中编辑配置并应用更改而无需重启世界。
- ModMenu - 使用 Mod Menu,您可以通过打开模组列表并点击配置图标来访问相同的配置 GUI。
需要操作员权限。所有配置更改都在服务端进行验证,以捕获任何无效值。再次强调,客户端模组完全是可选的!
前置要求
您只需要一个与相同 Minecraft 版本兼容的 Fabric API 版本,不需要额外的配置库。
Pickup
Pickup is a mod that lets players pick up items by right-clicking them. (or whatever their interact key is set to) It works completely server-side so any vanilla client can join. The only client-side feature is the configuration modification system, an extra system for modifying the mod's configuration while the server is running (as opposed to editing the JSON and restarting).

Configuration
Core mechanics
- Enable/disable modified pickup behavior - toggles the mod's right-click-to-pick-up feature
- Enable/disable vanilla pickup behavior - toggles Minecraft's walk-over-to-pick-up system
Both of the above can be turned on and off independently of each other.
You can also override the default item entity's hitbox with custom dimensions. This makes targeting easier because the vanilla item entities have a fairly small hitbox. (The hitbox has a maximum limit of 1x1x1 blocks to prevent cramming)
Extras
- Item name and count overlay - shows the name and amount of the item the player is looking at
- Glowing item overlay - gives the targeted item a glowing effect
- Overlay range - how far the player has to be for the overlays to appear (separate from actually being able to interact with them)
- Use default range - uses the player's
EntityInteractionRange attribute instead of the provided value
- Pickup to current hand - instead of stacking to the player's hotbar/inventory like normal, a picked up item will be placed in the active slot of the player if it is empty
Editing configuration
Aside from editing the JSON while the server is offline, you have a couple other options to get the mod configured if you have it installed on your client.
- Command - Running
pickup_config as an admin will open a nice GUI where you can edit the config and apply it without restarting the world.
- ModMenu - With Mod Menu, you can access the same config GUI by opening the Mod list and clicking the configure icon.
Operator permissions are required. All configuration changes are validated server-side to catch any invalid values. Once again, the client mod is completely optional!
Prerequisites
All you need is a version of Fabric API that is for the same minecraft version, no extra config libs.
评论 0
登录后参与评分
还没有评论,来抢沙发吧