Custom Boss Template

Easy custom boss template for Minecraft 1.21+. Fully configurable health, name, appearance, phases, attacks, messages and rewards. Perfect for adventure maps and servers.

11

Custom Boss Template

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 any custom boss 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 10 fight phases 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:

1. 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

2. setup.mcfunction — Runs once when the world loads - Bossbar title, color, and style

3. The most important fileThe 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

4. tick_logic.mcfunction — Boss attacks - Attack frequency (currently every 3 seconds) - Attack radius - Damage type given to players (`instant_damage`) - Attack sound

5. victory.mcfunction — What happens when the boss is defeated - Victory messages - Particles and sounds - Reward given to players (item, name, enchantments, etc.) - Bossbar removal

6. loop.mcfunction — Main game loop (recommended not to edit unless you know what you're doing)

How to Get Started Quickly

1. Download and install the datapack into your world's `datapacks` folder 2. Run `/reload` 3. Use the command `/function boss:spawn` — the boss will appear at your location 4. Open the folder `data/boss/functions` in any text editor (Notepad++, VS Code, etc.) 5. Edit the files according to the instructions above 6. 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.

ADS