AutoPickup 是一款轻量且高效的实用插件,可自动将玩家挖掘的方块直接传送至其物品栏中。告别地上的杂物堆积、物品卡顿以及四处奔跑收集资源的麻烦!
主要功能
即时交付:方块被破坏的瞬间,资源即被移至物品栏。
智能机制:自动忽略多方块结构(如门、床、高花等),以保持原版逻辑并防止出现故障。
高度可配置:使用白名单或黑名单精确控制哪些物品应被拾取。
性能优化:专为在人口众多的大型服务器上流畅运行而设计,CPU 占用极低。
完整物品栏支持:如果玩家的物品栏已满,物品将自然掉落至地面。
配置 (config.yml)
该插件提供了对方块处理的细粒度控制。您可以选择仅允许特定的贵重矿石,或者排除石头和泥土等“废料”方块。
# 白名单:仅在此列表中的方块会被自动拾取。
whitelist:
enabled: false
list:
- DIAMOND_ORE
- DEEPSLATE_DIAMOND_ORE
- ANCIENT_DEBRIS
# 黑名单:此列表中的方块将始终掉落至地面。
blacklist:
enabled: true
list:
- COBBLESTONE
- DIRT
- NETHERRACK
工作原理
过滤逻辑:* 如果启用了 whitelist,插件仅处理该列表中指定的方块。
如果启用了 blacklist,插件将忽略这些特定方块并拾取其余所有方块。
安全第一:我们为“双格方块”(如床、门等)硬编码了例外情况,以确保破坏它们时不会出现动画损坏或物品丢失的问题。
原版体验:经验值(XP)仍会正常掉落,或与物品一同处理,提供无缝的原版生存体验。
安装
下载 AutoPickup.jar 文件。
将其放入服务器的 plugins 文件夹中。
重启服务器以生成配置文件。
使用标准的 Bukkit Material 名称自定义 config.yml,即可享受!
AutoPickup is a lightweight and efficient utility plugin that automatically teleports mined blocks directly into the player's inventory. Say goodbye to ground clutter, item lag, and the hassle of running around to collect your resources!
Key Features
Instant Delivery: Resources are moved to the inventory the moment a block is broken.
Smart Mechanics: Automatically ignores multi-block structures (like doors, beds, tall flowers, etc.) to maintain vanilla logic and prevent glitches.
Highly Configurable: Use Whitelists or Blacklists to control exactly which items should be picked up.
Performance Optimized: Designed to run smoothly even on high-population servers with minimal CPU usage.
Full Inventory Support: If a player's inventory is full, items will drop naturally on the ground.
Configuration (config.yml)
The plugin offers granular control over block handling. You can choose to only allow specific valuable ores or exclude "junk" blocks like stone and dirt.
# Whitelist: Only blocks in this list will be auto-picked up.
whitelist:
enabled: false
list:
- DIAMOND_ORE
- DEEPSLATE_DIAMOND_ORE
- ANCIENT_DEBRIS
# Blacklist: Blocks in this list will ALWAYS drop on the ground.
blacklist:
enabled: true
list:
- COBBLESTONE
- DIRT
- NETHERRACK
How It Works
Filtering Logic: * If whitelist is enabled, the plugin only processes blocks specified in that list.
If blacklist is enabled, the plugin ignores those specific blocks and picks up everything else.
Safety First: We’ve hardcoded exceptions for "double blocks" (beds, doors, etc.) to ensure that breaking them doesn't result in broken animations or missing items.
Vanilla Feel: Experience points (XP) still drop normally or can be handled alongside the items for a seamless survival experience.
Installation
Download the AutoPickup.jar file.
Place it into your server's plugins folder.
Restart your server to generate the configuration.
Customize the config.yml using standard Bukkit Material names and enjoy!
评论 0
登录后参与评分
还没有评论,来抢沙发吧