Timur
📎 1 file 2,032 chars
📄
pasted-code-1792249689787.txt
txt 49 lines
▶
Create a Minecraft datapack for version 1.21.11 (Paper) that adds a custom boss mob called "Abyss Lord" (Владыка Бездны) and a custom loot table for it. The datapack should include:

A function abyss:summon_boss that summons a Wither Skeleton with the following NBT data:

CustomName: {"text":"☠ Владыка Бездны ☠","color":"dark_red","bold":true}

CustomNameVisible: 1b

PersistenceRequired: 1b

Health: 150f

attributes: max_health=150, attack_damage=14, knockback_resistance=0.5, movement_speed=0.30, follow_range=40

equipment:

mainhand: diamond_sword with enchantments sharpness 7, unbreaking 3

offhand: totem_of_undying

head: diamond_helmet with protection 5, unbreaking 3

chest: diamond_chestplate with protection 5, unbreaking 3

legs: diamond_leggings with protection 5, unbreaking 3

feet: diamond_boots with protection 5, unbreaking 3, feather_falling 4

drop_chances: mainhand=1.0, offhand=0.9, head=0.9, chest=0.9, legs=0.9, feet=0.9

DeathLootTable: abyss:abyss_lord

A loot table abyss:abyss_lord of type minecraft:entity with the following pools:

Pool 1: 1 roll, always drops 1-2 netherite_ingot

Pool 2: 1 roll, always drops 1-2 enchanted_golden_apple

Pool 3: 1 roll, always drops 8-16 diamond

Pool 4: 1 roll, 30% chance to drop 1 netherite_upgrade_smithing_template

Pool 5: 1 roll, 20% chance to drop 1 nether_star

A secondary function abyss:second_phase that can be triggered manually (or via command block) to summon two minions (skeletons with iron sword and chainmail armor) and increase the boss's movement speed to 0.32. This function should only work if the boss is alive and has less than 75 health.

All files must be correctly structured for a datapack: pack.mcmeta with appropriate pack_format for 1.21.11, and folders under data/abyss/ for functions and loot_tables.

Please generate the complete datapack as a downloadable ZIP file with all necessary JSON and mcfunction files. Ensure the syntax is correct for Minecraft 1.21.11 and Paper server.
Kodari AI
KodariOct 17 at 3:10 pm 1
AbyssLordBoss
Creates a custom boss datapack for Minecraft 1.21.11 (Paper) featuring the "Abyss Lord" Wither Skeleton with full diamond armor, enchanted weapons, custom attributes, and a unique death loot table. Includes a summon function with complete NBT data, five loot pools with guaranteed and chance-based drops, plus a second-phase function that spawns two armored skeleton minions and boosts boss speed when health drops below 75. All files properly structured for datapack installation.

Created the datapack in abyss_lord_datapack/. The second-phase function works only while the tagged boss is alive and below 75 health, and triggers once per boss.

  1. Download the ZIP using the export button.

  2. Extract abyss_lord_datapack/ into your world’s datapacks/ folder.

  3. Run /reload, then /datapack list to verify it loaded.

  4. Summon the boss with /function abyss:summon_boss.

  5. Trigger its second phase with /function abyss:second_phase.

Kodari can make mistakes. Review important code before using.
Files
abyss_lord_datapack
Code
7 111
abyss_lord_datapack/data/abyss/function/summon_boss.mcfunction
summon minecraft:wither_skeleton ~ ~1 ~ {CustomName:'{"text":"☠ Владыка Бездны ☠","color":"dark_red","bold":true}',CustomNameVisible:1b,PersistenceRequired:1b,Health:150.0f,Tags:["abyss_boss"],attributes:[{id:"minecraft:max_health",base:150.0d},{id:"minecraft:attack_damage",base:14.0d},{id:"minecraft:knockback_resistance",base:0.5d},{id:"minecraft:movement_speed",base:0.30d},{id:"minecraft:follow_range",base:40.0d}],equipment:{mainhand:{id:"minecraft:diamond_sword",count:1,components:{"minecraft:enchantments":{"levels":{"minecraft:sharpness":7,"minecraft:unbreaking":3}}}},offhand:{id:"minecraft:totem_of_undying",count:1},head:{id:"minecraft:diamond_helmet",count:1,components:{"minecraft:enchantments":{"levels":{"minecraft:protection":5,"minecraft:unbreaking":3}}}},chest:{id:"minecraft:diamond_chestplate",count:1,components:{"minecraft:enchantments":{"levels":{"minecraft:protection":5,"minecraft:unbreaking":3}}}},legs:{id:"minecraft:diamond_leggings",count:1,components:{"minecraft:enchantments":{"levels":{"minecraft:protection":5,"minecraft:unbreaking":3}}}},feet:{id:"minecraft:diamond_boots",count:1,components:{"minecraft:enchantments":{"levels":{"minecraft:protection":5,"minecraft:unbreaking":3,"minecraft:feather_falling":4}}}}},drop_chances:{mainhand:1.0f,offhand:0.9f,head:0.9f,chest:0.9f,legs:0.9f,feet:0.9f},DeathLootTable:"abyss:abyss_lord"}