Defense
一款旨在保护玩家免受不必要的 PvP 交互,同时仍允许在服务器上启用 PvP 的模组!
最初为 Empty World SMP 创建并经过测试。
展示视频:
功能
- 此模组在生存模式玩家的物品栏中添加了一个 PvP 切换按钮。
- 开启后,玩家将免疫所有来自其他玩家的伤害。示例包括直接攻击、投射物以及点燃的 TNT。
同时,该玩家也无法对他人造成此类伤害。在开启期间,玩家既不会受到来自其他玩家的伤害,也无法对其他玩家造成伤害。
- 开启 Defense 后,持续时间为 20 分钟。在玩家免疫效果结束前 1 分钟,他们会收到一条聊天消息提示,若希望继续获得保护,请重新启用。玩家也可以随时手动启用或禁用 Defense 以重置冷却时间。
- 如果玩家的 Defense 处于开启状态,其名字标签旁边将显示一个盾牌图标。
- 你可以在“皮肤自定义设置”中更改向其他人显示的图标,以及切换开关上显示的图标。
- AFK(空闲)系统:当玩家闲置 1 分钟后自动开启 Defense,以防止被其他玩家攻击。使用
afkTimerSeconds 游戏内规则可更改触发 AFK 的时间(设为 0 可禁用此功能)。目前仍处于早期阶段,后续会进行改进和更新!
可用图标:
(这些图标可通过 Minecraft 内的「皮肤自定义设置」进行选择)
更多功能正在规划中,更新将为模组添加新功能,并进行生活质量方面的优化,使其更易于使用。
为什么是 20 分钟计时器?
20 分钟的 Defense 计时器自然鼓励玩家在大多数时候保持防御关闭。这为偶尔发生的有趣互动提供了空间,比如意外击打另一名玩家,或在 PvE 战斗中为避免误伤朋友而接受挑战。它旨在作为应对不期望交互的工具,而非提供竞争优势的手段。
有关此模组的更多信息及代码访问,请访问该模组的 GitHub 页面!
Defense
A mod designed to protect players from unwanted PvP interactions while still allowing PvP on servers!
Originally created for and tested by the Empty World SMP
SHOWCASE VIDEO:
Features
- This mod adds a PvP toggle button in the survival player inventory.
- When checked on, the player is now immune to all incoming PvP damage. Examples include direct attacks, projectiles, and lit TNT.
This also disables the same outgoing attacks from the player. They cannot recieve damage from players or deal damage to players while toggled on.
- When toggled on, Defense lasts for 20 minutes. One minute before the player's immunity runs out, they will be notified with a chat message prompting them to enable it again if they wish. The player may also enable or disable defense anytime they wish to reset the cooldown.
- If a player's defense is toggled on, a shield icon will display next to their nametag.
- You can change the icon you are displaying to others and that shows on your toggle switch in your Skin Customization Settings.
- AFK system that will toggle on Defense after 1 minute to prevent players from attacking you. Use the afkTimerSeconds gamerule to change the time it takes to toggle AFK (set to 0 to disable this feature). Still very early, but improvements and changes will be made over time!
Available Icons:
(These Icons are selectable via the Skin Customization Settings within Minecraft)
More features are planned, and updates will add new functionality to the mod, along with quality of life changes to make it even better to use.
Why the 20 Minute Timer?
The 20 minute timer for defense naturally encourages players to keep defense toggled off most of the time. This provides for the occasional funny interaction with another player, like an accidental punch, or for a challenge during a PvE battle to not hit your friends. It is meant to be used as a tool to defend against an unwanted interaction rather than something to give a competitive advantage.
For more information on this mod, and access to the code, go to this mod's GitHub page!
评论 0
登录后参与评分
还没有评论,来抢沙发吧