自定义 Boss 模板
一个现成的数据包模板,用于在 Minecraft 1.21+ 中创建你自己的自定义 Boss
这不是一个完整的 Boss —— 它是一个注释详尽且易于编辑的模板,允许你创建任何你想要的自定义 Boss,从简单的生物到史诗级的团队首领。无需深入理解命令即可定制所有内容。
主要功能
- Boss 拥有 1000 HP 和精美的 Boss 血条(可轻松更改)
- 10 个战斗阶段,根据剩余生命值自动切换
- 智能移动 AI — Boss 始终面向最近的玩家并缓慢向其移动
- 定期攻击和召唤小兵的计时系统
- 粒子、音效、对玩家和 Boss 自身的特效
- 带有粒子、音效和自定义奖励的整洁胜利界面
- 适用于纯净版 Minecraft(无需模组)
你可以轻松自定义的内容
所有主文件都位于 data/boss/functions/ 中。以下是具体可以更改的内容及位置:
-
spawn.mcfunction — 生成 Boss 的主文件
- Boss 显示名称 (
CustomName)
- 实体标签 (
muzhlan_boss — 你可以将其改为自己的标签)
- 最大生命值 (
generic.max_health)
- 攻击伤害 (
generic.attack_damage)
- 击退抗性
- 主手和副手的物品(包含
custom_model_data)
- 初始阶段
- 生成标题和音效
-
setup.mcfunction — 在世界加载时运行一次
-
stages.mcfunction — 最重要的文件(控制所有阶段)
- 全部 10 个阶段(从 1000 HP 降至 100 HP)
- 每个阶段基于生命值激活的条件
- 聊天中的 Boss 消息 (
tellraw)
- 对玩家施加的效果(缓速、漂浮、黑暗等)
- 对 Boss 施加的效果(再生、力量、速度等)
- 召唤小兵(僵尸等)
- 粒子效果
- 你可以自由添加、移除或修改任何阶段
-
tick_logic.mcfunction — Boss 攻击逻辑
- 攻击频率(当前为每 3 秒一次)
- 攻击半径
- 给予玩家的伤害类型 (
instant_damage)
- 攻击音效
-
victory.mcfunction — Boss 被击败后发生的事
- 胜利消息
- 粒子和音效
- 给予玩家的奖励(物品、名称、附魔等)
- 移除 Boss 血条
-
loop.mcfunction — 主游戏循环(除非你知道自己在做什么,否则建议不要编辑)
如何快速上手
- 下载并将数据包安装到你世界的
datapacks 文件夹中
- 运行
/reload
- 使用命令
/function boss:spawn — Boss 将在你的位置出现
- 在任何文本编辑器(Notepad++、VS Code 等)中打开
data/boss/functions 文件夹
- 根据上述说明编辑文件
- 再次运行
/reload 并测试你的 Boss
此模板适合谁?
- 冒险地图创作者
- 想要独特 Boss 的服务器管理员
- 学习数据包的新手(所有内容都有详细注释)
- 希望进一步扩展逻辑的经验丰富的创作者
该数据包的设计目的是让你能够在 10–15 分钟内 更改几乎所有内容,即使你以前从未接触过函数。
想让 Boss 更强/更弱,改变其外观,添加新阶段,或者完全不同的奖励?
只需遵循文件内的注释——一切都有清晰的解释。
适用于 Minecraft 1.21 及更高版本(仅限 Java 版)。
如果你有任何问题,欢迎留言——我会尽力提供帮助!
Custom Boss Template — 你在 Minecraft 中创建酷炫自定义 Boss 的简易起点。
Custom Boss Template
A ready-to-use datapack template for creating your own custom boss in Minecraft 1.21+
This is not a finished boss — it’s a well-commented and easy-to-edit template that allows you to create any custom boss you want, from a simple mob to an epic raid boss. Everything can be customized without deep knowledge of commands.
Key Features
- Boss with 1000 HP and a beautiful bossbar (easily changeable)
- 10 fight phases that automatically switch based on remaining health
- Smart movement AI — the boss always faces the nearest player and slowly walks toward them
- Timer system for regular attacks and summoning minions
- Particles, sounds, effects on players and the boss itself
- Clean victory screen with particles, sound, and custom reward
- Works on pure vanilla Minecraft (no mods required)
What You Can Easily Customize
All main files are located in data/boss/functions/. Here’s exactly what you can change and where:
-
spawn.mcfunction — Main file for spawning the boss
- Boss display name (
CustomName)
- Entity tag (
muzhlan_boss — you can change it to your own)
- Maximum health (
generic.max_health)
- Attack damage (
generic.attack_damage)
- Knockback resistance
- Items in main hand and offhand (with
custom_model_data)
- Starting phase
- Spawn title and sound
-
setup.mcfunction — Runs once when the world loads
- Bossbar title, color, and style
-
stages.mcfunction — The most important file (controls all phases)
- All 10 phases (from 1000 HP down to 100 HP)
- When each phase activates based on health
- Boss messages in chat (
tellraw)
- Effects on players (slowness, levitation, darkness, etc.)
- Effects on the boss (regeneration, strength, speed, etc.)
- Minion spawning (zombies, etc.)
- Particles
- You can freely add, remove, or modify any phase
-
tick_logic.mcfunction — Boss attacks
- Attack frequency (currently every 3 seconds)
- Attack radius
- Damage type given to players (
instant_damage)
- Attack sound
-
victory.mcfunction — What happens when the boss is defeated
- Victory messages
- Particles and sounds
- Reward given to players (item, name, enchantments, etc.)
- Bossbar removal
-
loop.mcfunction — Main game loop (recommended not to edit unless you know what you're doing)
How to Get Started Quickly
- Download and install the datapack into your world's
datapacks folder
- Run
/reload
- Use the command
/function boss:spawn — the boss will appear at your location
- Open the folder
data/boss/functions in any text editor (Notepad++, VS Code, etc.)
- Edit the files according to the instructions above
- Run
/reload again and test your boss
Who Is This Template For?
- Adventure map creators
- Server owners who want a unique boss
- Beginners learning datapacks (everything is well commented)
- Experienced creators who want to expand the logic further
The datapack is designed so you can change almost everything in 10–15 minutes, even if you’ve never worked with functions before.
Want to make the boss stronger/weaker, change its appearance, add new phases, or completely different rewards?
Just follow the comments inside the files — everything is clearly explained.
Works on Minecraft 1.21 and newer (Java Edition only).
If you have any questions, feel free to leave a comment — I’ll try to help!
Custom Boss Template — Your easy starting point for creating awesome custom bosses in Minecraft.
评论 0
登录后参与评分
还没有评论,来抢沙发吧