Datapack presets
Skeleton King boss drops overpower sword preset
Skeleton King boss drops overpower sword preset is now a complete boss-loot workflow instead of a thin generated note. It shows the skeleton boss, the DeathLootTable path, the datapack reward JSON, and the tested in-game boss result together so the encounter can be reviewed before it becomes a map fight. Use it when you need a ranged undead boss with a guaranteed named sword reward and want the summon command and reward table to stay in the same Project context.
Preset result
Skeleton King is wired to nbtforge:entities/skeleton_king and rewards Kingbreaker Overpower Sword.
Output
Skeleton King boss and loot bundle
# 1) Summon the boss. This entity points at the custom loot table.
/summon minecraft:skeleton ~ ~ ~ {Tags:["nbtforge_boss","skeleton_king"],CustomName:{text:"Skeleton King",color:"gray",bold:true},CustomNameVisible:1b,PersistenceRequired:1b,DeathLootTable:"nbtforge:entities/skeleton_king",equipment:{mainhand:{id:"minecraft:diamond_sword",count:1,components:{"minecraft:custom_name":{text:"Kingbreaker Overpower Sword",color:"gray",italic:false},"minecraft:enchantments":{"minecraft:sharpness":6}}},head:{id:"minecraft:golden_helmet",count:1}}}
/attribute @e[tag=skeleton_king,limit=1,sort=nearest] minecraft:max_health base set 120
/attribute @e[tag=skeleton_king,limit=1,sort=nearest] minecraft:attack_damage base set 12
/data merge entity @e[tag=skeleton_king,limit=1,sort=nearest] {Health:120f}
# 2) Save this datapack file as data/nbtforge/loot_table/entities/skeleton_king.json
{
"type": "minecraft:entity",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:diamond_sword",
"weight": 1,
"functions": [
{
"function": "minecraft:set_count",
"count": 1
},
{
"function": "minecraft:set_components",
"components": {
"minecraft:custom_name": {
"text": "Kingbreaker Overpower Sword",
"color": "gray",
"italic": false
},
"minecraft:lore": [
{
"text": "Dropped by Skeleton King",
"color": "gray",
"italic": false
},
{
"text": "Overpowered boss reward from NBTForge",
"color": "gold",
"italic": false
}
],
"minecraft:enchantments": {
"minecraft:sharpness": 10,
"minecraft:unbreaking": 5,
"minecraft:fire_aspect": 2,
"minecraft:sweeping_edge": 3
},
"minecraft:attribute_modifiers": [
{
"id": "nbtforge:skeleton_king_power",
"type": "minecraft:attack_damage",
"amount": 12,
"operation": "add_value",
"slot": "mainhand"
}
],
"minecraft:rarity": "epic",
"minecraft:enchantment_glint_override": true,
"minecraft:custom_data": {
"nbtforge_boss_drop": "skeleton_king",
"overpower": 1
}
}
}
]
}
]
}
]
}
# 3) Optional quick test after /reload: spawn the reward without killing the boss.
/loot spawn ~ ~1 ~ loot nbtforge:entities/skeleton_kingThe longest command line is 478 characters, 222 over the 256-character chat input limit. Pasting it into chat can truncate the line and make Minecraft report a syntax error even when the generated command is valid.
- Use a Command Block: run
/give @s command_block, place it, then paste this command into the block command field. - Use a
.mcfunctionfor a reusable datapack: save the line without the leading slash atsaves/<world>/datapacks/<pack>/data/<ns>/function/<name>.mcfunctionwith a minimalpack.mcmeta, run/reload, then run/function <ns>:<name>. Do not paste.mcfunctioncontent into chat.
Preset screenshot
Build the preset
- Open the Summon workbench and choose skeleton as the boss entity.
- Set the visible custom name to Skeleton King and keep it visible for arena QA.
- Add stable boss tags so attributes, cleanup, and reward logic can target this entity.
- Set max health to 120 and attack damage to 12.
- Add DeathLootTable:"nbtforge:entities/skeleton_king" to the boss data.
- Open Data Pack and create data/nbtforge/loot_table/entities/skeleton_king.json.
- Configure the loot table to drop Kingbreaker Overpower Sword with name, lore, enchantments, rarity, and custom_data.
- Save the summon command and loot JSON together in Project before copying either artifact.
- Smoke test the boss spawn first, then test the loot table with `/loot spawn` or an arena kill.
Boss entity and reward table
Skeleton King has two separate responsibilities. The summon command creates the skeleton with name, tags, persistence, health, attack damage, and a DeathLootTable reference. The datapack file at data/nbtforge/loot_table/entities/skeleton_king.json defines what the player receives after the boss dies.
Keeping those responsibilities separate makes the preset easier to debug. If the boss does not spawn, inspect the summon output and entity syntax. If the boss spawns but drops nothing, inspect the namespace, resource path, datapack reload, and loot table JSON before changing the entity command.
The workbench gallery is arranged around that split. The first shot checks the boss identity, the second shot checks the reward resource, and the output shot keeps both artifacts close enough that the Project entry can preserve the relationship.
- Boss id: skeleton
- Loot path: nbtforge:entities/skeleton_king
- Reward item: Kingbreaker Overpower Sword
Testing the encounter safely
Start with a clean summon test before balancing the full fight. Skeleton King should appear with the expected name and tags in a restored world, and the screenshot should make the boss readable without relying on old mobs or leftover effects from a previous capture.
After the spawn is stable, test the loot table independently. A quick `/loot spawn ~ ~1 ~ loot nbtforge:entities/<id>` check proves the JSON can produce the reward before the fight logic is involved. Then run the final arena path where the actual boss death triggers the same resource.
Do not tune health, damage, effects, bossbars, and loot at the same time. Make one change, update the Project entry, then test the copied artifact. That keeps a broken datapack path from looking like an entity problem and keeps an entity typo from looking like a loot failure.
- Spawn test first.
- Loot JSON test second.
- Full arena kill test last.
Encounter placement
Skeleton King fits best when the arena setup, bossbar, warning feedback, and reward table are saved near the summon command. That gives reviewers one place to check whether the encounter starts, communicates danger, drops the intended item, and cleans up after itself.
When the preset becomes production content, move long commands into a datapack function and keep the loot table under the same namespace. The article output is deliberately explicit so the summon command and JSON path remain easy to audit before being copied into files.
For adjacent boss-loot examples, compare the Blaze Emperor fire boss loot preset, Warden Echo boss loot preset, and loot table boss drop preset.
FAQ
How does Skeleton King drop Kingbreaker Overpower Sword?
The summon command sets DeathLootTable to nbtforge:entities/skeleton_king. The datapack file at data/nbtforge/loot_table/entities/skeleton_king.json defines Kingbreaker Overpower Sword as the reward.
Can I paste the boss command into chat?
Only if the generated command stays under the chat limit. Boss commands usually belong in a command block for a one-off test or in a datapack function for reusable map content.
What should I test first if the reward does not drop?
Test the loot table path with `/loot spawn` first, then verify the boss summon still references the same DeathLootTable id. Most failures come from namespace or resource-path mismatches.
Open this workflow
Start from the related Data Pack workbench, then adjust the preset fields for your world.