Vansh K

Minecraft Plugin Development – Custom God Armour & Swords

Develop a fully functional Minecraft plugin that adds 1 Custom God Armour Set and 2 Custom Netherite Swords.

Plugin Requirements Plugin name: Billutools Minecraft version: 1.21.11 Server software: Paper Java version: 21 Package all features into one plugin.

All items must be obtainable ONLY through admin commands.

Items must retain their custom properties after restarting the server.

The plugin must support custom resource pack models through CustomModelData. ---

Admin Commands Create the following commands:

"/billutools armour" – Gives the complete God Armour set.

"/billutools helmet" – Gives God Helmet.

"/billutools chestplate" – Gives God Chestplate.

"/billutools leggings" – Gives God Leggings.

"/billutools boots" – Gives God Boots.

"/billutools fireblade" – Gives Fire Blade.

"/billutools sonicblade" – Gives Sonic Blade.

"/billutools reload" – Reloads the configuration without restarting the server.

Permissions:

"billutools.admin" – Allows access to all commands.

Default permission: OP only.

Regular players must not be able to obtain these items through commands. ---

God Netherite Armour Set All four armour pieces must be made from Netherite armour materials.

Every armour piece must have configurable:

Custom display name.

Enchantments and enchantment levels.

Custom lore.

CustomModelData.

RGB/HEX colour formatting.

Unbreakable option.

Item flags.

Helmet – Infinite Water Breathing

Gives the wearer permanent Water Breathing.

Effect amplifier: 0 (Level I).

Effect must remain active while wearing the helmet.

Effect must be removed when the helmet is taken off.

Prevent duplicate effect applications.

Chestplate – Infinite Strength

Gives the wearer permanent Strength I.

Effect amplifier: 0.

Effect remains active only while wearing the chestplate.

Leggings – Infinite Speed

Gives the wearer permanent Speed I.

Effect amplifier: 0.

Effect remains active only while wearing the leggings.

Boots – Zero Fall Damage

Completely prevents fall damage while the custom boots are equipped.

Must not prevent other types of damage. ---

Armour Special Ability – Fire Retaliation When a player or entity attacks someone wearing any piece of the custom God Armour:

The attacking entity must immediately catch fire.

Fire duration: 10 seconds (configurable).

Must work against both players and other living entities.

Must work regardless of which armour piece the defender is wearing.

Must not trigger when the wearer attacks someone.

Add configurable options to enable or disable this ability. ---

Custom Sword 1 – Fire Blade Material: Netherite Sword.

Configurable properties:

Name.

Lore.

Enchantments.

CustomModelData.

Unbreakable.

Item flags.

Special Ability: Fire Explosion

When a player RIGHT-CLICKS while holding the Fire Blade:

All nearby players within a 10-block radius catch fire.

Fire duration: Configurable, default 10 seconds.

Ability should affect surrounding players except the sword holder.

Add configurable radius.

Add configurable cooldown.

Display a cooldown message when the ability is unavailable.

Add configurable permission-free usage for players who possess the sword.

The ability should work with both right-click air and right-click block events.

---

Custom Sword 2 – Sonic Blade Material: Netherite Sword.

Configurable properties:

Name.

Lore.

Enchantments.

CustomModelData.

Unbreakable.

Item flags.

Special Ability: Sonic Boom

When a player RIGHT-CLICKS while holding the Sonic Blade:

Trigger a Sonic Boom attack similar to the Warden's sonic boom.

Use the appropriate Minecraft 1.21.11 mechanics.

Produce the sonic boom sound and visual effects.

Deal configurable damage to valid targets.

Add configurable attack range.

Add configurable cooldown.

Do not damage the sword holder.

Make sure the ability works reliably without requiring a Warden. ---

RGB / HEX Colour Support The plugin MUST support modern Minecraft RGB colour formatting.

Supported formats:

"&#FF0000" – Red "&#00FF00" – Green "&#0000FF" – Blue "&#FF00FF" – Magenta "&#FFD700" – Gold Also support:

MiniMessage formatting.

HEX gradients.

Bold, italic, underline and other text formatting.

This formatting must work in:

Item names.

Item lore.

Command messages.

Cooldown messages. ---

Configuration System Everything should be configurable through "config.yml".

Example structure:

settings: prefix: "&#FF0000&lGOD ITEMS" fire-duration: 10 fire-radius: 10 fire-cooldown: 15 sonic-cooldown: 10 sonic-damage: 8 sonic-range: 20

armour: helmet: name: "&#00FFFF&lGod Helmet" material: NETHERITE_HELMET custom-model-data: 1001 unbreakable: true enchantments:

RESPIRATION: 3 AQUA_AFFINITY: 1 lore: - "&#00FFFFDivine Protection" - "&#AAAAAAInfinite Water Breathing"

chestplate: name: "&#FF0000&lGod Chestplate" material: NETHERITE_CHESTPLATE custom-model-data: 1002 unbreakable: true enchantments:

PROTECTION: 4 lore: - "&#FF0000Infinite Strength I"

leggings: name: "&#8000FF&lGod Leggings" material: NETHERITE_LEGGINGS custom-model-data: 1003 unbreakable: true lore: - "&#8000FFInfinite Speed I"

boots: name: "&#FFD700&lGod Boots" material: NETHERITE_BOOTS custom-model-data: 1004 unbreakable: true lore: - "&#FFD700Zero Fall Damage"

swords: fireblade: name: "&#FF4500&lFire Blade" material: NETHERITE_SWORD custom-model-data: 2001 unbreakable: true cooldown: 15 radius: 10 fire-duration: 10 enchantments:

SHARPNESS: 5 FIRE_ASPECT: 2 lore: - "&#FF4500The Blade of Flames" - "&#AAAAAARight-click to ignite nearby players"

sonicblade: name: "&#00FFFF&lSonic Blade" material: NETHERITE_SWORD custom-model-data: 2002 unbreakable: true cooldown: 10 damage: 8 range: 20 enchantments:

SHARPNESS: 5 SWEEPING_EDGE: 3 lore: - "&#00FFFFThe Power of Sonic Destruction" - "&#AAAAAARight-click to unleash Sonic Boom"

All example values must be configurable. Do not hardcode item names, enchantments, model data, abilities or cooldowns.

---

Technical Requirements Use clean, optimized Java code.

Use Paper API compatible with Minecraft 1.21.11.

Use PersistentDataContainer (PDC) to identify custom items instead of checking only their names or lore.

Custom items must not lose their abilities when renamed using an anvil.

Effects must be managed efficiently without unnecessary repeating tasks.

Avoid memory leaks and duplicate event registrations.

Handle offline players and player disconnects correctly.

Prevent ability exploits and duplicate event triggering.

Ensure cooldowns are tracked separately for each player and ability.

Make the plugin compatible with other common Paper plugins.

Use modern Adventure API for RGB and MiniMessage formatting.

Deliverables Provide:

Complete Java source code.

Maven "pom.xml". "plugin.yml".

Default "config.yml".

Properly organized project structure.

Compiled ".jar" plugin.

Installation instructions.

Explanation of every configuration option.

Example commands and permissions.

IMPORTANT: Do not provide pseudocode, incomplete classes, or placeholder methods. Deliver a complete, compilable, tested plugin with all the requested abilities working on Paper 1.21.11 with Java 21.Item protection: Custom God Items should retain their identity even after an anvil rename or enchantment modification.---

Item Storage & Modification Restrictions A. Storage Compatibility – MUST BE ALLOWED

God Armour and both custom swords must be fully storable in:

Normal Chests.

Double Chests.

Barrels.

Ender Chests.

Shulker Boxes.

Player Inventory.

Other standard Minecraft storage containers.

Requirements:

Items must retain all abilities, enchantments, lore, names and CustomModelData when stored and retrieved.

Items must remain functional after server restarts.

Moving items between inventories must never remove their custom identity.

Storage must work normally without restrictions.

Do not prevent players from transferring or trading these items through normal inventory mechanics.

B. Item Modification Restrictions – MUST BE BLOCKED

Players must NOT be able to place any God Armour piece or custom sword into the following workstations:

Anvil – Block renaming, combining or repairing.

Grindstone – Block disenchanting and repairing.

Smithing Table – Block upgrading, modifying or combining.

Requirements:

Detect custom items using PersistentDataContainer (PDC), not names or lore.

Cancel the relevant inventory interaction whenever a protected custom item is placed into one of these workstations.

Display a configurable message explaining that God Items cannot be modified.

Prevent bypassing restrictions through shift-clicking, number-key swapping, cursor placement or other inventory interactions.

Apply restrictions to all four armour pieces and both swords.

Normal Minecraft items must continue working normally in these workstations.

C. Important Compatibility Rule

These restrictions must ONLY apply to anvils, grindstones and smithing tables.

Do NOT block:

Chests.

Barrels.

Ender Chests.

Shulker Boxes.

Normal inventory movement.

Item dropping and picking up (unless separately configured).

Add configuration options:

item-protection: storage: allow-chests: true allow-barrels: true allow-ender-chests: true allow-shulker-boxes: true allow-player-inventory: true

restrictions: block-anvil: true block-grindstone: true block-smithing-table: true

messages: modification-blocked: "&#FF0000&lGOD ITEMS &7» &#FF5555You cannot modify God Items!"

All options and messages must be configurable.

Kodari AI
KodariNov 3 at 4:41 pm 2
Billutools
A Paper plugin for Minecraft 1.21.11 adding a God Netherite armour set and two custom swords (Fire Blade, Sonic Blade) with unique abilities. Features include infinite potion effects, fire retaliation, fire explosion, sonic boom attacks, configurable RGB/MiniMessage formatting, PersistentDataContainer-based item identification, admin-only commands, and item protection blocking anvil/grindstone/smithing table modifications while allowing normal storage.

Plan:

  1. Create the Maven project, Paper metadata, and full default configuration.

  2. Add configurable item creation, RGB/MiniMessage text, and admin-only commands.

  3. Implement armor effects, retaliation, sword abilities, cooldowns, and workstation protection.

Created the Billutools Java 21 Paper plugin project with its Maven build file, plugin.yml, default config.yml, and Java source.

Included: admin-only item commands; PDC-based item identity; configurable names, lore, enchantments, model data, flags, and unbreakability; armor effects and fire retaliation; Fire Blade and Sonic Blade abilities with separate per-player cooldowns; RGB &#RRGGBB, legacy formatting, and MiniMessage support; and configurable workstation restrictions. Storage options default to allowing the listed containers and player inventory.

Commands and permissions

  • /billutools armour — gives the complete armor set.

  • /billutools helmet, /chestplate, /leggings, /boots

  • /billutools fireblade, /sonicblade

  • /billutools reload

  • All commands require billutools.admin, defaulting to OP.

Configuration guide

  • settings.prefix: prefix added to plugin messages.

  • armour.<piece>: configure name, material, custom-model-data, unbreakable, enchantments, lore, and item-flags. The corresponding ability toggle is water-breathing, strength, speed, or fall-protection.

  • armour.fire-retaliation.enabled and .duration: toggle retaliation and set the attacker’s fire duration in seconds.

  • swords.fireblade: enabled, cooldown, radius, and fire-duration.

  • swords.sonicblade: enabled, cooldown, damage, and range.

  • item-protection.storage: allow-chests, allow-barrels, allow-ender-chests, allow-shulker-boxes, and allow-player-inventory.

  • item-protection.restrictions: block-anvil, block-grindstone, and block-smithing-table.

  • messages: configurable permission, usage, reload, item-given, cooldown, modification-blocked, and storage-blocked messages.

Build and installation

  1. On desktop, click Compile in the top bar; on phone, tap ⋮ → Compile Project.

  2. Click Compile in the window that opens.

  3. After it succeeds, click Download on the build, then place the JAR in the server’s plugins folder and restart Paper 1.21.11.

Vansh K

TASK: Fix CustomModelData & Resource Pack Integration

I am providing my existing "config.yml" file. Your task is to fix the CustomModelData implementation in my existing Minecraft plugin.

IMPORTANT: Do not create a new configuration or replace my existing config.yml. Preserve my existing configuration exactly.

  1. Preserve My Existing Configuration

Use the uploaded "config.yml" as the source of truth.

Do not:

  • Change item names or their RGB gradients.
  • Change enchantments or enchantment levels.
  • Change item lore.
  • Change materials.
  • Change unbreakable settings.
  • Change abilities or their settings.
  • Change cooldowns, damage, radius or duration.
  • Change permissions or messages.
  • Remove existing configuration sections.
  • Replace my configuration with default example values.

Keep all existing values exactly as they are.

You may add missing settings only when technically necessary, and they must have safe defaults without modifying existing values.

  1. Fix CustomModelData Implementation

My current CustomModelData values are:

Item| Material| CustomModelData Flame Helmet| NETHERITE_HELMET| 1011 Flame Chestplate| NETHERITE_CHESTPLATE| 1012 Flame Leggings| NETHERITE_LEGGINGS| 1013 Flame Boots| NETHERITE_BOOTS| 1014 Flame Sword| NETHERITE_SWORD| 2001 Sonic Blade| NETHERITE_SWORD| 2002

Ensure that:

  1. Every item receives its CustomModelData directly from config.yml.
  2. The values are applied correctly when the plugin creates an item.
  3. The values are retained when items are given through commands.
  4. The values remain after server restarts.
  5. Items retain their model data when stored in chests, barrels, ender chests and player inventories.
  6. Reloading the configuration does not break existing items.
  7. Both swords must have different models despite sharing the same material.
  8. All four armour pieces must display their respective custom models.
  1. Minecraft 1.21.11 Compatibility

The plugin runs on:

  • Minecraft 1.21.11
  • Paper
  • Java 21

Use the correct modern Paper API for CustomModelData.

Important:

  • Do not rely on outdated CustomModelData implementation without checking 1.21.11 compatibility.
  • Properly support the modern CustomModelData component system where applicable.
  • Preserve integer-based configuration values for compatibility with my existing config.
  • Ensure the correct custom model data value is stored in the item's metadata/component.
  • Do not confuse CustomModelData with PersistentDataContainer.

PDC must remain responsible for identifying custom items, while CustomModelData controls their resource pack appearance.

  1. Resource Pack Integration

Make sure the plugin's CustomModelData values correctly correspond to the models defined in my Minecraft resource pack.

Check the following:

  • Correct material mapping.
  • Correct model identifiers.
  • Correct item model JSON files.
  • Correct texture paths.
  • Correct resource pack namespace.
  • Correct model selection predicates or dispatch entries for Minecraft 1.21.11.
  • Correct resource pack format.

If my resource pack uses custom item model definitions, ensure they match the plugin's configured values.

Do not generate random model identifiers or invent texture paths.

If the resource pack is not supplied, clearly identify the missing resource pack files and request them rather than claiming the integration has been verified.

  1. Resource Pack Delivery

If changes to the resource pack are required:

  • Preserve all existing textures.
  • Preserve existing models.
  • Do not replace unrelated models.
  • Only modify the necessary item model definitions.
  • Ensure all six items have their correct individual models.
  • Provide the corrected resource pack structure.
  • Provide all modified JSON files.

If the resource pack requires a server-side download URL, explain how to configure Paper's resource pack delivery so players receive the correct pack.

  1. Item Identity Protection

Do not break the existing PDC identification system.

Custom items must retain their identity even when:

  • Renamed using an anvil.
  • Enchanted using an enchanting table.
  • Stored and retrieved from containers.
  • Moved between inventories.
  • The server restarts.

Do not identify custom items using only their display names, lore or CustomModelData.

  1. Testing Requirements

Before delivering the plugin, verify:

  • All six items receive their correct model data.
  • Each item has the correct material.
  • Both swords display different models.
  • All four armour pieces display their respective models.
  • Models render correctly with the matching resource pack.
  • Items retain their models after restarting the server.
  • Items retain their models after configuration reload.
  • Renaming items does not remove their abilities or identity.
  • No errors occur on Paper 1.21.11 with Java 21.
  1. Final Deliverables

Provide:

  1. Complete corrected Java source code.
  2. Updated Maven pom.xml if required.
  3. Updated plugin.yml if required.
  4. My original config.yml preserved with all existing values.
  5. Corrected resource pack JSON files if required.
  6. Complete compiled BillusmpArmour.jar.
  7. A list of exactly what you changed.
  8. Instructions for installing the corrected plugin and resource pack.

FINAL IMPORTANT INSTRUCTION

Do not redesign my plugin.

Do not remove existing functionality.

Do not change my item names, gradients, enchantments, abilities or configuration values.

Your ONLY primary task is to fix CustomModelData application and ensure all six custom items correctly connect to and display their corresponding models from my resource pack on Minecraft 1.21.11.

Deliver a working, tested solution, not pseudocode or incomplete code.

📎 1 file 3,687 chars
📄
config (6).yml
yml 130 lines
▶
settings:
  prefix: "&#FF0000&lBILLU TOOLS &7» "

armour:
  helmet:
    name: "&#fb0f0f&lF&#fb240d&lL&#fc380b&lA&#fc4d08&lM&#fd6106&lE &#fd7604&lH&#fd6e13&lE&#fe6722&lL&#fe5f32&lM&#ff5841&lE&#ff5050&lT"
    material: NETHERITE_HELMET
    custom-model-data: 1011
    unbreakable: true
    water-breathing: true
    enchantments:
      PROTECTION: 5
      RESPIRATION: 3
      AQUA_AFFINITY: 1
      MENDING: 1
      UNBREAKING: 4
      
    lore:
      - ""
      - "&b&lInfinite Water Breathing"
    item-flags:
      - HIDE_ATTRIBUTES
  chestplate:
    name: "&#fb0f0f&lF&#fb1e0d&lL&#fc2c0c&lA&#fc3b0a&lM&#fc4a09&lE &#fc5907&lC&#fd6706&lH&#fd7604&lE&#fd710f&lS&#fe6b1a&lT&#fe6625&lP&#fe602f&lL&#fe5b3a&lA&#ff5545&lT&#ff5050&lE"
    material: NETHERITE_CHESTPLATE
    custom-model-data: 1012
    unbreakable: true
    strength: true
    enchantments:
      PROTECTION: 5
      MENDING: 1
      UNBREAKING: 4
    lore:
      - ""
      - "&#FF0000&lInfinite Strength I"
    item-flags:
      - HIDE_ATTRIBUTES
  leggings:
    name: "&#fb0f0f&lF&#fb200d&lL&#fc310b&lA&#fc430a&lM&#fc5408&lE &#fd6506&lL&#fd7604&lE&#fd7011&lG&#fe691d&lG&#fe632a&lI&#fe5d37&lN&#ff5643&lG&#ff5050&lS"
    material: NETHERITE_LEGGINGS
    custom-model-data: 1013
    unbreakable: true
    speed: true
    enchantments:
      PROTECTION: 5
      MENDING: 1
      UNBREAKING: 4
      SWIFT_SNEAK: 3
    lore:
      - ""
      - "ὀFF&lInfinite Speed I"
    item-flags:
      - HIDE_ATTRIBUTES
  boots:
    name: "&#fb0f0f&lF&#fb260d&lL&#fc3d0a&lA&#fc5408&lM&#fd6b05&lE &#fd720c&lB&#fe691d&lO&#fe612e&lO&#ff583f&lT&#ff5050&lS"
    material: NETHERITE_BOOTS
    custom-model-data: 1014
    unbreakable: true
    fall-protection: true
    enchantments:
      PROTECTION: 5
      FEATHER_FALLING: 4
      MENDING: 1
      UNBREAKING: 4
      DEPTH_STRIDER: 3
    lore:
      - ""
      - "&#FFD700&lZero Fall Damage"
    item-flags:
      - HIDE_ATTRIBUTES
  fire-retaliation:
    enabled: true
    duration: 10

swords:
  fireblade:
    name: "&#fb0f0f&lF&#fb260d&lL&#fc3d0a&lA&#fc5408&lM&#fd6b05&lE &#fd720c&lS&#fe691d&lW&#fe612e&lO&#ff583f&lR&#ff5050&lD"
    material: NETHERITE_SWORD
    custom-model-data: 2001
    unbreakable: true
    enabled: true
    cooldown: 15
    radius: 10
    fire-duration: 20
    enchantments:
      FIRE_ASPECT: 2
    lore:
      - ""
      - "&#AAAAAARight-click to ignite nearby players"
    item-flags:
      - HIDE_ATTRIBUTES
  sonicblade:
    name: "�FFFF&lSonic Blade"
    material: NETHERITE_SWORD
    custom-model-data: 2002
    unbreakable: true
    enabled: true
    cooldown: 15
    damage: 10.0
    range: 20.0
    enchantments:
      SHARPNESS: 5
      SWEEPING_EDGE: 3
    lore:
      - "�FFFFThe Power of Sonic Destruction"
      - "&#AAAAAARight-click to unleash Sonic Boom"
    item-flags:
      - HIDE_ATTRIBUTES

item-protection:
  storage:
    allow-chests: true
    allow-barrels: true
    allow-ender-chests: true
    allow-shulker-boxes: true
    allow-player-inventory: true
  restrictions:
    block-anvil: true
    block-grindstone: true
    block-smithing-table: true

messages:
  no-permission: "&#FF5555You do not have permission to use this command."
  player-only: "&#FF5555This command can only be used by a player."
  usage: "&#AAAAAAUse /billutools ."
  reloaded: "7FF55Configuration reloaded."
  items-given: "7FF55God Items given."
  cooldown: "&#FF5555Ability ready in &#FFFFFF{seconds}&#FF5555s."
  modification-blocked: "&#FF0000&lGOD ITEMS &7» &#FF5555You cannot modify God Items!"
  storage-blocked: "&#FF5555God Items cannot be moved into this inventory."
Kodari AI
KodariNov 4 at 1:04 pm 1
  • Switch item creation from deprecated integer metadata to Paper 1.21.11’s CustomModelData component, preserving each configured integer as its first float value.

  • Sync the project’s existing config with your attached file without altering its item settings.

  • Check resource-pack availability; no pack assets are present to verify or update model mappings.

Updated the CustomModelData implementation to use Paper 1.21.11’s modern component API. The configured integer is stored as the component’s first float value; PDC remains separate and continues to identify the items.

Changes made

  • CustomItemFactory now applies custom-model-data through CustomModelDataComponent, preserving the configured values: armor 1011–1014, Fire Blade 2001, Sonic Blade 2002.

  • Updated the project’s packaged config.yml to match your uploaded configuration values. The existing item settings were preserved; no example values were substituted.

  • No changes were needed to pom.xml or plugin.yml.

Resource pack is still needed to verify model rendering. No resource pack files were present in the project, so I could not verify the model identifiers, textures, JSON dispatch entries, or pack format, and did not invent or modify any. Please provide the pack (or its relevant files), especially pack.mcmeta, the item model JSON definitions, referenced model JSON files, and textures. The pack’s model dispatch must match the six configured values above.

The item’s model data and PDC identity are saved in its metadata, so normal storage and server restarts retain them. Reloading config affects newly created items; existing items keep their stored model data.

To get the plugin JAR, use Compile in the top bar (phone: ⋮ → Compile Project), then click Compile and Download. I can’t claim the resource-pack rendering was tested without the pack. Once you provide it, its corrected files and Paper resource-pack delivery settings can be checked as well.

Vansh K

TASK: Fix Armour CustomModelData & Resource Pack Integration – BillusmpArmour

I want you to fix the CustomModelData system in my existing BillusmpArmour plugin for Minecraft 1.21.11 (Paper, Java 21).

  1. Set These Exact CustomModelData Values

Update the four armour pieces to use these exact values:

Item| Material| CustomModelData Helmet| NETHERITE_HELMET| 30001 Chestplate| NETHERITE_CHESTPLATE| 30002 Leggings| NETHERITE_LEGGINGS| 30003 Boots| NETHERITE_BOOTS| 30004 Flame Sword| NETHERITE_SWORD| 2001 Sonic Blade| NETHERITE_SWORD| 2002

Important: These values must be applied directly from config.yml when the plugin creates each item.

  1. Fix Armour Resource Pack Models

Ensure that my resource pack correctly recognizes all four new armour CustomModelData values.

Requirements:

  • Helmet must display its custom model using "30001".
  • Chestplate must display its custom model using "30002".
  • Leggings must display its custom model using "30003".
  • Boots must display its custom model using "30004".

Fix the corresponding resource pack model definitions so that each armour piece displays the correct texture and model in Minecraft.

Do not simply change the numbers in config.yml. Make sure the actual resource pack model definitions match those numbers.

  1. Fix Both Sword Models

My two sword models are already using these values:

  • Flame Sword: "2001"
  • Sonic Blade: "2002"

Keep these values unchanged.

Ensure:

  • Flame Sword displays its correct custom resource pack model.
  • Sonic Blade displays its correct custom resource pack model.
  • Both swords have different models.
  • Both models work simultaneously despite using NETHERITE_SWORD.
  • Neither sword loses its model after restarting the server or reloading the plugin.

Do not break the existing sword model implementation while fixing the armour.

  1. Minecraft 1.21.11 Compatibility

The server uses Paper 1.21.11 and Java 21.

Check the correct CustomModelData implementation for this version.

Important:

  • Use the appropriate modern Minecraft item model system.
  • If using legacy integer CustomModelData, verify compatibility.
  • If using the modern CustomModelData component system, correctly implement the required component values and resource pack model definitions.
  • Do not mix incompatible legacy predicates and modern item model definitions.
  • Ensure all six items render correctly.
  1. Configuration Requirements

Update only the necessary CustomModelData values in my existing config.yml.

Preserve:

  • All item names.
  • RGB and HEX gradients.
  • Lore.
  • Enchantments.
  • Materials.
  • Unbreakable settings.
  • Special abilities.
  • Cooldowns.
  • Damage and radius settings.
  • Permissions.
  • Messages.
  • All unrelated configuration sections.

Do not replace my config.yml with a new default configuration.

  1. Resource Pack Requirements

Inspect my actual resource pack before modifying anything.

Verify:

  • Item model JSON files.
  • Texture locations.
  • Model identifiers.
  • Namespace.
  • Item definition files.
  • CustomModelData mapping.
  • Correct model selection for all six items.

Preserve all existing textures and unrelated models.

If the resource pack is missing, request its ZIP file instead of inventing model paths or claiming everything works.

  1. Testing

Test the following:

  1. Give all four armour pieces using "/billutools".
  2. Verify their CustomModelData values.
  3. Verify each armour piece displays its correct model.
  4. Give both swords.
  5. Verify both sword models display correctly.
  6. Restart the server and check all six items again.
  7. Reload the plugin configuration and check all six items again.
  8. Rename and enchant the items and verify their PDC identity and abilities remain intact.
  1. Final Deliverables

Provide:

  1. Updated complete Java source code.
  2. Updated config.yml with the exact six values.
  3. Updated resource pack model JSON files.
  4. Updated Maven files if required.
  5. Compiled BillusmpArmour.jar.
  6. Corrected resource pack ZIP.
  7. Installation instructions.

FINAL INSTRUCTION

My required model IDs are:

ARMOUR: "30001", "30002", "30003", "30004"

SWORDS: "2001", "2002"

Do not change the sword model IDs.

Do not redesign the plugin.

Do not remove existing functionality.

Do not modify unrelated configuration.

I need the actual plugin and resource pack to work together, not just matching numbers in config.yml.

The final result must display all six custom models correctly on Paper 1.21.11 with Java 21.

Kodari AI
KodariNov 4 at 4:01 pm 1
  1. Update only the four armour model IDs in the existing config; keep both sword IDs unchanged.

  2. Confirm item creation still reads those values through Paper 1.21.11’s component API.

  3. No resource-pack assets are present, so I can’t safely edit or verify its model definitions without the ZIP.

Updated only the four armour custom-model-data values in src/main/resources/config.yml:

  • Helmet: 30001

  • Chestplate: 30002

  • Leggings: 30003

  • Boots: 30004

Both sword values remain 2001 and 2002. The existing CustomItemFactory already reads the integer from config and stores it in Paper’s modern CustomModelData component; PDC remains the separate item-identity mechanism. No Java, Maven, or plugin descriptor changes were needed.

Resource pack still required: there are no resource-pack assets in the project, so I could not inspect or update its models, textures, item definitions, or mappings. Please upload the resource pack ZIP. Until then, I can’t verify that all six models render or provide a corrected pack ZIP, and I haven’t tested them in-game.

To download the updated plugin JAR, click Compile in the top bar (on phone: ⋮ → Compile Project), then click Compile and Download. Install the JAR in the server’s plugins folder and restart the server. Resource-pack installation and delivery setup must wait until the pack is available.

Vansh K

Recheck and thoroughly audit the entire plugin to ensure it properly supports Minecraft Custom Model Data (CMD).

Requirements:

  1. Custom Model Data Support

- Verify that every custom item correctly applies its configured Custom Model Data. - Ensure helmets, chestplates, leggings, boots, and swords all support custom models. - Verify that the plugin uses the correct Minecraft API for the server version (1.21.11). - Ensure no deprecated or incompatible methods are being used.

  1. Config Integration

- Read Custom Model Data directly from the configuration file. - Do not hardcode model data values in Java. - Allow administrators to change model data without rebuilding the plugin. - Preserve my existing config structure, item settings, enchantments, names, lore, and permissions.

  1. Resource Pack Compatibility

- Ensure every configured Custom Model Data value correctly matches its corresponding resource-pack item model. - Verify that the generated items actually display their custom textures in-game. - Check that the correct item material is being used for each model. - Ensure the plugin does not overwrite or ignore Custom Model Data when creating items.

  1. Item Creation and Storage

- CMD must remain intact when items are: - Given through commands. - Moved between inventories. - Stored in chests, barrels, and ender chests. - Dropped and picked up. - Stored and retrieved after server restarts.

  1. Compatibility Checks

- Check for conflicts with other plugins. - Check whether the item creation system resets or removes custom model data. - Verify that all item metadata is correctly saved. - Check compatibility with Minecraft Java 1.21.11 and Paper.

Testing Requirements:

  • Create test items for every supported equipment slot.
  • Inspect their actual ItemMeta and Custom Model Data values.
  • Verify that the resource pack displays the correct models.
  • Test item storage, retrieval, and server restart persistence.

Important:

Do not simply tell me that CMD is supported. Actually inspect the source code, identify potential bugs, and fix them.

Do not remove existing features or change unrelated plugin functionality.

Final deliverables:

  1. Fully corrected source code.
  2. Updated configuration only if necessary.
  3. List of bugs found and fixes applied.
  4. Confirmation of the exact CMD values applied to each item.
  5. A compiled, working plugin JAR.

The goal is to ensure 100% reliable Custom Model Data support and proper resource-pack integration.

Kodari AI
KodariNov 4 at 4:09 pm 1
  1. Audit CMD configuration, item creation, and metadata handling across the plugin.

  2. Inspect the actual resource-pack assets and verify model mappings.

  3. Fix proven issues and report what can and cannot be tested here.## Audit results

  • CustomItemFactory.createItem reads each item’s custom-model-data directly from config and applies it through Paper’s CustomModelDataComponent API. It uses the configured integer as a one-element float value; the legacy integer setter is not used.

  • The factory writes the item’s god_item_id PDC identity before saving the metadata. The give/drop path passes the created item through without rebuilding it, and the listener does not rewrite item metadata. I found no source-proven path that removes CMD or item identity.

  • The existing configuration has the requested values:

    • Helmet 30001, chestplate 30002, leggings 30003, boots 30004

    • Flame Sword 2001, Sonic Blade 2002

  • No Java or config change was warranted by this audit. The four armour values were already updated in the prior change; the sword values remain unchanged.

Resource pack and runtime verification

There are no resource-pack model, texture, or item-definition files in the project. I can’t verify the model mappings or produce a corrected ZIP without the actual resource pack—please upload its ZIP.

This was a source audit, not an in-game test. I could not run /billutools, inspect live ItemMeta, test storage/drop/restart behavior, verify model rendering, or check conflicts with other installed plugins. The source shows no plugin path that resets item metadata, but those runtime checks remain unverified.

No new JAR was generated in this audit. To get the plugin JAR, click Compile in the top bar (on phone: ⋮ → Compile Project), then click Compile and Download when the build succeeds.

Kodari can make mistakes. Review important code before using.
Files
src
ARMOUR_EQUIPPABLE_FIX_README.txt
pom.xml
Code
8 878
src/main/java/com/billutools/BilluToolsPlugin.java
package com.billutools;

import com.billutools.item.CustomItemFactory;
import com.billutools.listener.BilluToolsListener;
import com.billutools.util.TextUtil;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import org.bukkit.Bukkit;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.command.TabExecutor;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.bukkit.plugin.java.JavaPlugin;

public final class BilluToolsPlugin extends JavaPlugin implements TabExecutor {
    private CustomItemFactory itemFactory;
    private BilluToolsListener listener;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        this.itemFactory = new CustomItemFactory(this);
        this.listener = new BilluToolsListener(this, itemFactory);
        Bukkit.getPluginManager().registerEvents(listener, this);
        getCommand("billutools").setExecutor(this);
        getCommand("billutools").setTabCompleter(this);
    }

    public CustomItemFactory getItemFactory() {
        return itemFactory;
    }

    public String configuredMessage(String path) {
        return getConfig().getString("messages." + path, "");
    }

    public void sendMessage(CommandSender sender, String message) {
        String prefix = getConfig().getString("settings.prefix", "");
        sender.sendMessage(TextUtil.component(prefix + message));
    }

    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        if (!sender.hasPermission("billutools.admin")) {
            sendMessage(sender, configuredMessage("no-permission"));
            return true;
        }
        if (args.length != 1) {
            sendMessage(sender, configuredMessage("usage"));
            return true;
        }

        String subcommand = args[0].toLowerCase(Locale.ROOT);
        if (subcommand.equals("reload")) {
            reloadConfig();
            listener.refreshOnlinePlayers();
            sendMessage(sender, configuredMessage("reloaded"));
            return true;
        }

        if (subcommand.equals("armour")) {
            giveItems(sender, List.of("helmet", "chestplate", "leggings", "boots"));
            return true;
        }
        if (List.of("helmet", "chestplate", "leggings", "boots", "fireblade", "sonicblade").contains(subcommand)) {
            giveItems(sender, List.of(subcommand));
            return true;
        }

        sendMessage(sender, configuredMessage("usage"));
        return true;
    }

    private void giveItems(CommandSender sender, List<String> ids) {
        if (!(sender instanceof Player player)) {
            sendMessage(sender, configuredMessage("player-only"));
            return;
        }
        for (String id : ids) {
            ItemStack item = itemFactory.createItem(id);
            Map<Integer, ItemStack> overflow = player.getInventory().addItem(item);
            overflow.values().forEach(leftover -> player.getWorld().dropItemNaturally(player.getLocation(), leftover));
        }
        sendMessage(player, configuredMessage("items-given"));
    }

    @Override
    public List<String> onTabComplete(CommandSender sender, Command command, String alias, String[] args) {
        if (!sender.hasPermission("billutools.admin") || args.length != 1) {
            return List.of();
        }
        List<String> options = List.of("armour", "helmet", "chestplate", "leggings", "boots", "fireblade", "sonicblade", "reload");
        String partial = args[0].toLowerCase(Locale.ROOT);
        List<String> matches = new ArrayList<>();
        for (String option : options) {
            if (option.startsWith(partial)) {
                matches.add(option);
            }
        }
        return matches;
    }
}