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.
[Generation stopped]
No files in this session