All Mods Resource Packs Data Packs Shaders Modpacks Plugins
GunPlugin

GunPlugin

by 114514h • Downloads: 12 • Followers: 0
Description
Gallery
Changelog
Versions

GunPlugin - 枪械插件

Minecraft Version Spigot API Java Version

一个功能丰富的Minecraft枪械插件,支持多种枪械类型、自定义配置、真实弹道系统和完整的射击体验。

A feature-rich Minecraft gun plugin with multiple weapon types, custom configuration, realistic ballistics system, and complete shooting experience.


📋 目录 / Table of Contents


🚀 功能特性 / Features

核心功能 / Core Features

  • 多种枪械类型 / Multiple Weapon Types: 手枪、步枪、霰弹枪、狙击枪
  • 真实弹道系统 / Realistic Ballistics: 子弹速度、重力下坠、穿透效果
  • 弹药管理系统 / Ammunition System: 弹匣容量、换弹机制、弹药显示
  • 射击模式 / Firing Modes: 单发、连发、霰弹枪多发
  • 后坐力系统 / Recoil System: 视觉反馈和粒子效果
  • 爆头检测 / Headshot Detection: 30%额外伤害
  • 血雾效果 / Blood Effects: 击中实体的粒子效果

高级功能 / Advanced Features

  • 自定义枪械 / Custom Weapons: 通过配置文件创建自定义枪械
  • 子弹散步 / Bullet Spread: 移动时增加散步,鼓励静止射击
  • 音效系统 / Sound System: 多层次延迟音效,增强沉浸感
  • 交互禁用 / Interaction Disable: 持枪时禁用左键攻击和右键交互
  • 自动射击 / Auto Fire: 按住右键连续射击,松开停止
  • 手动换弹 / Manual Reload: F键手动换弹功能

📦 安装指南 / Installation

系统要求 / Requirements

  • Minecraft版本 / Minecraft Version: 1.21.4
  • 服务器类型 / Server Type: Spigot/Paper
  • Java版本 / Java Version: 8 或更高版本 / 8 or higher
  • 内存要求 / Memory: 建议2GB以上 / Recommended 2GB+

安装步骤 / Installation Steps

  1. 下载插件 / Download Plugin

    # 将GunPlugin.jar放入服务器的plugins文件夹
    # Place GunPlugin.jar in your server's plugins folder
  2. 启动服务器 / Start Server

    # 重启服务器以加载插件
    # Restart your server to load the plugin
  3. 配置插件 / Configure Plugin

    # 编辑plugins/GunPlugin/config.yml文件
    # Edit plugins/GunPlugin/config.yml file
  4. 设置权限 / Set Permissions

    # 给玩家gunplugin.use权限
    # Give players gunplugin.use permission

⚙️ 配置说明 / Configuration

配置文件分工 / Config File Roles

文件 / File 路径 / Path 作用 / Purpose
guns.yml plugins/GunPlugin/guns.yml 枪械目录:每把枪的完整定义(伤害、rate、弹匣、换弹、sounds、recoil、category/behavior 等)。根键名即枪械 ID。
config.yml plugins/GunPlugin/config.yml 插件与商店:settings、购买与经济 buy_system、default_guns 单枪覆盖、配件价格等。

修改 guns.yml 或 config.yml 后请执行 /gun reload(需权限)或重启服务端。

基础配置示例 / Basic config.yml excerpt

settings:
  disable_left_click: true
  disable_right_click_interaction: true
  debug_mode: false

# 可选:按枪械 ID 覆盖部分属性(材质、名称、射速等),详见 config 内注释
# default_guns:
#   ak74:
#     fire_rate: 580   # RPM;≤4 的小数可按「秒/发」解析(见配置注释)

枪械本体 不在 config.yml 的 guns: 下列出(旧版示例已废弃);请使用 guns.yml。


📝 命令列表 / Commands

以下为 GunCommand 实际注册的子命令(见源码);整条 /gun … 在执行器中统一校验 gunplugin.admin,控制台给予弹药需使用该权限。

基础命令 / Basic Commands

命令 / Command 描述 / Description
/gun give <目标> <guns.yml 枪械 ID \| 弹药 \| 投掷物> [数量] 给予枪械 / 弹药 / 投掷物(枪械 ID 与 guns.yml 根键一致;别名如 pistol→p250 见帮助)
/gun ammo 主手持枪:查看当前弹药
/gun ammo reload 主手持枪:执行换弹
/gun reload 重载插件配置与 guns.yml(不是游戏内换弹)
/gun help 显示帮助
/gun lang | /gun lang <代码> 查看或切换语言(可用代码见语言管理器)
/gun modify | /gun mod 主手持枪:打开 配件改装 GUI
/gun buy 打开购买 GUI(需在 config 中启用购买系统)

命令示例 / Command Examples

/gun give @p ak74
/gun give @p 9mm 64
/gun give PlayerName grenade 5
/gun ammo
/gun ammo reload
/gun reload
/gun modify
/gun buy

🔐 权限系统 / Permissions

plugin.yml 中仅声明:

权限 / Permission 描述 / Description 默认 / Default
gunplugin.use 在游戏内使用枪械(射击、开镜、交互等) true
gunplugin.admin 使用 /gun 全部子命令(默认 OP) op

权限配置示例 / Permission Configuration Example

groups:
  default:
    permissions:
      - gunplugin.use
  admin:
    permissions:
      - gunplugin.admin
      - gunplugin.use

🔫 枪械目录 / Weapon catalog

默认及自定义枪械均由 plugins/GunPlugin/guns.yml 定义(根键即枪械 ID)。数值、别名与列表说明见该文件及仓库 CHANGELOG_5.0.0.md,此处不再维护易过期的静态枪械表。


🛠️ 自定义枪械 / Custom Weapons

当前版本枪械 完全由 guns.yml 数据驱动:复制任意现有枪械条目,修改 根键名(=枪械 ID,建议小写)并按需改字段即可新增一枪。

步骤 / Steps

  1. 编辑 plugins/GunPlugin/guns.yml

    • 根键:枪械 ID,用于 /gun give <id>、商店、物品 PDC gun_catalog_id。
    • 必填字段(缺一不可):material、display_name、damage、rate(RPM)、magazine、reload_duration(或 reload_speed)、fly_speed、bullet_drop、penetration、movement_spread、ammo、is_automatic、is_shotgun、is_sniper、category、reload_mode、bolt_after_shot、attachments、sounds(含 fire/reload/bolt,可为 [])、recoil。
    • 可选:behavior(pistol/rifle/…);不写则按 category 推断。
    • rate:每分钟发数 RPM;射击间隔(秒) ≈ 60 / rate。
    • recoil:style: normal(参数式)或 style: pattern + points 列表(每项 [水平, 垂直])。
    • 文件顶部有 中英文注释,逐项说明各键含义。
  2. (可选)覆盖而不改 guns.yml
    在 config.yml 的 default_guns.<枪械ID> 下可覆盖材质、显示名、弹匣、fire_rate、射击音效、弹药类型、is_automatic 等(详见该文件内注释)。

  3. 重载

    /gun reload
  4. 发放

    /gun give <枪械ID>

注意事项 / Notes

  • 同材质多枪:若多把枪共用同一 material,仅靠材质无法区分;请使用插件发放的枪(带 PDC 目录 ID),或为不同枪指定 不同材质。
  • 购买价格:在 config.yml 的购买相关节配置,不在 guns.yml。
  • 更细的字段表与音效格式说明见 guns.yml 文件头 与仓库内 CHANGELOG_5.0.0.md。

极简骨架示例 / Minimal skeleton(省略音效与后坐力细节时请直接复制完整条目改 ID)

# 建议复制 aa12 / ak74 等完整条目后改名修改,下列仅为结构提示
my_custom_rifle:
  material: IRON_HORSE_ARMOR
  display_name: "自定义步枪"
  magazine: 30
  damage: 5.0
  rate: 600          # RPM
  fly_speed: 100
  bullet_drop: 0.05
  reload_duration: 2.5
  penetration: 1
  movement_spread: 0.5
  ammo: 762
  is_automatic: true
  is_shotgun: false
  is_sniper: false
  category: rifle
  reload_mode: magazine
  bolt_after_shot: false
  attachments: []
  sounds: { fire: [...], reload: [...], bolt: [] }
  recoil: { style: normal, ... }

📊 更新日志 / Changelog

详见插件根目录 CHANGELOG.md(中文累计日志)、CHANGELOG_EN.md(英文)及 CHANGELOG_5.0.0.md(5.0.0 摘要)。


❓ 常见问题 / FAQ

Q: 如何获得枪械? / How to get weapons?

A: 使用命令 /gun give <枪械类型> 或通过配置文件自定义 / Use command /gun give <weapon_type> or customize via config file

Q: 为什么子弹没有伤害? / Why bullets don't deal damage?

A: 检查玩家权限和插件配置,确保子弹更新任务正常运行 / Check player permissions and plugin configuration, ensure bullet update task is running

Q: 如何自定义枪械? / How to customize weapons?

A: 在 plugins/GunPlugin/guns.yml 中新增或复制枪械条目(根键即枪械 ID),必要时用 config.yml 的 default_guns 做覆盖;执行 /gun reload。详见上文 自定义枪械。 / Edit plugins/GunPlugin/guns.yml (root key = gun id); optionally override via default_guns in config.yml; run /gun reload. See Custom Weapons.

Q: 支持哪些Minecraft版本? / Which Minecraft versions are supported?

A: 目前支持Minecraft 1.21.x / Currently supports Minecraft 1.21.x

Q: 如何调整子弹散步? / How to adjust bullet spread?

A: 在 guns.yml 中调整 movement_spread 及 recoil 相关参数 / Tune movement_spread and recoil in guns.yml


🆘 技术支持 / Support

欢迎通过 plugin.yml 中的 website(Modrinth 等发布页)反馈问题。

许可证 / License

若仓库内附有许可证文件则以该文件为准;否则请以插件发布页的授权说明为准。


享受射击的乐趣! / Enjoy the shooting experience! 🎯

How to Install GunPlugin (Plugin)

GunPlugin by 114514h is verified for Bukkit, Folia, Paper, Purpur, Spigot across Minecraft versions 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5 (latest release: 6.0.0, file size: 677 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5) and platform (Bukkit, Folia, Paper, Purpur, Spigot).
  2. Make sure you have the compatible loader or environment installed for Bukkit, Folia, Paper, Purpur, Spigot.
  3. Move the downloaded GunPlugin file into your Minecraft .minecraft/plugins folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.21.x
Bukkit Folia Paper Purpur Spigot
2mo ago 7
1.21.x
Bukkit Folia Paper Purpur Spigot
2mo ago 3
1.21.x
Bukkit Folia Paper Purpur Spigot
2mo ago 2
1.21.x
Bukkit Paper Purpur Spigot
2mo ago 2
1.21.x
Bukkit Paper Purpur Spigot
2mo ago 1
1.21.x
Bukkit Paper Purpur Spigot
2mo ago 1
1.21.x
Bukkit Paper Purpur Spigot
2mo ago 1
1.21.x
Bukkit Paper Purpur Spigot
2mo ago 1
1.21.x
Bukkit Paper Purpur Spigot
2mo ago 1
1.21.x
Bukkit Paper Purpur Spigot
2mo ago 1
[6.0.0] GunPlugin 6.0.0 by 114514h on Oct 15, 2026
Download
Fixed the issue of stuttering in the rotation angle during shooting
Added rebound effect to the projectile
修复了开枪时转动视角的卡顿问题
为投掷物添加了反弹效果
[5.0.0] GunPlugin 5.0.0 by 114514h on Oct 15, 2026
Download
# GunPlugin 5.0.0 更新日志 / Release Notes

  • 发布日期 / Release date:** 2026-05-11


## 1. 多语言支持 / Multi-Language Support

### 中文

  • 扩充语言资源文件(messages/*.yml):商店、配件、命令提示、物品 Lore、调试与日志字符串等与模板键对齐。
  • 多套语种并行维护(含简体 / 英文 / 日文 / 韩文 / 繁体中文等);缺失键回退默认语言。
  • 统一射速等单位在各语言下的表述(如 RPM)。

### English

  • Expanded locale packs (messages/*.yml): shop, attachments, commands, item lore, debug/log strings aligned with keys.
  • Multiple locales shipped (e.g. zh_CN, en_US, ja_JP, ko_KR, zh_TW); missing keys fall back to default.
  • Consistent fire-rate labeling (e.g. RPM) across languages.


## 2. 配置文件大改与自定义枪械 / Configuration Overhaul & Custom Guns

### 中文

  • guns.yml**:枪械完全由数据驱动(伤害、rate(RPM)、弹匣、换弹、sounds、recoil、behavior/category 等),新增枪械仅需添加条目并重载。
  • config.yml**:default_guns 按枪械 ID 覆盖部分字段;购买与经济选项集中于配置。
  • guns.yml** 文件头提供中英文配置说明与必填项列表。

### English

  • guns.yml**: Fully data-driven guns (damage, RPM rate, magazine, reload, sounds, recoil, behavior/category, etc.); add entries and reload.
  • config.yml**: Per-gun overrides via default_guns.<id>; economy/buy settings in config.
  • Bilingual header docs in guns.yml for required keys and sections.


## 3. 后坐力调整 / Recoil Tuning

### 中文

  • recoil**:normal 参数式与 pattern 点列式;points 为按发序循环的 [水平, 垂直]。
  • 区分 **movement_spread**(移动散布)与 recoil 内 **horizontal_spread / vertical_spread**(后坐视角散布)。

### English

  • recoil**: normal vs pattern; points are cyclic [h, v] pairs per shot.
  • Clear separation between **movement_spread** and recoil spread fields.


## 4. 持枪移速 / Hold Move Speed

### 中文

  • 持枪减速改为 **直接调整行走速度**(setWalkSpeed),以进入持枪前速度为基准按倍率计算;开镜、射击/换弹惩罚为额外乘数,**不再使用缓慢药水**。
  • guns.yml** 新增 **hold_move_speed**(可选,默认 0.88,取值 (0,1]);机枪 **negev** 示例为 **0.62**(移动更慢)。

### English

  • Gun-hold slowdown uses **Player#setWalkSpeed** from a baseline captured before aiming; scoped / shoot-reload penalties multiply it—**no Slowness potions**.
  • guns.yml** adds **hold_move_speed** (optional, default 0.88, range (0,1]); sample **LMG** negev uses **0.62**.


## 5. 修复已知问题 / Bug Fixes & Improvements

### 中文

  • 全自动射速**:按 RPM 使用固定 tick 周期连发并首发即时射击,缓解实际射速低于配置的问题。
  • default_guns.fire_rate**:合并进枪械解析,与 Lore 与实战一致。
  • 文案**:修正部分语言下 Lore 将 RPM 显示为「秒」等问题。

### English

  • Full-auto cadence**: Tick-based scheduling from RPM plus immediate first shot; reduces undershoot vs configured RPM.
  • default_guns.fire_rate**: Applied in resolved gun stats (matches lore and gameplay).
  • UI copy**: Fixed RPM vs seconds in some locales.


[4.0.0] GunPlugin 4.0.0 by 114514h on Oct 15, 2026
Download
# Gun Plugin Changelog Gun 插件变更日志
## [4.0.0]
I forgot what I updated🤔 **我忘记更新了什么🤔……**             
[3.0.1] GunPlugin 3.0.1 by 114514h on Oct 15, 2026
Download
# Gun Plugin Changelog Gun 插件变更日志
## [3.0.1]
Fixed the bug of material conflict between .50mm ammunition and the firearm "USP" **修复了.50mm弹药和枪械“USP”材质冲突的问题**             
[3.0.0] GunPlugin 3.0.0 by 114514h on Oct 15, 2026
Download
# GunPlugin 3.0.0 更新日志 / Changelog

  • 中文 / Chinese** | **English**


## 🎯 重大更新 / Major Updates

### 全面多语言适配 / Complete Multi-Language Support

#### 中文

  • 完整的多语言支持**
  • 所有GUI界面完全适配中英文
  • 配件系统界面完全本地化
  • 购买页面所有内容支持多语言
  • 配件槽位名称、配件名称、描述完全本地化
  • 修复了语言键缺失导致的警告问题

  • 本地化改进**
  • 配件改装GUI完全支持多语言切换
  • 配件槽位选择界面支持多语言
  • 配件效果描述支持多语言
  • 所有错误消息和提示信息完全本地化

#### English

  • Complete Multi-Language Support**
  • All GUI interfaces fully support Chinese and English
  • Attachment system interface fully localized
  • All content in the purchase page supports multiple languages
  • Attachment slot names, attachment names, and descriptions fully localized
  • Fixed language key missing warnings

  • Localization Improvements**
  • Attachment modification GUI fully supports language switching
  • Attachment slot selection interface supports multiple languages
  • Attachment effect descriptions support multiple languages
  • All error messages and prompts fully localized


### 配件系统全面重构 / Complete Attachment System Overhaul

#### 中文

  • 移除旧升级系统,引入全新配件系统**
  • 删除了原有的枪械升级系统(弹容量、射速、换弹时间等升级)
  • 全新的配件改装系统,更加灵活和真实

  • 配件系统核心特点**
  • 5个配件槽位**:枪口、枪托、弹匣、侧导轨、下导轨
  • 配件类型丰富**:
  • 消音器(一级/二级):降低枪声,减少后坐力
  • 补偿器(一级/二级):减少后坐力
  • 扩容弹匣(一级/二级):增加弹匣容量,提升换弹速度
  • 镭指:减少子弹散步
  • 垂直握把:减少后坐力
  • 枪托(一级/二级):减少后坐力
  • 托腮板:减少10%后坐力(适用于霰弹枪、狙击枪、狙击步枪)

  • 配件效果叠加**:
  • 弹匣容量加成:最高可增加40%
  • 换弹速度加成:最高可增加15%
  • 枪声减少:最高可降低85%
  • 后坐力减少:多种配件可叠加,最高可减少30%+
  • 子弹散步减少:最高可减少20%

  • 智能槽位系统**:
  • 不同枪械类型支持不同的配件槽位组合
  • 步枪、Vector、狙击步枪:支持全部5个槽位
  • 手枪(P250、沙漠之鹰、USP、AA12):支持弹匣、枪口、下导轨、枪托
  • CZ75:支持弹匣、枪口、下导轨
  • S686:仅支持枪托
  • 狙击枪:支持枪口、枪托
  • PP19:仅支持枪口
  • 机枪:支持弹匣、枪口

  • 配件兼容性系统**:
  • 狙击步枪(MK14、SKS)支持步枪配件和狙击枪配件
  • 机枪(NEGEV)和AA12支持步枪弹匣
  • 托腮板适用于霰弹枪、狙击枪、狙击步枪
  • 智能配件分类:步枪配件、冲锋枪配件、霰弹枪配件、手枪配件、狙击枪配件

  • 配件GUI系统**:
  • 直观的配件改装界面
  • 主界面显示所有可用槽位
  • 槽位页面显示已安装配件和可用配件
  • 配件效果实时显示
  • 支持配件安装和卸载
  • 配件数据持久化保存

#### English

  • Removed Old Upgrade System, Introduced New Attachment System**
  • Removed the old gun upgrade system (magazine size, fire rate, reload time upgrades)
  • Brand new attachment modification system, more flexible and realistic

  • Attachment System Core Features**
  • 5 Attachment Slots**: Muzzle, Stock, Magazine, Side Rail, Under Rail
  • Rich Attachment Types**:
  • Silencers (Level 1/2): Reduce sound, reduce recoil
  • Compensators (Level 1/2): Reduce recoil
  • Extended Magazines (Level 1/2): Increase magazine capacity, improve reload speed
  • Laser Sights: Reduce bullet spread
  • Vertical Grips: Reduce recoil
  • Stocks (Level 1/2): Reduce recoil
  • Cheek Pads: Reduce 10% recoil (for shotguns, sniper rifles, and DMRs)

  • Attachment Effect Stacking**:
  • Magazine Capacity Bonus: Up to 40% increase
  • Reload Speed Bonus: Up to 15% increase
  • Sound Reduction: Up to 85% reduction
  • Recoil Reduction: Multiple attachments can stack, up to 30%+ reduction
...
[2.0.1] GunPlugin 2.0.1 by 114514h on Oct 15, 2026
Download
# Gun Plugin Changelog Gun 插件变更日志
## [2.0.1]
Updated bStats **更新了bStats**
[2.0.0] GunPlugin 2.0.0 by 114514h on Oct 15, 2026
Download
# Gun Plugin Changelog Gun 插件变更日志
## [2.0.0]
Updated a lot of content **更新了非常多的内容**

### 🎯 Major Updates 🎯 **主要更新**
  • Added recoil system **添加了后坐力系统**
  • Designed individual recoil for each firearm
  • 为每个枪械设计了单独的后坐力**
  • Added firearm purchase system **添加了枪械购买系统**
  • You can customize the price of each firearm **可以自定义每个枪械的价格**
  • Added firearm upgrade system **添加了枪械升级系统**
  • Support players to upgrade multiple abilities of firearms **支持玩家为枪械的多项能力进行升级**

### 🔧 Feature Improvements 🔧 **功能改进**
  • Improved smoke material **改进了烟雾弹材质**
  • Improved the 'give' command **改进了give命令**
  • Improved the stacking logic of firearms **改进了枪械堆叠逻辑**

### 🎮 New Commands 🎮 **新命令**
  • /gun buy - **枪械购买命令**
  • /gun buy - **gun purchase command**
  • /gun upgrade - **升级枪械命令**
  • /Gun upgrade - **Command to upgrade firearms**

### 🐛 Bug Fixes 🐛 **错误修复**
  • Fixed many bugs! **修复了很多漏洞!**
[1.2.0] GunPlugin 1.2.0 by 114514h on Oct 15, 2026
Download
# Gun Plugin Changelog

## [1.2.0]

### 🎯 Major Updates

#### Grenade System
  • Added High Explosive Grenade**
  • Explodes after 5 seconds, dealing damage to entities within 5 block radius
  • Center explosion damage: 20 points, edge damage: 2 points
  • Material: Slime Ball
  • Supports left-click low throw and right-click high throw

  • Added Molotov Cocktail**
  • Generates fire particles in 3 block radius at impact point
  • Deals 4 damage per second to players in contact, lasts 10 seconds
  • Fire spreads downward until hitting non-air blocks
  • Material: Fire Charge
  • Supports left-click low throw and right-click high throw

  • Added Smoke Grenade**
  • Generates smoke particles in 3x3x3 area at impact point
  • Provides visual cover, lasts 15 seconds
  • Material: Egg
  • Supports left-click low throw and right-click high throw

#### Multi-Language System
  • Complete Multi-Language Support**
  • Supports Chinese (zh_CN) and English (en_US)
  • Language switching via configuration file
  • Language switching command /gun lang

  • Localized Content**
  • All in-game messages support multiple languages
  • Gun names, ammo names, grenade names localized
  • Help information, error messages, console logs localized
  • ActionBar messages, item descriptions localized

### 🔧 Feature Improvements

#### Grenade System Optimization
  • Throw Cooldown Mechanism**
  • 2-second throw interval to prevent spam
  • Shows remaining time during cooldown

  • High Explosive Grenade Optimization**
  • Countdown starts when thrown, not when landing
  • Landing sound effects: minecraft:block.anvil.place and minecraft:entity.tnt.primed
  • Continuous smoke particles during countdown
  • Ensures entity cleanup after explosion

  • Molotov Cocktail Optimization**
  • Fire sound effect minecraft:block.fire.ambient in flames
  • Optimized downward fire spread logic
  • Maximum 20 block depth check

  • Smoke Grenade Optimization**
  • Uses minecraft:explosion_emitter particle effect
  • Optimized smoke height and radius

#### Language System Optimization
  • Language Manager Enhancement**
  • Automatically copies language files from resources folder
  • Supports message key fallback mechanism
  • Detailed debug logs and error handling
  • Parameter replacement system support

  • Enum Multi-Language Support**
  • GunType enum supports localized names
  • AmmoType enum supports localized names and descriptions
  • Dynamic current language setting retrieval

### 🎮 New Commands

#### Language Management Commands
  • /gun lang - Show current language and available languages
  • /gun lang <language_code> - Switch language (zh_CN/en_US)

#### Grenade Commands
  • /gun give grenade [amount] - Get High Explosive Grenade
  • /gun give molotov [amount] - Get Molotov Cocktail
  • /gun give smoke [amount] - Get Smoke Grenade

### 📋 Configuration Updates

#### Language Configuration
```yaml
# Language Settings
# Supported languages: zh_CN (Chinese), en_US (
...
[1.1.0] GunPlugin 1.1.0 by 114514h on Oct 15, 2026
Download
## v1.1.0 - Major Update

### 🆕 New Weapon System
  • Renamed Original Weapons**:
  • Pistol → P250 (Leather Horse Armor)
  • Rifle → AK-74 (Iron Horse Armor)
  • Shotgun → AA-12 (Golden Horse Armor)
  • Sniper → AWM (Diamond Horse Armor)
  • Added 11 New Weapons**:
  • HK416 (Black Dye) - Full-auto assault rifle
  • PP19 (Brown Dye) - High-rate submachine gun
  • AUG (Red Dye) - Precision assault rifle
  • MK-14 (Orange Dye) - High-damage automatic rifle
  • S686 (Yellow Dye) - Double-barrel shotgun
  • 98K (Lime Dye) - Classic sniper rifle
  • Vector (Green Dye) - Ultra-high-speed submachine gun
  • Negev (Cyan Dye) - Heavy machine gun
  • SKS (Light Blue Dye) - Semi-automatic sniper rifle
  • Desert Eagle (Blue Dye) - High-caliber pistol
  • CZ75 (Purple Dye) - Compact pistol

### 🎯 Weapon Characteristics
  • Firing Mode Classification**:
  • Full-auto weapons: AK-74, HK416, PP19, AUG, MK-14, Vector, Negev, CZ75
  • Semi-auto weapons: 98K, SKS, Desert Eagle
  • Single-shot weapons: P250, AWM
  • Shotguns: AA-12, S686
  • Balanced Design**:
  • Damage range: 4.0-20.0
  • Fire rate range: 0.4-25 rounds/second
  • Magazine capacity range: 2-150 rounds
  • Penetration power: 0-4 blocks

### 🎵 Sound System
  • Sound Classification**:
  • Pistol sound group: P250, CZ75, Desert Eagle
  • Rifle sound group: AK-74, HK416, PP19, AUG, MK-14, Vector, Negev, SKS
  • Shotgun sound group: AA-12, S686
  • Sniper sound group: AWM, 98K
  • Multi-layered Sounds**:
  • Each weapon has unique shooting sounds
  • Includes main sound and delayed sound
  • Volume and pitch carefully tuned

### 🔧 Command System
  • New Command Support**:
  • Supports /gun give command for all 15 weapons
  • Complete auto-completion functionality
  • Detailed help information
  • Backward Compatibility**:
  • Maintains full compatibility with old commands
  • pistol → P250, rifle → AK-74, shotgun → AA-12, sniper → AWM

### 📊 Technical Improvements
  • Code Refactoring**:
  • Updated GunType enum to support 15 weapons
  • Refactored sound system with sound classification
  • Optimized command processing logic
  • Performance Optimization**:
  • Improved weapon identification algorithms
  • Optimized sound playback mechanisms
  • Enhanced memory management

## v1.1.0 - 重大更新

### 🆕 新枪械系统 / New Weapon System
  • 重命名原枪械** / **Renamed Original Weapons**:
  • 手枪 → P250 (皮革马铠)
  • 步枪 → AK-74 (铁马铠)
  • 霰弹枪 → AA-12 (金马铠)
  • 狙击枪 → AWM (钻石马铠)
  • 新增11种枪械** / **Added 11 New Weapons**:
  • HK416 (黑色染料) - 全自动突击步枪
  • PP19 (棕色染料) - 高射速冲锋枪
  • AUG (红色染料) - 精确突击步枪
  • MK-14 (橙色染料) - 高伤害自动步枪
  • S686 (黄色染料) - 双管霰弹枪
  • 98K (黄绿色染料) - 经典狙击步枪
  • Vector (绿色染料) - 超高速冲锋枪
  • 内格夫 (青色染料) - 重型机枪
  • SKS (淡蓝色染料) - 半自动狙击步枪
  • 沙漠之鹰 (蓝色染料) - 大口径手枪
  • CZ75 (紫色染料) - 紧凑型手枪

### 🎯 武器特性 / Weapon Characteristics
  • 射击模式分类** / **Firing Mode Classification**:
  • 全自动武器: AK-74, HK416, PP19, AUG, MK-14, Vector, 内格夫, CZ75
  • 半自动武器: 98K, SKS, 沙漠之鹰
  • 单发武器: P250, AWM
  • 霰弹枪: AA-12, S686
  • 平衡性设计** / **Bal
...
[1.0.0] GunPlugin 1.0.0 by 114514h on Oct 15, 2026
Download
# GunPlugin - 枪械插件详细说明

# GunPlugin - Detailed Plugin Description


## 📖 插件概述 / Plugin Overview

### 中文描述
GunPlugin是一个功能丰富的Minecraft枪械插件,为Spigot 1.21.4服务器提供完整的射击体验。插件支持多种枪械类型、真实弹道系统、自定义配置和高级射击功能,让玩家在Minecraft中体验真实的枪战。

### English Description
GunPlugin is a feature-rich Minecraft gun plugin that provides a complete shooting experience for Spigot 1.21.4 servers. The plugin supports multiple weapon types, realistic ballistics system, custom configuration, and advanced shooting features, allowing players to experience realistic gunfights in Minecraft.


## 🎯 功能列表 / Feature List

### 核心功能 / Core Features

#### 1. 枪械系统 / Weapon System
  • 默认枪械** / **Default Weapons**:
  • 手枪 (皮革马铠) - 单发,12发弹匣,4点伤害
  • 步枪 (铁马铠) - 连发,40发弹匣,5点伤害
  • 霰弹枪 (金马铠) - 多发,7发弹匣,15点伤害
  • 狙击枪 (钻石马铠) - 单发,5发弹匣,20点伤害

  • 自定义枪械** / **Custom Weapons**:
  • 支持任意物品材质作为枪械
  • 可配置弹匣容量、伤害、射速等参数
  • 支持自动/单发/霰弹枪模式

#### 2. 弹道系统 / Ballistics System
  • 子弹物理** / **Bullet Physics**:
  • 真实的重力下坠效果
  • 可配置的子弹速度
  • 穿透系统(可穿透特定方块)
  • 移动散步系统(移动时精度降低)

#### 3. 射击机制 / Shooting Mechanics
  • 射击模式** / **Firing Modes**:
  • 单发模式:点击射击
  • 连发模式:按住连续射击
  • 霰弹枪模式:一次发射多发子弹

  • 弹药管理** / **Ammunition Management**:
  • 弹匣系统
  • 自动换弹
  • 手动换弹(F键)
  • 弹药显示(ActionBar)

#### 4. 音效系统 / Sound System
  • 多层次音效** / **Multi-layered Sounds**:
  • 射击音效(延迟播放)
  • 换弹音效(分阶段播放)
  • 击中音效
  • 后坐力音效

#### 5. 视觉效果 / Visual Effects
  • 粒子效果** / **Particle Effects**:
  • 枪口火焰
  • 子弹轨迹
  • 击中效果
  • 血雾效果
  • 后坐力粒子

#### 6. 交互系统 / Interaction System
  • 左键右键禁用** / **Left/Right Click Disable**:
  • 持枪时禁用左键攻击
  • 持枪时禁用右键交互
  • 可配置开启/关闭

#### 7. 高级功能 / Advanced Features
  • 爆头检测** / **Headshot Detection**:
  • 击中头部增加30%伤害
  • 特殊音效反馈

  • 后坐力系统** / **Recoil System**:
  • 视觉粒子反馈
  • 不影响玩家移动


## 📚 使用教程 / Usage Tutorial

### 基础使用 / Basic Usage

#### 1. 获得枪械 / Getting Weapons
``bash
# 给予默认枪械 / Give default weapons
/gun give pistol # 手枪 / Pistol
/gun give rifle # 步枪 / Rifle
/gun give shotgun # 霰弹枪 / Shotgun
/gun give sniper # 狙击枪 / Sniper

# 给予自定义枪械 / Give custom weapons
/gun give custom_rifle # 自定义步枪 / Custom rifle
`

#### 2. 射击操作 / Shooting Operations
  • 单发武器** / **Single-shot Weapons**:
  • 右键点击射击
  • 自动消耗弹药
  • 弹匣空时自动换弹

  • 连发武器** / **Automatic Weapons**:
  • 按住右键连续射击
  • 松开右键停止射击
  • 支持弹药耗尽自动换弹

  • 霰弹枪** / **Shotgun**:
  • 一次发射5发子弹
  • 每发子弹有独立弹道
  • 近距离伤害更高

#### 3. 换弹操作 / Reload Operations
  • 自动换弹** / **Auto Reload**:
  • 弹匣空时自动开始换弹
  • 显示换弹进度
  • 播放换弹音效

  • 手动换弹** / **Manual Reload**:
  • 按F键手动换弹
  • 可在任何时候换弹
  • 换弹时无法射击

#### 4. 弹药管理 / Ammunition Management
`bash
# 设置弹药数量 / Set ammo count
/gun ammo 100 # 设置当前枪械弹药为100发 / Set current weapon ammo to 100

# 查看弹药信息 / View ammo info
# 弹药信息显示在ActionBar中 / Ammo info displayed in ActionBar
`

### 高级使用 / Advanced Usage

#### 1. 自定义枪械创建 / Custom Weapon Creation
``yaml
# 在config.yml中添加自定义枪械 / Add custom weapon in config.yml
guns:
my_rifle:
name: "我的步枪" # Weapon name
material: "IRON_SWORD" # Item material
magazine_size: 30 # Magazin
...
GunPlugin Icon
Download GunPlugin
Select game version
Select platform