evilplays17

Create a complete Minecraft Paper plugin compatible with Minecraft Java Edition 1.21.11, named Dragonbringer.

Features

1. Dragonbringer Upper

* A custom item named Dragonbringer Upper. * Give it a unique identifier so renamed vanilla items cannot trigger the crafting system.

2. Dragonbringer Lower

* A custom item named Dragonbringer Lower. * Give it a unique identifier.

3. Crafting System

* When a player drops both Dragonbringer Upper and Dragonbringer Lower items onto a crafting table, consume both parts and create one custom sword named Dragonbringer. * Spawn the completed sword above the crafting table with particles and sound effects. * If only one part is present, display the exact action-bar message: Dragonbringer incomplete. * Do not consume either part when crafting fails. * Prevent duplicate crafting or item duplication exploits.

4. Dragonbringer Sword

* Use a suitable vanilla sword material as the base. * Give it a custom name, glowing enchantment effect, and unique PersistentDataContainer identifier. * While the player holds the sword in either hand, grant Strength level 10 (amplifier 9). * Remove the plugin-granted Strength effect when the sword is no longer held, without removing unrelated Strength effects. * Ensure the ability works correctly after switching items, death, respawn, and reconnecting.

5. Commands

* /dragonbringer give <player> — give the completed sword. * /dragonbringer upper <player> — give the upper part. * /dragonbringer lower <player> — give the lower part. * /dragonbringer reload — reload configuration. * Add permission checks and tab completion.

6. Technical Requirements

* Plugin name: Dragonbringer * Target server: Paper 1.21.11. * Use the correct Java version and Paper API dependency for this version. * Use Maven and provide the complete source code, pom.xml, plugin.yml, and configurable messages. * Follow Paper API best practices and avoid deprecated APIs where possible. * Handle crafting-table detection, item drops, chunk unloading, and server shutdown safely. * Do not use NMS or require additional plugins. * Include clear build and installation instructions. * Ensure the project compiles successfully and produces Dragonbringer.jar in the Maven target directory.

Kodari AI
KodariOct 12 at 1:46 pm 1
Dragonbringer
Dragonbringer is a Paper plugin for Minecraft 1.21.11 that introduces a two-part crafting system to forge a legendary sword. Players drop Dragonbringer Upper and Lower items onto a crafting table to combine them into the powerful Dragonbringer sword, which grants Strength level 10 while held. The plugin features custom item identification via PersistentDataContainer, a GUI-free drop-based crafting mechanic with particle effects and sounds, configurable messages, and commands to give items or reload config. It safely handles edge cases like incomplete crafting, duplication prevention, and effect removal on item switch or disconnect.

[Generation stopped]

Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code