AutoTurrets 插件
AutoTurrets 是一款可配置的 Minecraft 服务器炮台插件。它允许玩家放置自动化防御单位(炮台),这些炮台可根据所选设置追踪并攻击实体。该插件支持图形用户界面交互、武器选择、目标选项以及友军系统,用于排除盟友免受攻击。
功能
炮台系统
玩家可以制作并放置炮台方块。放置后,可以通过游戏内界面配置炮台。每个炮台由一个不可见的盔甲架表示,配备发射器模型和健康指示器。
炮台可以:
- 使用实体旋转实时追踪和瞄准目标。
- 仅攻击视线范围内可见的实体。
- 手动开启或关闭。
- 使用铁锭进行破坏和修复。
- 根据状态(损坏或激活)改变外观。
目标选择
目标设定完全可自定义:
- 玩家可以选择炮台是否攻击玩家、敌对生物和动物。
- 图形用户界面允许切换各类别的开启或关闭状态。
- 炮台会忽略所有者及任何列出的朋友。
武器系统
炮台支持模块化武器配置:
- 每种武器都有定义的伤害和冷却属性。
- 示例武器包括:
- 弓(使用箭矢作为弹药)
- 激光武器(使用自定义弹药)
- 支持通过菜单切换武器。
- 弹药必须手动插入炮台的库存中。
友军系统
玩家可以添加其他用户为朋友,以防止他们的炮台锁定这些朋友。该系统通过命令管理:
/turret friend add <player>
/turret friend remove <player>
/turret friend list
如果玩家不在线或不存在,将显示相应的消息。
图形用户界面和本地化
该插件包含完整的图形用户界面系统:
- 主炮台控制菜单,提供以下选项:
- 装入弹药
- 选择攻击目标
- 启用/禁用炮台
- 查看使用说明
- 合成菜单和一般信息窗口
- 所有文本消息均可通过语言文件 (
TurretsLang) 进行配置,内置默认的消息和工具提示
事件和反馈
该插件提供可配置的事件消息,例如:
- 炮台安装
- 炮台修复
- 炮台击杀
- 关于交互要求的警告(例如,必须在装入弹药前禁用炮台)
合成
自定义物品(如炮台方块和激光弹药)在合成界面中显示标题和描述。合成配方和物品元数据在插件内定义。
依赖项
- Bukkit 或 Spigot 服务器(推荐 1.20+)
- 无外部插件依赖
备注
- 炮台被破坏后将无法运作。
- 一旦放置,只有所有者可以移除炮台。
- 炮台使用服务器的任务调度器,并在启用时每 5 刻更新一次。
AutoTurrets Plugin
AutoTurrets is a configurable turret plugin for Minecraft servers. It allows players to place automated defensive units (turrets) that track and attack entities based on selected settings. The plugin supports GUI interaction, weapon selection, targeting options, and a friend system to exclude allies from attacks.
Features
Turret System
Players can craft and place turret blocks. Once placed, a turret can be configured through an in-game interface. Each turret is represented by an invisible armor stand equipped with a dispenser model and a health indicator.
Turrets can:
- Track and aim at targets in real time using entity rotation.
- Attack only entities visible within line-of-sight.
- Be manually enabled or disabled.
- Be destroyed and repaired using iron ingots.
- Change their appearance based on status (broken or active).
Target Selection
Targeting is fully customizable:
- Players can choose whether turrets attack players, hostile mobs, and animals.
- The GUI allows switching each category on or off.
- Turrets ignore the owner and any listed friends.
Weapon System
Turrets support modular weapon configurations:
- Each weapon has defined damage and cooldown properties.
- Example weapons include:
- Bow (uses arrows as ammunition)
- Laser weapon (uses custom ammo)
- Weapon switching is supported via the menu.
- Ammo must be manually inserted into the turret's inventory.
Friend System
Players can add other users as friends to prevent their turrets from targeting them. This system is managed through commands:
/turret friend add <player>
/turret friend remove <player>
/turret friend list
If a player is not online or does not exist, appropriate messages will be shown.
GUI and Localization
The plugin includes a full GUI system:
- Main turret control menu with options to:
- Load ammo
- Select attack targets
- Enable/disable the turret
- View usage instructions
- Crafting menu and general information windows
- All text messages are configurable through a language file (
TurretsLang) with built-in defaults for messages and tooltips
Events and Feedback
The plugin provides configurable event messages such as:
- Turret installation
- Turret repairs
- Kills made by turrets
- Warnings about interaction requirements (e.g. must disable turret before loading ammo)
Crafting
Custom items such as the turret block and laser ammo include titles and descriptions shown in the crafting interface. Crafting recipes and item metadata are defined within the plugin.
Dependencies
- Bukkit or Spigot server (1.20+ recommended)
- No external plugin dependencies
Notes
- Turrets do not function if broken.
- Only the owner can remove a turret once placed.
- Turrets use the server’s task scheduler and update every 5 ticks when enabled.
评论 0
登录后参与评分
还没有评论,来抢沙发吧