Magneton
Magneton 是一款轻量级的 Minecraft 1.20.1 Forge 模组,添加了强大的物品磁铁功能,可自动将掉落的物品和经验球吸引至附近的玩家。受流行的磁铁模组启发,它在不破坏原版机制的前提下,专注于流畅的游戏体验、服务器性能以及可配置性。
主要特性
自动吸引:范围内的掉落物和 XP 经验球会以平滑的类似吸力的运动方式被拉向玩家。
视线检查:仅当存在清晰视线时(无法穿透墙壁或障碍物)才会吸引物品。
尊重拾取延迟:具有活跃拾取延迟的物品(例如来自怪物掉落物)在变为可用状态前会被忽略。
立方体范围:吸引力作用于最近符合条件的玩家周围的可配置立方体半径内。
全局与单人控制:管理员可以全局启用/禁用,而每位玩家可以单独选择退出。
仅服务端:所有逻辑均在服务端运行,以确保多人游戏的公平性;不存在客户端作弊。
性能优化:通过高效的扫描和每服务器刻(tick)的吸引操作,避免卡顿。
命令
玩家命令(任何玩家)
/magneton toggle
切换你个人的磁铁开关。默认情况下,玩家启动时磁铁处于启用状态(选择退出模型)。
示例输出:"Magneton: ON" 或 "Magneton: OFF"
/magneton status
显示你当前的个人磁铁状态、全局磁铁状态以及当前半径。
示例输出:"Magneton: ON | global=ON | radius=10"
管理员/OP 命令(需要权限等级 2)
/magneton global on
为所有玩家启用全局磁铁(默认状态)。
示例输出:"Magneton global: ON"
/magneton global off
为所有玩家禁用全局磁铁(覆盖个人开关设置)。
示例输出:"Magneton global: OFF"
/magneton radius <0..64>
设置全局吸引半径(以方块为单位)。范围:0 到 64。默认值:10。
示例:/magneton radius 15 → "Magneton radius set to 15"
默认设置
全局磁铁:已启用(magnetonEnabled gamerule = true)
半径:10 个方块(magnetonRadius gamerule = 10)
单人设置:默认启用;玩家可使用 /magneton toggle 进行禁用
吸引速度:物品会温和地加速飞向玩家(最大速度受限以保证平滑感)
安装与兼容性
需要 Minecraft 1.20.1 的 Forge 47.1.0+ 版本
服务端模组;适用于专用服务器和单人游戏
与其他模组兼容(已知无冲突)
无依赖项
注意事项
吸引功能尊重原版物品行为(例如不会导致物品复制,尊重拾取延迟)
XP 经验球的吸引速度略快于物品,以提升游戏体验
对于 OP 控制,可作为替代方案使用 /gamerule magneton Enabled false 或 /gamerule magneton Radius 0
个人设置会使用玩家数据跨会话持久保存
Magneton
Magneton is a lightweight Forge mod for Minecraft 1.20.1 that adds a powerful item magnet feature to automatically attract dropped items and experience orbs towards nearby players. Inspired by popular magnet mods, it focuses on smooth gameplay, server performance, and configurability without breaking vanilla mechanics.
Key Features
Automatic Attraction: Dropped items and XP orbs within range are pulled towards players with smooth, suction-like movement.
Line-of-Sight Checks: Items only attract if there's a clear line of sight (no attraction through walls or obstacles).
Pickup Delay Respect: Items with active pickup delay (e.g., from mob drops) are ignored until they become available.
Cube-Shaped Range: Attraction works in a configurable cube radius around the nearest eligible player.
Global and Per-Player Controls: Admins can enable/disable globally, while each player can opt-out individually.
Server-Side Only: All logic runs on the server for fair multiplayer play; no client-side cheats.
Performance Optimized: Efficient scanning and attraction every server tick without lag.
Commands
Player Commands (Any Player)
/magneton toggle
Toggles your personal magnet on/off. By default, players start with the magnet enabled (opt-out model).
Example Output: "Magneton: ON" or "Magneton: OFF"
/magneton status
Shows your current personal magnet status, global magnet status, and current radius.
Example Output: "Magneton: ON | global=ON | radius=10"
Admin/OP Commands (Requires Permission Level 2)
/magneton global on
Enables the global magnet for all players (default state).
Example Output: "Magneton global: ON"
/magneton global off
Disables the global magnet for all players (overrides personal toggles).
Example Output: "Magneton global: OFF"
/magneton radius <0..64>
Sets the global attraction radius (in blocks). Range: 0 to 64. Default: 10.
Example: /magneton radius 15 → "Magneton radius set to 15"
Default Settings
Global Magnet: Enabled (magnetonEnabled gamerule = true)
Radius: 10 blocks (magnetonRadius gamerule = 10)
Per-Player: Enabled by default; players can disable with /magneton toggle
Attraction Speed: Items accelerate gently towards players (max speed capped for smoothness)
Installation & Compatibility
Requires Forge 47.1.0+ for Minecraft 1.20.1
Server-side mod; works on dedicated servers and single-player
Compatible with other mods (no known conflicts)
No dependencies
Notes
Attraction respects vanilla item behavior (e.g., no duplication, pickup delay honored)
XP orbs attract slightly faster than items for better gameplay feel
Use /gamerule magneton Enabled false or /gamerule magneton Radius 0 as alternatives for OP control
Personal settings persist across sessions using player data
评论 0
登录后参与评分
还没有评论,来抢沙发吧