ItemMagnet
具有红石燃料、智能过滤、可见吸附物理效果以及领地保护意识的多层级物品磁铁。
使用具有真实物理感的磁铁将掉落的战利品吸向自己——物品会滑过墙角并在墙壁前停止。通过红石为其充能,尊重 Lands 和 WorldGuard 的领地权限,过滤收集的物品,并通过管理 GUI 或 config.yml 调整所有设置。
官网: theryn.org/itemmagnet · GitHub: MCTheryn/item-magent
为什么选择 ItemMagnet?
大多数磁铁插件要么让物品穿模瞬移,要么忽略领地保护。ItemMagnet 专为注重公平性和精致体验的 生存多人服务器 (Survival SMPs) 而构建:
- 可见的物理效果 — 基于步进的吸附并考虑视线遮挡;不会穿墙
- 领地感知 — 支持 Lands, WorldGuard, Towny, GriefPrevention, Residence, PlotSquared, SuperiorSkyblock2
- 智能过滤 — 服务器级与个人黑名单、Minecraft 标签规则、层级白名单、带预览/确认功能的预设
- 红石燃料循环 — 红石粉和红石块可为磁铁充能;红石块可触发半径增益
- 对管理员友好 —
/itemmagnet config GUI、预设、热重载、兼容 LuckPerms 的权限系统、审计日志
- 生产级存储 — 玩家过滤器数据可存储在 YAML、SQLite 或 MySQL 中
游戏玩法
- 三个层级 — Fragment(碎片)、Survey(勘测)、Anchor(锚点)(材料、名称、半径、消耗、配方均可配置)
- 手持模式 — 主手、快捷栏或背包任意位置
- 可同时吸附经验球(可选,半径相同)
- 潜行 + 右键充能(任一手持物)或自动吸收红石掉落物
- 红石方块触发的功率激增 — 充能 + 临时半径增益
- 实时物品描述信息 — 显示充能状态、增益计时器和当前吸附半径
- 垂直范围 — 在层级半径内吸附上方/下方的物品(
vertical-reach-blocks、vertical-pull-mode)
- 不同燃料充能音效;吸附、耗尽和被拒绝的提示音
过滤器
- 服务器材质与标签黑名单 — 配置文件和管理 GUI(材质 | 标签视图)
- 个人过滤器 GUI —
/itemmagnet filter,顶部只读显示服务器规则
- 内置预设 — 挖矿、种田、怪物掉落、保留贵重物品,支持合并预览/确认
/itemmagnet filter clear — 清除个人规则;/itemmagnet import 用于批量合并
- 玩家过滤器存储 — YAML(默认)、SQLite 或 MySQL,支持一次性 YAML 迁移
- 每个磁铁层级的白名单/黑名单及标签规则
面向服务器所有者
/itemmagnet config — 游戏内编辑器,用于设置、层级、燃料、集成、物品过滤和近距离描述信息
- 从 GUI 重命名层级显示名称(聊天输入,支持
& 颜色代码)
- 服务器预设 — theryn、skyblock、vanilla-survival、hub-spawn、testing 或自定义
- 针对枢纽和出生点世界的黑名单/白名单过滤
- 防挂机移动检测,附带一次性通知
- 解锁门控 — 权限、进度奖励、CMI 统计/等级、LuckPerms 组、mcMMO 技能、Quests 或管理员命令
- 近距离描述信息 — 可选坐标区域的环境消息(默认关闭)
- 配置审计日志 —
plugins/ItemMagnet/config-audit.log
- 更新检查器 — 启动时的控制台横幅,管理员可在游戏中点击下载链接
集成(均为可选)
| 插件 |
用途 |
| Lands |
荒野、所有者、成员及基于标志的模式 |
| WorldGuard |
区域白名单/黑名单及物品拾取标志 |
| Towny |
城镇地块保护 |
| GriefPrevention |
尊重领地 |
| Residence |
尊重居住区领地及物品拾取标志 |
| PlotSquared |
地块成员资格检查 |
| SuperiorSkyblock2 |
岛屿权限钩子 |
| CMI |
统计/等级解锁门控;被阻挡吸附时的可选进度显示 |
| LuckPerms |
LP_GROUP 解锁类型用于层级配方 |
| mcMMO |
MCMMO_SKILL 等级解锁门控 |
| Quests |
任务完成解锁层级;被阻挡吸附时的可选进度显示 |
| PlaceholderAPI |
充能、半径、层级、增益和过滤器计数的占位符 |
开发者 API — grantUnlock、giveMagnet、吸附/被阻挡事件、钩子状态。
兼容性
|
要求 |
| 服务端 |
Paper 1.21.1 或更高版本(必需) |
| Java |
21 或更高版本 |
| 已测试 |
Paper 1.21.1, 1.21.4, 26.1 |
| 不支持 |
Spigot, CraftBukkit, Folia |
必须使用 Paper — 该插件使用 Paper API 和现代交互处理机制来处理燃料传输。
快速开始
- 从 GitHub Releases 下载
ItemMagnet-1.6.6.jar
- 将 JAR 文件放入服务器的
plugins/ 文件夹并重启
- 给自己一个磁铁:
/itemmagnet give YourName fragment 500
- 手持磁铁;另一只手放红石粉;潜行 + 右键进行充能
- 在附近丢弃物品 — 它们会以可见的运动轨迹向你吸附
可选操作:使用 /itemmagnet filter 设置个人过滤器,使用 /itemmagnet config 进行管理员调整。
命令
| 命令 |
权限 |
描述 |
/itemmagnet |
— |
显示帮助(按权限过滤) |
/itemmagnet reload |
itemmagnet.reload |
热重载配置和消息 |
/itemmagnet config |
itemmagnet.config |
打开游戏内配置编辑器 |
/itemmagnet filter |
itemmagnet.filter |
个人物品过滤器 GUI |
/itemmagnet filter clear |
itemmagnet.filter |
清除个人过滤器规则 |
/itemmagnet give <player> <tier|all> [charge] |
itemmagnet.give |
给予共振器 |
/itemmagnet unlock <player> <tier|all> |
itemmagnet.unlock |
解锁层级配方 |
/itemmagnet debug |
itemmagnet.debug |
显示当前激活磁铁的统计数据 |
/itemmagnet version |
itemmagnet.admin |
版本、钩子状态和更新信息 |
别名:/im, /magnet
隐私与外部服务
ItemMagnet 对外部网络使用情况保持透明。服务器所有者可以在 config.yml 中禁用或限制每项功能。
bStats(可选遥测数据)
当 metrics.bstats-enabled 为 true 时,ItemMagnet 会向 bStats(许多 Paper 插件使用的标准指标服务)发送匿名的聚合统计数据。报告内容包括配置开关(启用的集成、保持模式、过滤存储后端、层级数量等)以及会话级别的拦截拉取原因统计。不会发送任何玩家名称、UUID、位置或聊天内容。可通过设置 metrics.bstats-enabled: false 或在 plugins/bStats/config.yml 中全局禁用来关闭此功能。
更新检查器(可选)
当 metrics.update-check 不为 DISABLED 时,ItemMagnet 会向 GitHub Releases API (api.github.com/repos/MCTheryn/item-magent/releases/latest) 发起一个只读的 HTTPS 请求,将已安装的版本与最新的标签进行比较。请求以异步方式运行,连接/读取超时时间为 5 秒,仅在 User-Agent 中发送插件版本,并从响应中仅解析发布标签。更新消息会显示在服务器控制台中,并发送给拥有 itemmagnet.updates 权限的玩家(默认:op)。可通过设置 metrics.update-check: DISABLED 来禁用。
安全实践
- 权限控制的命令 — admin、give、config、import 和 debug 操作需要明确的 LuckPerms/Bukkit 权限
- 细粒度的配置 GUI 访问 — 每个部分和字段都有可选的
itemmagnet.config.* 节点;帮助和 Tab 补全会隐藏你无法使用的命令
- 尊重领地与区域 — 可选的 Lands、WorldGuard、Towny 及其他保护钩子;绕过权限默认为
false
- 公平的拉取物理机制 — 基于视线的一步移动;物品不会穿墙传送
- 配置审计日志 — 管理员对配置和过滤器的更改会追加记录到
plugins/ItemMagnet/config-audit.log
- SQL 过滤存储 — SQLite/MySQL 后端使用参数化查询(无字符串拼接 SQL)
- 仅可选集成 — 保护和进度类插件为软依赖;ItemMagnet 无需它们即可独立运行
更多详情:bStats 设置 · 指标配置
链接
MIT License.
ItemMagnet
Tiered item magnets with redstone fuel, smart filters, visible pull physics, and claim-aware protection.
Pull dropped loot toward you with magnets that feel physical — items slide around corners and stop at walls. Charge them with redstone, respect Lands and WorldGuard claims, filter what you collect, and tune everything from an admin GUI or config.yml.
Website: theryn.org/itemmagnet · GitHub: MCTheryn/item-magent
Why ItemMagnet?
Most magnet plugins teleport items through blocks or ignore land claims. ItemMagnet is built for survival SMPs that care about fairness and polish:
- Visible physics — step-based pull with line-of-sight; no phasing through walls
- Claim-aware — Lands, WorldGuard, Towny, GriefPrevention, Residence, PlotSquared, SuperiorSkyblock2
- Smart filters — server + personal blacklists, Minecraft tag rules, tier whitelists, presets with preview/confirm
- Redstone fuel loop — dust and blocks recharge the magnet; blocks trigger a radius boost
- Admin-friendly —
/itemmagnet config GUI, presets, hot reload, LuckPerms-ready permissions, audit log
- Production storage — player filters in YAML, SQLite, or MySQL
Gameplay
- Three tiers — Fragment, Survey, Anchor (materials, names, radius, drain, recipes all configurable)
- Hold modes — main hand, hotbar, or anywhere in inventory
- XP orb pulling at the same radius (optional)
- Sneak + right-click fuel (either hand) or auto-absorb redstone drops
- Power surge from redstone blocks — charge + temporary radius boost
- Live item lore — charge, boost timer, and current pull radius
- Vertical reach — pull items above/below you within tier radius (
vertical-reach-blocks, vertical-pull-mode)
- Per-fuel recharge sounds; pull, depleted, and denied cues
Filters
- Server material + tag blacklist — config and admin GUI (Materials | Tags views)
- Personal filter GUI —
/itemmagnet filter with server rules read-only at the top
- Built-in presets — mining, farming, mob-drops, keep-valuables with merge preview/confirm
/itemmagnet filter clear — wipe personal rules; /itemmagnet import for bulk merge
- Player filter storage — YAML (default), SQLite, or MySQL with one-time YAML migration
- Tier whitelist/blacklist and tag rules per magnet tier
For server owners
/itemmagnet config — in-game editor for settings, tiers, fuel, integrations, item filter, and proximity lore
- Rename tier display names from the GUI (chat input,
& color codes)
- Server presets — theryn, skyblock, vanilla-survival, hub-spawn, testing, or custom
- World blacklist/whitelist filter for hub and spawn worlds
- Anti-AFK movement check with one-time notify
- Unlock gates — permission, advancement, CMI stat/rank, LuckPerms group, mcMMO skill, Quests, or admin command
- Proximity lore — optional coordinate zones with ambient messages (default off)
- Config audit log —
plugins/ItemMagnet/config-audit.log
- Update checker — console banner on boot, clickable in-game download link for admins
Integrations (all optional)
| Plugin |
Purpose |
| Lands |
Wilderness, owner, member, and flag-based modes |
| WorldGuard |
Region whitelist/blacklist and item-pickup flag |
| Towny |
Town plot protection |
| GriefPrevention |
Claim respect |
| Residence |
Residence claim and itempickup flags |
| PlotSquared |
Plot membership checks |
| SuperiorSkyblock2 |
Island permission hook |
| CMI |
Stat/rank unlock gates; optional progress on blocked pulls |
| LuckPerms |
LP_GROUP unlock type for tier recipes |
| mcMMO |
MCMMO_SKILL level unlock gates |
| Quests |
Quest-complete tier unlocks; optional progress on blocked pulls |
| PlaceholderAPI |
Charge, radius, tier, boost, and filter count placeholders |
Developer API — grantUnlock, giveMagnet, pull/blocked events, hook status.
Compatibility
|
Requirement |
| Server |
Paper 1.21.1 or newer (required) |
| Java |
21 or newer |
| Tested on |
Paper 1.21.1, 1.21.4, 26.1 |
| Not supported |
Spigot, CraftBukkit, Folia |
Paper is required — the plugin uses the Paper API and modern interact handling for fuel transfer.
Quick start
- Download
ItemMagnet-1.6.6.jar from GitHub Releases
- Place the JAR in your server's
plugins/ folder and restart
- Give yourself a magnet:
/itemmagnet give YourName fragment 500
- Hold the magnet; put redstone dust in your other hand; sneak + right-click to fuel
- Drop items nearby — they pull toward you with visible motion
Optional: /itemmagnet filter for personal filters, /itemmagnet config for admin tuning.
Commands
| Command |
Permission |
Description |
/itemmagnet |
— |
Show help (filtered by permission) |
/itemmagnet reload |
itemmagnet.reload |
Hot-reload config and messages |
/itemmagnet config |
itemmagnet.config |
Open in-game config editor |
/itemmagnet filter |
itemmagnet.filter |
Personal item filter GUI |
/itemmagnet filter clear |
itemmagnet.filter |
Clear personal filter rules |
/itemmagnet give <player> <tier|all> [charge] |
itemmagnet.give |
Give a resonator |
/itemmagnet unlock <player> <tier|all> |
itemmagnet.unlock |
Unlock a tier recipe |
/itemmagnet debug |
itemmagnet.debug |
Stats for your active magnet |
/itemmagnet version |
itemmagnet.admin |
Version, hook status, and update info |
Aliases: /im, /magnet
Privacy & external services
ItemMagnet is transparent about outbound network usage. Server owners can disable or limit each feature in config.yml.
bStats (optional telemetry)
When metrics.bstats-enabled is true, ItemMagnet sends anonymous aggregate statistics to bStats — the standard metrics service used by many Paper plugins. Reports include config toggles (integrations enabled, hold mode, filter storage backend, tier count, etc.) and session-level blocked-pull reason totals. No player names, UUIDs, locations, or chat are sent. Disable with metrics.bstats-enabled: false or globally in plugins/bStats/config.yml.
Update checker (optional)
When metrics.update-check is not DISABLED, ItemMagnet makes a read-only HTTPS request to the GitHub Releases API (api.github.com/repos/MCTheryn/item-magent/releases/latest) to compare your installed version against the latest tag. Requests run asynchronously with 5-second connect/read timeouts, send only a plugin version in the User-Agent, and parse only the release tag from the response. Update messages appear in the server console and to players with itemmagnet.updates (default: op). Disable with metrics.update-check: DISABLED.
Security practices
- Permission-gated commands — admin, give, config, import, and debug actions require explicit LuckPerms/Bukkit permissions
- Granular config GUI access — optional
itemmagnet.config.* nodes per section and field; help and tab completion hide commands you cannot use
- Claim & region respect — optional Lands, WorldGuard, Towny, and other protection hooks; bypass permissions default to
false
- Fair pull physics — line-of-sight step movement; items do not teleport through walls
- Config audit log — admin config and filter changes are appended to
plugins/ItemMagnet/config-audit.log
- SQL filter storage — SQLite/MySQL backends use parameterized queries (no string-concatenated SQL)
- Optional integrations only — protection and progression plugins are soft dependencies; ItemMagnet runs standalone without them
More detail: bStats setup · metrics config
Links
MIT License.
评论 0
登录后参与评分
还没有评论,来抢沙发吧