Magnet
Magnet 是一款适用于 Minecraft Paper 的服务端插件,添加了便携式磁石和固定式磁性核心。
玩家在手持便携式磁石时,会吸引附近的掉落金属物品。固定式磁性核心是 2x2x2 的方块结构,会将掉落的金属物品向中心吸引。
功能特性
- 通过
/magnet give 命令发放便携式磁石道具
- 便携式磁石在主手和副手中均可使用
- 固定的 2x2x2 磁性核心
- 可配置核心的作用半径和强度
- 可在
config.yml 中配置核心材料配置文件
- 对核心周围进行磁框扫描
- 受损的核心在修复或重新扫描前将停止吸引效果
- 使用
/magnet core info <id> 查看核心诊断信息
- 核心数据保存在
cores.yml 中
- 支持英文和俄文消息
- 示例结构文件位于
schematic/Magnet.litematic
运行要求
- Minecraft / Paper:
1.21.11
- Java:
21
命令
| 命令 |
描述 |
/magnet |
显示帮助信息 |
/magnet give |
给予玩家一个便携式磁石 |
/magnet core create <id> [radius] [strength] |
基于 2x2x2 结构创建核心 |
/magnet core createat <id> <x> <y> <z> [radius] [strength] |
在指定坐标创建核心 |
/magnet core remove <id> |
移除已保存的核心 |
/magnet core list |
列出所有已保存的核心 |
/magnet core info <id> |
显示核心诊断信息 |
/magnet core rescan <id> |
重新扫描核心框架 |
/magnet core refresh <id> |
在替换方块后重新计算核心 |
/magnet core set <id> <radius;strength> <value> |
修改某个核心的半径或强度 |
/magnet core reload |
重载核心及设置 |
/magnet profile list |
列出材料配置文件 |
/magnet profile info <material> |
显示特定材料的配置文件 |
/magnet profile set <material> <radius;strength;priority> <value> |
更新材料配置文件 |
/magnet profile reload |
重载材料配置文件 |
便携式磁石
便携式磁石是一个带有 PersistentDataContainer(持久数据容器)标记的水晶碎片,以便插件将其与普通物品区分开来。
每 2 个游戏刻,插件会检查在线玩家。如果玩家手持便携式磁石,则会将 7 格范围内受支持的掉落物品向玩家方向拉动。
受到强吸引力影响的物品包括铁制物品、锁链盔甲、铁砧、铁轨、矿车、桶、剪刀、指南针以及其他类似的金属物品。
下界合金物品的吸引力会减弱。
磁性核心
固定的磁性核心由完整的 2x2x2 配置的“核心材料”方块立方体构成。
看向八个核心方块中的任意一个,然后执行:
/magnet core create <id>
Magnet
Magnet is a Paper plugin for Minecraft that adds portable magnets and stationary magnetic cores.
Portable magnets attract nearby dropped metal items while held by a player. Stationary magnetic cores are 2x2x2 block structures that pull dropped metal items toward their center.
Features
- Portable magnet item issued with
/magnet give
- Portable magnets work from the main hand and off hand
- Stationary 2x2x2 magnetic cores
- Configurable core radius and strength
- Core material profiles configurable in
config.yml
- Magnetic frame scanning around cores
- Damaged cores disable attraction until repaired or rescanned
- Core diagnostics with
/magnet core info <id>
- Saved cores in
cores.yml
- English and Russian messages
- Example structure in
schematic/Magnet.litematic
Requirements
- Minecraft / Paper:
1.21.11
- Java:
21
Commands
| Command |
Description |
/magnet |
Shows help |
/magnet give |
Gives the player a portable magnet |
/magnet core create <id> [radius] [strength] |
Creates a core from a 2x2x2 structure |
/magnet core createat <id> <x> <y> <z> [radius] [strength] |
Creates a core at coordinates |
/magnet core remove <id> |
Removes a saved core |
/magnet core list |
Lists saved cores |
/magnet core info <id> |
Shows core diagnostics |
/magnet core rescan <id> |
Rescans the core frame |
/magnet core refresh <id> |
Recalculates the core after replacing blocks |
/magnet core set <id> <radius;strength> <value> |
Changes one core's radius or strength |
/magnet core reload |
Reloads cores and settings |
/magnet profile list |
Lists material profiles |
/magnet profile info <material> |
Shows one material profile |
/magnet profile set <material> <radius;strength;priority> <value> |
Updates a material profile |
/magnet profile reload |
Reloads material profiles |
Portable Magnet
The portable magnet is an amethyst shard marked with PersistentDataContainer, so the plugin can distinguish it from a regular item.
Every 2 ticks, the plugin checks online players. If a player is holding a portable magnet, supported dropped items within 7 blocks are pulled toward the player.
Strongly attracted items include iron items, chainmail armor, anvils, rails, minecarts, buckets, shears, compasses, and similar metal items.
Netherite items are attracted with reduced force.
Magnetic Cores
A stationary magnetic core is created from a complete 2x2x2 cube of configured core materials.
Look at one of the eight core blocks and run:
/magnet core create <id>
评论 0
登录后参与评分
还没有评论,来抢沙发吧