跳到正文

Item Pickup Range EX

作者:Arona74

Allow players to set their own pickup range, config file for limits, designed for server and singleplayer.

收藏

截图

介绍

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

Item Pick-Up Range Mod

Extended Edition

Minecraft Version: 1.20.1
Fabric Loader Version: 0.16.14+
Original Author: wenhao
This version Author: Arona74
License: MIT


Description

The Item Pick-Up Range mod allows players to adjust the range at which they automatically pick up items in Minecraft (default is 1.0). Each player can set their own pickup radius individually, and server admins can define configurable minimum and maximum limits to keep ranges balanced.

The mod supports per-player customization, persists values between sessions, and automatically clamps existing player values when configuration limits are changed.


Features

  • Per-player pickup range – Each player can set their own range.
  • Configurable limits – Server admins can define minPickupRange and maxPickupRange in a JSON config file.
  • Automatic clamping – Player ranges are automatically adjusted if they exceed new config limits.
  • Persistent values – Player pickup ranges are saved and loaded from NBT.
  • Simple commands – All features accessible through one root command: /PickupRange.

Installation

  1. Install Fabric Loader 0.16.14+ for Minecraft 1.20.1.
  2. Install the Fabric API for Minecraft 1.20.1.
  3. Place the compiled .jar of this mod into your mods/ folder.
  4. Launch Minecraft with the Fabric profile.

Configuration

The mod configuration is stored in:

config/item_pickup_range.json
{
  "minPickupRange": 0.5,
  "maxPickupRange": 5.0
}
  • minPickupRange: minimum allowed pickup range
  • maxPickupRange: maximum allowed pickup range

Changing the values and reloading the config automatically adjusts players’ current ranges.


Commands

All commands are under the root command: /PickupRange

| Command | Description | Permissions |
|———|————-|————-|
| /PickupRange set <value> | Set your personal item pickup range (within configured limits) | All players |
| /PickupRange get | Display your current pickup range | All players |
| /PickupRange reload | Reload the config and clamp all players’ ranges | OP only (permission level 2) |


How it works

  • Player ranges are stored individually and saved to NBT, so they persist between sessions.
  • The mod automatically clamps player values when the server starts or when the config is reloaded.
  • Players are notified if their pickup range is adjusted due to new limits.

Development

  • Language: Java
  • Build System: Gradle with Fabric Loom
  • Mixins used for injecting pickup range logic into PlayerEntity.

License

This mod is released under the MIT License. You are free to use, modify, and redistribute it, as long as the license terms are included.

常见问题

Item Pickup Range EX 支持哪些 Minecraft 版本?

Item Pickup Range EX 支持 Minecraft Java 版 1.20.1,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Item Pickup Range EX 怎么安装?

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

评论

登录后评论和评分

Arona74 的其他作品

查看全部 →