MKFireballs
将火球机制带入任何玩法中!
适用于 Minecraft 1.16.5+ 的逼真可投掷火球,带有击退效果,风格源自 FireballFight 1.8.9。
功能
- 逼真的物理效果 — 火球沿直线轨迹飞行,无重力影响,就像在 FireballFight 中一样
- 可自定义的击退 — 撞击时产生击退,可调节水平和垂直力度
- 火箭跳(Rocket Jump) — 射击者也会受到击退(可禁用)
- 冷却系统 — 每种火球类型均可配置独立的冷却时间
- 自定义火球 — 通过交互式聊天向导创建独特的火球
- WorldGuard 集成 — 区域保护免受方块破坏(支持黑名单/白名单模式)
- 全面自定义 — 速度、爆炸威力、着火设置、存活时间、物品材质
安装
- 下载最新版本的插件
- 将
.jar 文件放入服务器的 plugins 文件夹
- 重启服务器
- 根据需要配置
config.yml
依赖项
- Paper 1.16.5+(或兼容的分叉版本)
- WorldGuard 7.x(可选,用于区域保护)
命令
| 命令 |
描述 |
权限 |
/mkfireballs help |
显示帮助菜单 |
— |
/mkfireballs reload |
重新加载配置 |
mkfireballs.admin |
/mkfireballs list |
列出所有火球 |
— |
/mkfireballs give <name> [player] [amount] |
给予一个火球 |
mkfireballs.admin |
/mkfireballs create <name> |
创建自定义火球(聊天向导) |
mkfireballs.admin |
/mkfireballs delete <name> |
删除自定义火球 |
mkfireballs.admin |
别名: /mkfb, /fireballs
权限
| 权限 |
描述 |
默认值 |
mkfireballs.use |
使用火球 |
所有人 |
mkfireballs.admin |
访问管理员命令 |
OP |
mkfireballs.bypass.cooldown |
绕过冷却时间 |
OP |
配置
config.yml
# 插件前缀
prefix: "&6&l[MKFB] &r"
# 全局火球设置
fireball:
velocity: 1.6 # 飞行速度
break-blocks: true # 破坏方块
explosion-power: 2.5 # 爆炸威力 (1.0 = TNT)
set-fire: false # 点燃方块
max-lifetime-ticks: 200 # 存活时间 (20 ticks = 1 秒)
default-cooldown: 5 # 默认冷却时间 (秒)
# 击退设置
knockback:
enabled: true
horizontal: 1.2 # 水平力度
vertical: 0.45 # 垂直力度
max-vertical: 1.0 # 最大垂直速度
radius: 4.0 # 应用半径
affect-shooter: true # 射击者是否受击退
shooter-multiplier: 1.0 # 射击者的击退倍率
# WorldGuard 集成
worldguard:
enabled: true
mode: blacklist # blacklist 或 whitelist
regions:
- "spawn"
- "lobby"
# 默认物品
default-item:
material: FIRE_CHARGE
name: "&c&lFireball"
lore:
- "&7右键点击投掷"
- "&7冷却时间:&e{seconds}s"
自定义火球
自定义火球使用 /mkfb create <name> 命令创建,并单独保存为 .yml 文件,位于 plugins/MKFireballs/fireballs/ 文件夹中。
聊天向导提示:
- 显示名称(支持
& 颜色代码)
- 材质(例如
FIRE_CHARGE, BLAZE_POWDER)
- 冷却时间(秒)
- 速度(飞行速度)
- 爆炸威力
- 破坏方块(true/false)
- 点燃方块(true/false)
- 最大存活 tick 数
- 启用击退(true/false)
- 击退水平力度
- 击退垂直力度
- 击退半径
若要取消,请在聊天中输入 cancel。
用法
- 使用
/mkfb give default <player> 给自己一个火球
- 手持该物品
- 右键点击 以投掷
- 火球将直线飞行,并在撞击后或其存活时间结束时爆炸
许可证
本项目基于 MIT 许可证分发
MKFireballs
Bring fireball mechanic to any gameplay!
Realistic throwable fireballs with knockback in the style of FireballFight 1.8.9 for Minecraft 1.16.5+.
Features
- Realistic physics — fireballs fly in a straight trajectory without gravity, just like in FireballFight
- Customizable knockback — impact knockback with adjustable horizontal and vertical force
- Rocket Jump — the shooter also receives knockback (can be disabled)
- Cooldown system — configurable cooldowns for each fireball type
- Custom fireballs — create unique fireballs via an interactive chat wizard
- WorldGuard integration — region protection from block destruction (blacklist/whitelist modes)
- Full customization — velocity, explosion power, fire setting, lifetime, item material
Installation
- Download the latest version of the plugin
- Place the
.jar file into your server's plugins folder
- Restart the server
- Configure
config.yml to your liking
Dependencies
- Paper 1.16.5+ (or compatible fork)
- WorldGuard 7.x (optional, for region protection)
Commands
| Command |
Description |
Permission |
/mkfireballs help |
Show help menu |
— |
/mkfireballs reload |
Reload configuration |
mkfireballs.admin |
/mkfireballs list |
List all fireballs |
— |
/mkfireballs give <name> [player] [amount] |
Give a fireball |
mkfireballs.admin |
/mkfireballs create <name> |
Create a custom fireball (chat wizard) |
mkfireballs.admin |
/mkfireballs delete <name> |
Delete a custom fireball |
mkfireballs.admin |
Aliases: /mkfb, /fireballs
Permissions
| Permission |
Description |
Default |
mkfireballs.use |
Use fireballs |
Everyone |
mkfireballs.admin |
Access admin commands |
OP |
mkfireballs.bypass.cooldown |
Bypass cooldowns |
OP |
Configuration
config.yml
# Plugin prefix
prefix: "&6&l[MKFB] &r"
# Global fireball settings
fireball:
velocity: 1.6 # Flight speed
break-blocks: true # Block destruction
explosion-power: 2.5 # Explosion power (1.0 = TNT)
set-fire: false # Block ignition
max-lifetime-ticks: 200 # Lifetime (20 ticks = 1 second)
default-cooldown: 5 # Default cooldown (seconds)
# Knockback settings
knockback:
enabled: true
horizontal: 1.2 # Horizontal force
vertical: 0.45 # Vertical force
max-vertical: 1.0 # Maximum vertical velocity
radius: 4.0 # Application radius
affect-shooter: true # Knockback for the shooter
shooter-multiplier: 1.0 # Multiplier for the shooter
# WorldGuard integration
worldguard:
enabled: true
mode: blacklist # blacklist or whitelist
regions:
- "spawn"
- "lobby"
# Default item
default-item:
material: FIRE_CHARGE
name: "&c&lFireball"
lore:
- "&7Right-click to throw"
- "&7Cooldown: &e{seconds}s"
Custom Fireballs
Custom fireballs are created using the /mkfb create <name> command and saved as individual .yml files in the plugins/MKFireballs/fireballs/ folder.
Chat wizard prompts:
- Display Name (supports
& color codes)
- Material (e.g.,
FIRE_CHARGE, BLAZE_POWDER)
- Cooldown (seconds)
- Velocity (flight speed)
- Explosion power
- Break blocks (true/false)
- Set fire (true/false)
- Max lifetime ticks
- Knockback enabled (true/false)
- Knockback horizontal
- Knockback vertical
- Knockback radius
To cancel, type cancel in chat.
Usage
- Give yourself a fireball with
/mkfb give default <player>
- Hold the item in your hand
- Right-click to throw
- The fireball will fly straight and explode on impact or after its lifetime expires
Licence
This project is distributed under the MIT License
评论 0
登录后参与评分
还没有评论,来抢沙发吧