WeaponSystem 插件
一款功能全面的 Minecraft 服务器武器系统插件,添加了高级武器机制、双持能力以及增强的战斗特性。
特性
?️ 武器标记系统
- 双手武器:需要双手使用的武器,会自动清空副手槽位
- 副手武器:可在副手槽位中使用以实现双持的特殊武器
- 标记管理:基于命令的简单系统,可为具有特殊属性的武器添加标记
⚔️ 增强战斗机制
- 攻击速度系统:根据武器类型和属性设定的真实武器冷却时间
- 伤害计算:高级伤害计算,包括:
- 基础武器伤害
- 附魔加成(锋利、亡灵杀手、节肢杀手)
- 暴击机制
- 属性修饰符
- 击退系统:可根据武器属性自定义击退效果
- 火焰附加:正确应用火焰伤害并进行免疫检查
? 视觉反馈
- 冷却指示器:显示武器就绪状态的动画冷却条
- 可定制 UI:可配置的冷却符号和颜色
- 攻击特效:针对不同攻击类型的视觉和听觉反馈
?️ 物品栏管理
- 智能物品处理:针对双手武器的自动副手管理
- 掉落保护:防止切换武器时意外丢失物品
- 物品栏验证:确保武器放置和使用正确
命令
/weapontag twohanded [remove] - 将物品设为双手使用或移除标记
/weapontag offhanded [remove] - 允许物品在副手中使用或移除标记
/weapontag clear - 移除所有武器标记
/weapontag check - 显示当前武器标记
权限
weaponsystem.tags - 访问武器标记命令
weaponsystem.use - 基本命令访问权限(默认:op)
配置
插件包含一个 config.yml 文件,用于自定义以下内容:
技术细节
- Minecraft 版本:1.21+
- API 版本:1.21
- Java 版本:21
- 依赖项:Paper API
安装
- 下载插件 JAR 文件
- 将其放入服务器的
plugins 文件夹中
- 重启服务器
- 通过
config.yml 配置插件
开发
本插件基于 Gradle 和 Paper API 构建,为 Minecraft 服务器上的高级武器机制提供了坚实的基础。
WeaponSystem Plugin
A comprehensive weapon system plugin for Minecraft servers that adds advanced weapon mechanics, dual-wielding capabilities, and enhanced combat features.
Features
?️ Weapon Tagging System
- Two-Handed Weapons: Weapons that require both hands to use, automatically clearing the offhand slot
- Offhand Weapons: Special weapons that can be used in the offhand slot for dual-wielding
- Tag Management: Easy command-based system to tag weapons with special properties
⚔️ Enhanced Combat Mechanics
- Attack Speed System: Realistic weapon cooldowns based on weapon type and attributes
- Damage Calculation: Advanced damage calculation including:
- Base weapon damage
- Enchantment bonuses (Sharpness, Smite, Bane of Arthropods)
- Critical hit mechanics
- Attribute modifiers
- Knockback System: Customizable knockback based on weapon properties
- Fire Aspect: Proper fire damage application with immunity checks
? Visual Feedback
- Cooldown Indicator: Animated cooldown bar showing weapon readiness
- Customizable UI: Configurable cooldown symbols and colors
- Attack Effects: Visual and audio feedback for different attack types
?️ Inventory Management
- Smart Item Handling: Automatic offhand management for two-handed weapons
- Drop Protection: Prevents accidental item loss when switching weapons
- Inventory Validation: Ensures proper weapon placement and usage
Commands
/weapontag twohanded [remove] - Make item two-handed or remove the tag
/weapontag offhanded [remove] - Allow item in offhand or remove the tag
/weapontag clear - Remove all weapon tags
/weapontag check - Show current weapon tags
Permissions
weaponsystem.tags - Access to weapon tagging commands
weaponsystem.use - Basic command access (default: op)
Configuration
The plugin includes a config.yml file for customizing:
- Cooldown animation frames
- Cooldown indicator colors
- Weapon behavior settings
Technical Details
- Minecraft Version: 1.21+
- API Version: 1.21
- Java Version: 21
- Dependencies: Paper API
Installation
- Download the plugin JAR file
- Place it in your server's
plugins folder
- Restart your server
- Configure the plugin via
config.yml
Development
Built with Gradle and Paper API, this plugin provides a solid foundation for advanced weapon mechanics on Minecraft servers.
评论 0
登录后参与评分
还没有评论,来抢沙发吧