Amai's Anime Fight
注意:此插件的创意来自 Discord 社区,如果你有想法欢迎加入 ?
概述
AmaisAnimeFight 插件为你的 Minecraft 服务器添加了一项令人兴奋的功能:玩家能够激活“目标锁定”模式。该模式允许玩家在可配置的距离范围内,自动锁定并朝向附近的生物(如其他玩家、怪物或生物)瞄准。
主要功能
1. 可切换的目标锁定
- 玩家可以使用
/lo命令来启用或禁用“目标锁定”模式。 - 激活后,插件会持续更新玩家的视角方向,使其面向指定范围内最近的活体实体。
2. 视角稳定化
- 为了防止在快速移动和旋转时屏幕画面过于突兀,插件具备视角稳定因子。该参数控制玩家视角向目标过渡时的平滑程度。
- 默认稳定因子设置为 0.1,提供平衡的平滑度。管理员可以在配置文件中调整此值以满足偏好。
3. 可配置设置
- 目标范围:指定玩家可以锁定活体实体的最大距离。
- 更新间隔:确定插件多久(以刻为单位)更新一次玩家朝向目标的视角,从而微调响应速度。
- 稳定因子:控制锁定目标时旋转过渡的平滑程度。
工作原理
-
激活:
- 玩家使用
/lo命令来激活或停用目标锁定模式。 - 激活后,插件开始执行一项任务,定期检查定义范围内的最近活体实体。
- 玩家使用
-
目标检测:
- 插件扫描玩家周围的球形区域,识别所有活体实体(不包括玩家自身)。
- 然后根据距离确定离玩家最近的活体实体。
-
视角调整:
- 一旦确定目标,插件计算玩家视角所需的旋转角度(偏航角和俯仰角),以便面向目标。
- 利用稳定因子,插件随时间平滑地过渡玩家的视角方向,而不是瞬间切换到新方向。
-
停用:
- 当目标锁定模式被停用时,插件停止更新玩家视角,并取消任何正在进行的任务。
配置
config.yml 文件提供了易于调整的设置,允许服务器管理员定制插件的行为:
- target-range:玩家可以锁定目标的最大距离(默认:10 格)。
- update-interval:视角更新的频率(以刻为单位)(默认:1 刻)。
- stabilization-factor:控制旋转过渡平滑程度的因子(默认:0.1)。
- Less-Dynamic-Change:当玩家已对怪物/玩家进行目标锁定时,如果有新的怪物靠近,目标将在 x 秒后改变(0 = 立即改变)
使用说明
-
安装插件:
- 将
AmaisAnimeFight.jar文件放入服务器的/plugins目录中。 - 重启服务器以启用插件。
- 将
-
配置插件:
- 根据需要编辑位于
/plugins/AmaisAnimeFight/目录中的config.yml文件。 - 保存更改并重启服务器以应用设置。
- 根据需要编辑位于
-
使用目标锁定:
- 作为玩家,在聊天栏中输入
/lo以切换目标锁定模式的开启或关闭状态。 - 激活期间,你的视角会自动调整以面向范围内最近的活体实体。
- 作为玩家,在聊天栏中输入
Amai's Anime Fight
Note: Idea for this plugin is from discord community, join if you have ideas ?
Overview
The AmaisAnimeFight plugin adds an exciting feature to your Minecraft server: the ability for players to activate a "Target Lock On" mode. This mode allows players to automatically lock onto and aim towards nearby living entities such as other players, mobs, or creatures within a configurable range.
Key Features
1. Toggleable Target Lock On
- Players can enable or disable the "Target Lock On" mode using the
/locommand. - When activated, the plugin continuously updates the player's orientation to face towards the nearest living entity within the specified range.
2. Stabilized View
- To prevent the screen from feeling too jarring during fast movements and rotations, the plugin features a stabilization factor. This parameter controls how smoothly the player's view transitions toward the target.
- The default stabilization factor is set to 0.1, which offers a balanced level of smoothness. Administrators can adjust this value in the configuration file to suit their preferences.
3. Configurable Settings
- Target Range: Specifies the maximum distance within which players can lock onto living entities.
- Update Interval: Determines how frequently (in ticks) the plugin updates the player's orientation towards the target, allowing for fine-tuning of responsiveness.
- Stabilization Factor: Controls the smoothness of rotation transitions when locking onto a target.
How It Works
-
Activation:
- Players use the
/locommand to activate or deactivate the Target Lock On mode. - Upon activation, the plugin begins a task that periodically checks for the nearest living entity within the defined range.
- Players use the
-
Target Detection:
- The plugin scans a spherical area around the player and identifies all living entities (excluding the player themselves).
- It then determines the closest living entity to the player based on distance.
-
View Adjustment:
- Once the target is identified, the plugin calculates the necessary rotation (yaw and pitch) for the player's view to face towards the target.
- Using a stabilization factor, the plugin smoothly transitions the player’s orientation over time, rather than instantaneously snapping to the new direction.
-
Deactivation:
- When the Target Lock On mode is deactivated, the plugin stops updating the player's orientation and cancels any ongoing tasks.
Configuration
The config.yml file provides easy-to-adjust settings that allow server administrators to tailor the plugin’s behavior:
- target-range: The maximum distance within which players can lock onto targets (default: 10 blocks).
- update-interval: The frequency of orientation updates in ticks (default: 1 tick).
- stabilization-factor: The factor controlling the smoothness of rotation transitions (default: 0.1).
- Less-Dynamic-Change: When Player has Target on mob/player and new mob comes closer, target changes after x seconds (0 = change instantly)
Usage Instructions
-
Install the Plugin:
- Place the
AmaisAnimeFight.jarfile into your server’s/pluginsdirectory. - Restart your server to enable the plugin.
- Place the
-
Configure the Plugin:
- Edit the
config.ymlfile located in the/plugins/AmaisAnimeFight/directory as needed. - Save the changes and restart the server to apply them.
- Edit the
-
Using Target Lock On:
- As a player, type
/loin the chat to toggle the Target Lock On mode on or off. - While activated, your view will automatically adjust to face the nearest living entity within range.
- As a player, type
下载 Amai's Anime Fight
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Amai's Anime Fight
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Amai's Anime Fight
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Amai's Anime Fight
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Amai's Anime Fight
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
添加了短小生物列表!
aim-low-factor 已合并到短小生物列表中
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
使床在所有维度中爆炸的模组
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
评论 0
登录后参与评分
还没有评论,来抢沙发吧