? 铁路 SMP 插件 — 说明
Rail SMP 是一款适用于 Minecraft Paper 1.21.11 的插件,引入了 6 种独特的铁轨(Rails),每种铁轨都拥有其专属的被动能力与主动能力。每位玩家只能选择其中一种铁轨,每种铁轨能为 PvP、生存、挖矿、追踪或治疗提供特殊能力。
⚔️ 1. 速度铁轨 (SPEED RAIL)
被动能力:永久获得速度 I (Speed I)。
主动能力 — 冲刺 (Dash):朝你注视的方向将自己发射出去。
冷却时间:60 秒。
?️ 2. 守护者铁轨 (GUARDIAN RAIL)
被动能力:受到符合条件的攻击时,伤害减少 10%。
主动能力 — 抗性提升 (Resistance):获得持续 30 秒的抗性提升 I (Resistance I)。
冷却时间:120 秒。
⛏️ 3. 矿工铁轨 (MINER RAIL)
被动能力:永久获得 haste I (Haste I),加快挖掘速度。
主动能力 — 挖矿加速 (Mining Boost):获得持续 20 秒的夜视和 haste II (Haste II)。
冷却时间:180 秒。
? 4. 猎人铁轨 (HUNTER RAIL)
被动能力:改进的玩家追踪效果。
主动能力 — 猎人视野 (Hunter's Vision):高亮显示 100 格范围内符合条件的玩家,持续 25 秒。不应揭示隐身或消失状态的玩家。
冷却时间:120 秒。
? 5. 潮汐铁轨 (TIDAL RAIL)
被动能力:游泳速度提高 25%,并在水下获得水下呼吸 (Water Breathing)。
主动能力 — 海啸 (Tidal Wave):击退前方 7 格锥形区域内的附近敌人,并造成 2 颗心的伤害。此能力不得破坏或修改方块。
冷却时间:75 秒。
❤️ 6. 恢复铁轨 (RECOVERY RAIL)
被动能力:自然生命恢复速度提高 20%。
主动能力 — 第二阵风 (Second Wind):立即恢复最多 5 颗心的生命值,且不超过最大生命值上限。
冷却时间:180 秒。
? 核心规则
- 每位玩家同一时间只能拥有一种铁轨。
- 当装备铁轨时,被动能力会自动生效。
- 主动能力通过命令 "/rail ability" 激活。
- 每种主动能力拥有独立的冷却时间。
- 铁轨的选择必须在服务器重启后保留。
- 玩家一旦选择了铁轨,便不能更改,除非管理员修改或移除它。
- 当更换或移除铁轨时,必须正确清理相关能力效果。
? 命令
- "/rail help" — 显示所有可用命令。
- "/rail list" — 查看所有六种铁轨。
- "/rail info <rail>" — 查看某铁轨的能力及冷却时间。
- "/rail choose <rail>" — 选择一种铁轨。
- "/rail select <rail>" — 选择铁轨的备用命令。
- "/rail ability" — 激活你所选铁轨的主动能力。
- "/rail who" — 检查你当前选择的铁轨。
- "/rail admin give <player> <rail>" — 给玩家分配一种铁轨。
- "/rail admin remove <player>" — 移除玩家的铁轨。
- "/rail admin reset <player>" — 重置玩家的铁轨选择及冷却时间。
- "/rail admin reload" — 重新加载插件配置。
⚙️ 技术要求
- Minecraft Paper 1.21.11。
- Java 和 Maven。
- 完整、可编译的源代码。
- 正确的 "plugin.yml" 和可配置的 "config.yml"。
- 铁轨、能力、冷却时间和玩家数据需使用独立的管理器。
- 支持权限控制和 Tab 补全。
- 正确处理玩家死亡、重生、加入、离开及服务器重启的情况。
- 无失效的能力、重复的伤害计算、内存泄漏或未完善的方法。
最终目标:创建一个功能完整的 Rail SMP 插件,并提供完整的 Maven 项目以及编译好的 "RailSMP.jar",以便安装在 Paper 1.21.11 服务器上。
选择你的铁轨。掌控你的力量。统治你的 SMP。
? RAIL SMP PLUGIN — EXPLANATION
Rail SMP is a Minecraft Paper 1.21.11 plugin that introduces 6 unique Rails, each with its own Passive Ability and Active Ability. Every player can choose only ONE Rail, and each Rail provides special powers for PvP, survival, mining, tracking, or healing.
⚔️ 1. SPEED RAIL
Passive Ability: Permanent Speed I.
Active Ability — Dash: Launch yourself forward in the direction you are looking.
Cooldown: 60 seconds.
?️ 2. GUARDIAN RAIL
Passive Ability: Take 10% less damage from eligible attacks.
Active Ability — Resistance: Gain Resistance I for 30 seconds.
Cooldown: 120 seconds.
⛏️ 3. MINER RAIL
Passive Ability: Permanent Haste I for faster mining.
Active Ability — Mining Boost: Gain Night Vision and Haste II for 20 seconds.
Cooldown: 180 seconds.
? 4. HUNTER RAIL
Passive Ability: Improved player tracking.
Active Ability — Hunter's Vision: Highlight eligible players within 100 blocks for 25 seconds. Hidden or vanished players should not be revealed.
Cooldown: 120 seconds.
? 5. TIDAL RAIL
Passive Ability: Swim 25% faster and gain Water Breathing underwater.
Active Ability — Tidal Wave: Push nearby enemies within a forward-facing 7-block cone and deal 2 hearts of damage. This ability must not break or modify blocks.
Cooldown: 75 seconds.
❤️ 6. RECOVERY RAIL
Passive Ability: Increase natural health regeneration by 20%.
Active Ability — Second Wind: Instantly restore up to 5 hearts without exceeding maximum health.
Cooldown: 180 seconds.
? CORE RULES
- Every player can have only ONE Rail at a time.
- Passive abilities work automatically while the Rail is equipped.
- Active abilities are activated using "/rail ability".
- Each active ability has its own cooldown.
- Rail selections must be saved across server restarts.
- Players cannot choose another Rail once they have selected one, unless an admin changes or removes it.
- Abilities must be properly cleaned up when a Rail is changed or removed.
? COMMANDS
- "/rail help" — Display all available commands.
- "/rail list" — View all six Rails.
- "/rail info <rail>" — View a Rail's abilities and cooldown.
- "/rail choose <rail>" — Choose a Rail.
- "/rail select <rail>" — Alternative command to choose a Rail.
- "/rail ability" — Activate your Rail's active ability.
- "/rail who" — Check your currently selected Rail.
- "/rail admin give <player> <rail>" — Give a Rail to a player.
- "/rail admin remove <player>" — Remove a player's Rail.
- "/rail admin reset <player>" — Reset a player's Rail and cooldowns.
- "/rail admin reload" — Reload the plugin configuration.
⚙️ TECHNICAL REQUIREMENTS
- Minecraft Paper 1.21.11.
- Java and Maven.
- Complete, compilable source code.
- Proper "plugin.yml" and configurable "config.yml".
- Separate managers for Rails, abilities, cooldowns, and player data.
- Permissions and tab completion.
- Correct handling of player death, respawn, joining, leaving, and server restarts.
- No broken abilities, duplicate damage calculations, memory leaks, or incomplete methods.
FINAL GOAL: Create a fully functional Rail SMP plugin and provide the complete Maven project along with the compiled "RailSMP.jar", ready to install on a Paper 1.21.11 server.
CHOOSE YOUR RAIL. MASTER YOUR POWER. RULE YOUR SMP.
评论 0
登录后参与评分
还没有评论,来抢沙发吧