Space Nerd

--- ๐Ÿ“Ž Attached 1 file(s):

File: pasted-code-1788081647169.txt

txt
# Minecraft Custom Enchantment Plugin โ€” Complete Rewrite Specification

I need you to **completely rewrite/rebuild this plugin from scratch** rather than making small patches to the existing version.

The plugin must be built specifically for **Paper 1.21.11** and must actually run correctly on a Paper 1.21.11 server. Do not target an older Minecraft/Paper version and assume compatibility.

The finished plugin must be provided as a **downloadable `.jar` file** that can be placed directly into the server's `plugins` folder and loaded by Paper 1.21.11.

The final deliverable must include the compiled, working `.jar`, not just the source code. Make sure the `.jar` has the correct `plugin.yml`/plugin metadata, dependencies, commands and permissions so Paper can load it normally.

The previous version was poor and did not properly implement the systems, so I want you to build this version carefully and make sure everything actually works in-game.

## 1. Custom Enchantment Books

There should be **70 different custom enchantment books**, plus **5 special UNIQUE items and 5 special EVENT books**. The 70 standard books are separate from the 5 Event books.

Every book must have:

* A unique name
* A unique effect
* A rarity
* A proper Minecraft item appearance
* Custom lore explaining exactly what it does
* A level system where applicable
* Cool visual effects when the enchantment is active
* Cool visual effects when the enchantment activates/triggers
* Appropriate sounds where they make sense
* Particles that fit the enchantment

The visuals should actually look good in-game. Do not just give every enchantment the same particles.

There must also be **5 UNIQUE special items** and **5 EVENT books** with their own completely distinct abilities, designs, sounds, particles and visual effects.

The rarities are:

* COMMON
* UNCOMMON
* RARE
* EPIC
* LEGENDARY
* MYTHIC
* UNIQUE

**UNIQUE items are NOT enchantment books.** They are special custom items.

## 2. Applying Books

Custom enchantment books can ONLY be applied using an **anvil**.

Do NOT allow players to apply them through:

* Crafting
* Smithing tables
* Enchanting tables
* Commands for normal players
* Any other method

The anvil should properly combine the custom book with compatible items.

Books should have compatibility restrictions where appropriate. For example, a sword enchantment should not be applicable to a helmet.

Make sure custom enchantments do not break or interfere with normal Minecraft enchantments.

## 3. PvP Book Drops

When a player kills another player, the killer should have a chance to receive a custom enchantment book.

The drop system must support configurable rarity chances.

Everything related to drop chances should be configurable in `config.yml`.

The system must prevent players from easily abusing the system by farming kills.

Include configurable protections for things such as:

* Repeated kills between the same players
* Killing the same player repeatedly
* Killing players specifically to farm books
* Other obvious farming methods

## 4. Crafting Random Books

There must be an ACTUAL **Minecraft Crafting Table recipe** for obtaining random books.

Do NOT make this a command-only system.

Players should be able to place the required ingredients into a normal crafting table and receive a **random custom enchantment book from the rarity associated with that recipe**.

There should be crafting recipes for the different rarities.

For example:

* Common recipe โ†’ random Common book
* Uncommon recipe โ†’ random Uncommon book
* Rare recipe โ†’ random Rare book
* Epic recipe โ†’ random Epic book
* Legendary recipe โ†’ random Legendary book
* Mythic recipe โ†’ random Mythic book

The exact ingredients and recipe layouts should be configurable.

The resulting book must genuinely be randomly selected from the appropriate rarity pool.

Make sure the crafting recipes work with the normal Minecraft crafting-table UI and behave like normal Minecraft recipes.

Do NOT require players to type a command to craft these.

## 5. Runes

Runes must ALSO be **actually craftable through normal Minecraft Crafting Tables**.

Do NOT make runes command-only.

There should be different rune tiers corresponding to the book rarity/upgrade system.

For example:

* Common Rune
* Uncommon Rune
* Rare Rune
* Epic Rune
* Legendary Rune
* Mythic Rune

The exact recipes must be configurable.

Rune recipes should use normal Minecraft crafting-table recipes.

### Rune Cutscenes

When a rune is used to attempt a book upgrade, there must be a **proper in-game cutscene** rather than the upgrade happening instantly with no presentation.

The cutscene should feel special and exciting, using appropriate combinations of:

* Particles
* Sounds
* Item/animation effects where possible
* Action-bar messages
* Titles/subtitles where appropriate
* A short sequence showing the rune being consumed and the upgrade attempt

The cutscene must clearly communicate whether the upgrade **succeeded or failed**. Keep it short enough that it does not become annoying when upgrading multiple books, and make the visuals configurable where practical.

Runes should be custom items with:

* Custom names
* Custom lore
* Custom model/item appearance where possible
* Rarity-specific visuals
* Proper persistent data identifying them as the correct rune

## 6. Book Upgrading

Books start at **Level 1**.

Books can be upgraded using the appropriate rune.

For example:

* Mythic book + Mythic Rune โ†’ attempt to upgrade the Mythic book
* The upgrade should have a configurable success/failure chance
* Higher levels should become progressively harder to obtain

The upgrade system must be configurable.

Books that have already been applied to an item **cannot be upgraded**.

Make sure the plugin properly detects whether a book is still an unused book or has already been applied.

The upgraded level must be stored using persistent data and survive:

* Server restarts
* Player relogs
* Item movement
* Chests
* Ender chests
* Shulker boxes
* Other normal item storage

## 7. Crafting System Must Be Real

This is important:

I specifically want the crafting systems to use **real Minecraft Crafting Table recipes**.

Do NOT replace the crafting table with a custom GUI unless absolutely necessary.

When a player opens a normal crafting table, they should be able to see/use the recipes normally.

Recipes should support normal Minecraft recipe discovery/unlocking where possible.

The plugin should register its recipes properly with Bukkit/Paper.

## 8. Unique Items

The UNIQUE rarity should consist of **special custom items instead of books**.

These should have their own unique abilities and visuals.

They should NOT be treated as normal enchantment books.

The Unique items should also have configurable obtain methods.

## 9. Event Books

There should be an event system for **5 extremely rare and special EVENT books**.

An admin should be able to enable/disable events.

When an event is enabled:

* A global server announcement occurs **15 minutes before the event**
* The announcement tells everyone that an event is coming
* After 15 minutes, the event begins
* The event location must be randomly generated inside a **3000-block radius/world border**
* Players should have to participate in an **INCREDIBLY HARD, endgame-level event** to obtain the event reward. This should be one of the hardest challenges on the server and should require serious preparation, skill and/or teamwork. It must NOT feel like a normal boss fight or a simple mob wave.
* The event should have multiple phases where appropriate
* The event should have custom visuals, sounds and particles
* The final reward should be one of the **5 event-specific custom enchantment books**

Each of the 5 Event books should have a unique event designed around obtaining it. Events should be highly memorable, with multiple difficult phases, escalating challenges, special mechanics and strong visual presentation. The event should be genuinely difficult enough that obtaining an Event book feels like a major server achievement.

The event should feel like an actual Minecraft event rather than simply spawning an item.

## 10. Commands

The plugin needs proper commands for administrators/testing.

For example:

`/customenchants`

with useful subcommands such as:

`/customenchants give <player> <item/book> [amount]`

`/customenchants givebook <player> <book> [level]`

`/customenchants giverune <player> <rune> [amount]`

`/customenchants giveunique <player> <item> [amount]`

`/customenchants reload`

`/customenchants event <event> <enable/disable>`

Use whatever command structure makes the most sense, but it must be clean and consistent.

### IMPORTANT: Command Tab Completion

The commands MUST have proper Minecraft-style tab completion.

I do NOT want commands where I have to type the entire thing manually.

For example, if I type:

`/customenchants g`

the game should suggest/complete:

`give`
`givebook`
`giverune`
`giveunique`

Then if I type:

`/customenchants give `

it should suggest online player names.

Then:

`/customenchants give Player `

it should suggest the available custom items/books/runes.

For example, typing:

`/customenchants give Player m`

could show matching items/books that start with `m`.

The tab completion should behave like normal Minecraft commands.

It should work properly in the Minecraft chat command interface and should not require players to memorize every name.

## 11. Admin Permissions

Commands that give items, reload the plugin, manage events, etc. must require an appropriate permission.

For example:

`customenchants.admin`

Normal players should not be able to use admin commands.

## 12. Configuration

I want the plugin to be HIGHLY configurable through `config.yml`.

I should be able to configure things such as:

* Book drop chances
* Rarity chances
* Crafting recipes
* Rune recipes
* Upgrade chances
* Maximum book levels
* Enchantment effects
* Enchantment values
* Cooldowns
* Event settings
* Event timings
* Event locations/radius
* Messages
* Sounds
* Particle effects where practical
* PvP farming protection
* Compatibility restrictions
* Other important gameplay settings

Do not hard-code things that should reasonably be configurable.

## 13. Persistent Data

Use Minecraft/Paper's proper persistent item data system, such as `PersistentDataContainer`, to identify:

* Custom books
* Book IDs
* Book levels
* Runes
* Rune tiers
* Unique items
* Custom enchantments
* Applied enchantment data

Do NOT rely only on the item's display name or lore to identify items.

Everything must survive server restarts.

## 14. Visual Effects

Every custom book/enchantment should have **cool and unique visual feedback**.

Examples include:

* Particles
* Sounds
* Action-bar messages
* Screen/title effects where appropriate
* Weapon/projectile effects
* Activation effects
* Kill effects
* Passive effects

The effects should be appropriate to what the enchantment actually does.

Do not simply give every enchantment the same particle effect.

Keep effects performant so that 70 enchantments do not destroy server TPS.

## 15. Performance

The plugin must be designed for a real multiplayer server.

Avoid:

* Excessive repeating tasks
* Constantly scanning every player
* Unnecessary entity spawning
* Memory leaks
* Massive particle spam
* Expensive operations every tick

Use efficient event listeners and scheduled tasks only where necessary.

## 16. Normal Minecraft Behaviour

Wherever possible, use normal Minecraft mechanics instead of creating unnecessary custom systems.

Examples:

* Normal Crafting Tables
* Normal Anvils
* Normal inventory behaviour
* Normal item stacking where appropriate
* Normal command suggestions/tab completion
* Normal recipe discovery

The plugin should feel like a polished Minecraft system rather than a collection of commands.

## 17. Netherite Armour Rule

Netherite armour should be disabled/banned on the server.

Netherite tools should still be allowed.

Make sure this does not accidentally prevent players from using Netherite tools.

## 18. Mythic Restriction

Only **one Mythic enchantment** may be applied to a single item.

If an item already has a Mythic enchantment, attempting to add another Mythic enchantment through an anvil must fail with an appropriate message.

## 19. Code Quality

Write the plugin as production-quality code.

Use:

* Proper class organisation
* Separate managers where appropriate
* Clean event listeners
* PersistentDataContainer
* Proper recipe registration
* Proper command executors
* Proper tab completers
* Configurable messages
* Error handling
* Null checks
* Efficient event handling

Do not put the entire plugin into one enormous Java class.

## 20. Most Important Requirement

Before considering the plugin finished, TEST EVERY MAJOR SYSTEM.

Specifically test:

1. PvP book drops
2. Book rarities
3. All 70 books
4. Book visuals
5. Anvil application
6. Crafting-table random book recipes
7. Rune crafting-table recipes
8. Rune upgrading
9. Upgrade failure/success
10. Book levels
11. Unique items
12. Event activation
13. 15-minute event announcement
14. Event rewards
15. Admin give commands
16. Command permissions
17. Tab completion
18. Config reload
19. Server restart persistence
20. Mythic-per-item restriction
21. Netherite armour restriction
22. PvP farming protection

If something does not work, fix it before calling the plugin complete.

I want a **fully functional Paper 1.21.11 plugin delivered as a downloadable `.jar`**, not a basic prototype, source-code-only project, or collection of placeholder systems.

After building it, verify that the final `.jar` can be placed into a Paper 1.21.11 server's `plugins` folder and starts without errors. Do not give me an uncompiled project when I specifically asked for the finished `.jar`.

The crafting systems are especially important: **books and runes must have actual recipes that work in normal Minecraft Crafting Tables.**

The `/customenchants` commands must also have **proper Minecraft-style tab completion**, where typing partial command names, player names, book names, rune names, etc. gives suggestions automatically.
๐Ÿ“Ž 1 file 14,697 chars
๐Ÿ“„
pasted-code-1788081676199.txt
txt 465 lines
โ–ถ
# Minecraft Custom Enchantment Plugin โ€” Complete Rewrite Specification

I need you to **completely rewrite/rebuild this plugin from scratch** rather than making small patches to the existing version.

The plugin must be built specifically for **Paper 1.21.11** and must actually run correctly on a Paper 1.21.11 server. Do not target an older Minecraft/Paper version and assume compatibility.

The finished plugin must be provided as a **downloadable `.jar` file** that can be placed directly into the server's `plugins` folder and loaded by Paper 1.21.11.

The final deliverable must include the compiled, working `.jar`, not just the source code. Make sure the `.jar` has the correct `plugin.yml`/plugin metadata, dependencies, commands and permissions so Paper can load it normally.

The previous version was poor and did not properly implement the systems, so I want you to build this version carefully and make sure everything actually works in-game.

## 1. Custom Enchantment Books

There should be **70 different custom enchantment books**, plus **5 special UNIQUE items and 5 special EVENT books**. The 70 standard books are separate from the 5 Event books.

Every book must have:

* A unique name
* A unique effect
* A rarity
* A proper Minecraft item appearance
* Custom lore explaining exactly what it does
* A level system where applicable
* Cool visual effects when the enchantment is active
* Cool visual effects when the enchantment activates/triggers
* Appropriate sounds where they make sense
* Particles that fit the enchantment

The visuals should actually look good in-game. Do not just give every enchantment the same particles.

There must also be **5 UNIQUE special items** and **5 EVENT books** with their own completely distinct abilities, designs, sounds, particles and visual effects.

The rarities are:

* COMMON
* UNCOMMON
* RARE
* EPIC
* LEGENDARY
* MYTHIC
* UNIQUE

**UNIQUE items are NOT enchantment books.** They are special custom items.

## 2. Applying Books

Custom enchantment books can ONLY be applied using an **anvil**.

Do NOT allow players to apply them through:

* Crafting
* Smithing tables
* Enchanting tables
* Commands for normal players
* Any other method

The anvil should properly combine the custom book with compatible items.

Books should have compatibility restrictions where appropriate. For example, a sword enchantment should not be applicable to a helmet.

Make sure custom enchantments do not break or interfere with normal Minecraft enchantments.

## 3. PvP Book Drops

When a player kills another player, the killer should have a chance to receive a custom enchantment book.

The drop system must support configurable rarity chances.

Everything related to drop chances should be configurable in `config.yml`.

The system must prevent players from easily abusing the system by farming kills.

Include configurable protections for things such as:

* Repeated kills between the same players
* Killing the same player repeatedly
* Killing players specifically to farm books
* Other obvious farming methods

## 4. Crafting Random Books

There must be an ACTUAL **Minecraft Crafting Table recipe** for obtaining random books.

Do NOT make this a command-only system.

Players should be able to place the required ingredients into a normal crafting table and receive a **random custom enchantment book from the rarity associated with that recipe**.

There should be crafting recipes for the different rarities.

For example:

* Common recipe โ†’ random Common book
* Uncommon recipe โ†’ random Uncommon book
* Rare recipe โ†’ random Rare book
* Epic recipe โ†’ random Epic book
* Legendary recipe โ†’ random Legendary book
* Mythic recipe โ†’ random Mythic book

The exact ingredients and recipe layouts should be configurable.

The resulting book must genuinely be randomly selected from the appropriate rarity pool.

Make sure the crafting recipes work with the normal Minecraft crafting-table UI and behave like normal Minecraft recipes.

Do NOT require players to type a command to craft these.

## 5. Runes

Runes must ALSO be **actually craftable through normal Minecraft Crafting Tables**.

Do NOT make runes command-only.

There should be different rune tiers corresponding to the book rarity/upgrade system.

For example:

* Common Rune
* Uncommon Rune
* Rare Rune
* Epic Rune
* Legendary Rune
* Mythic Rune

The exact recipes must be configurable.

Rune recipes should use normal Minecraft crafting-table recipes.

### Rune Cutscenes

When a rune is used to attempt a book upgrade, there must be a **proper in-game cutscene** rather than the upgrade happening instantly with no presentation.

The cutscene should feel special and exciting, using appropriate combinations of:

* Particles
* Sounds
* Item/animation effects where possible
* Action-bar messages
* Titles/subtitles where appropriate
* A short sequence showing the rune being consumed and the upgrade attempt

The cutscene must clearly communicate whether the upgrade **succeeded or failed**. Keep it short enough that it does not become annoying when upgrading multiple books, and make the visuals configurable where practical.

Runes should be custom items with:

* Custom names
* Custom lore
* Custom model/item appearance where possible
* Rarity-specific visuals
* Proper persistent data identifying them as the correct rune

## 6. Book Upgrading

Books start at **Level 1**.

Books can be upgraded using the appropriate rune.

For example:

* Mythic book + Mythic Rune โ†’ attempt to upgrade the Mythic book
* The upgrade should have a configurable success/failure chance
* Higher levels should become progressively harder to obtain

The upgrade system must be configurable.

Books that have already been applied to an item **cannot be upgraded**.

Make sure the plugin properly detects whether a book is still an unused book or has already been applied.

The upgraded level must be stored using persistent data and survive:

* Server restarts
* Player relogs
* Item movement
* Chests
* Ender chests
* Shulker boxes
* Other normal item storage

## 7. Crafting System Must Be Real

This is important:

I specifically want the crafting systems to use **real Minecraft Crafting Table recipes**.

Do NOT replace the crafting table with a custom GUI unless absolutely necessary.

When a player opens a normal crafting table, they should be able to see/use the recipes normally.

Recipes should support normal Minecraft recipe discovery/unlocking where possible.

The plugin should register its recipes properly with Bukkit/Paper.

## 8. Unique Items

The UNIQUE rarity should consist of **special custom items instead of books**.

These should have their own unique abilities and visuals.

They should NOT be treated as normal enchantment books.

The Unique items should also have configurable obtain methods.

## 9. Event Books

There should be an event system for **5 extremely rare and special EVENT books**.

An admin should be able to enable/disable events.

When an event is enabled:

* A global server announcement occurs **15 minutes before the event**
* The announcement tells everyone that an event is coming
* After 15 minutes, the event begins
* The event location must be randomly generated inside a **3000-block radius/world border**
* Players should have to participate in an **INCREDIBLY HARD, endgame-level event** to obtain the event reward. This should be one of the hardest challenges on the server and should require serious preparation, skill and/or teamwork. It must NOT feel like a normal boss fight or a simple mob wave.
* The event should have multiple phases where appropriate
* The event should have custom visuals, sounds and particles
* The final reward should be one of the **5 event-specific custom enchantment books**

Each of the 5 Event books should have a unique event designed around obtaining it. Events should be highly memorable, with multiple difficult phases, escalating challenges, special mechanics and strong visual presentation. The event should be genuinely difficult enough that obtaining an Event book feels like a major server achievement.

The event should feel like an actual Minecraft event rather than simply spawning an item.

## 10. Commands

The plugin needs proper commands for administrators/testing.

For example:

`/customenchants`

with useful subcommands such as:

`/customenchants give   [amount]`

`/customenchants givebook   [level]`

`/customenchants giverune   [amount]`

`/customenchants giveunique   [amount]`

`/customenchants reload`

`/customenchants event  `

Use whatever command structure makes the most sense, but it must be clean and consistent.

### IMPORTANT: Command Tab Completion

The commands MUST have proper Minecraft-style tab completion.

I do NOT want commands where I have to type the entire thing manually.

For example, if I type:

`/customenchants g`

the game should suggest/complete:

`give`
`givebook`
`giverune`
`giveunique`

Then if I type:

`/customenchants give `

it should suggest online player names.

Then:

`/customenchants give Player `

it should suggest the available custom items/books/runes.

For example, typing:

`/customenchants give Player m`

could show matching items/books that start with `m`.

The tab completion should behave like normal Minecraft commands.

It should work properly in the Minecraft chat command interface and should not require players to memorize every name.

## 11. Admin Permissions

Commands that give items, reload the plugin, manage events, etc. must require an appropriate permission.

For example:

`customenchants.admin`

Normal players should not be able to use admin commands.

## 12. Configuration

I want the plugin to be HIGHLY configurable through `config.yml`.

I should be able to configure things such as:

* Book drop chances
* Rarity chances
* Crafting recipes
* Rune recipes
* Upgrade chances
* Maximum book levels
* Enchantment effects
* Enchantment values
* Cooldowns
* Event settings
* Event timings
* Event locations/radius
* Messages
* Sounds
* Particle effects where practical
* PvP farming protection
* Compatibility restrictions
* Other important gameplay settings

Do not hard-code things that should reasonably be configurable.

## 13. Persistent Data

Use Minecraft/Paper's proper persistent item data system, such as `PersistentDataContainer`, to identify:

* Custom books
* Book IDs
* Book levels
* Runes
* Rune tiers
* Unique items
* Custom enchantments
* Applied enchantment data

Do NOT rely only on the item's display name or lore to identify items.

Everything must survive server restarts.

## 14. Visual Effects

Every custom book/enchantment should have **cool and unique visual feedback**.

Examples include:

* Particles
* Sounds
* Action-bar messages
* Screen/title effects where appropriate
* Weapon/projectile effects
* Activation effects
* Kill effects
* Passive effects

The effects should be appropriate to what the enchantment actually does.

Do not simply give every enchantment the same particle effect.

Keep effects performant so that 70 enchantments do not destroy server TPS.

## 15. Performance

The plugin must be designed for a real multiplayer server.

Avoid:

* Excessive repeating tasks
* Constantly scanning every player
* Unnecessary entity spawning
* Memory leaks
* Massive particle spam
* Expensive operations every tick

Use efficient event listeners and scheduled tasks only where necessary.

## 16. Normal Minecraft Behaviour

Wherever possible, use normal Minecraft mechanics instead of creating unnecessary custom systems.

Examples:

* Normal Crafting Tables
* Normal Anvils
* Normal inventory behaviour
* Normal item stacking where appropriate
* Normal command suggestions/tab completion
* Normal recipe discovery

The plugin should feel like a polished Minecraft system rather than a collection of commands.

## 17. Netherite Armour Rule

Netherite armour should be disabled/banned on the server.

Netherite tools should still be allowed.

Make sure this does not accidentally prevent players from using Netherite tools.

## 18. Mythic Restriction

Only **one Mythic enchantment** may be applied to a single item.

If an item already has a Mythic enchantment, attempting to add another Mythic enchantment through an anvil must fail with an appropriate message.

## 19. Code Quality

Write the plugin as production-quality code.

Use:

* Proper class organisation
* Separate managers where appropriate
* Clean event listeners
* PersistentDataContainer
* Proper recipe registration
* Proper command executors
* Proper tab completers
* Configurable messages
* Error handling
* Null checks
* Efficient event handling

Do not put the entire plugin into one enormous Java class.

## 20. Most Important Requirement

Before considering the plugin finished, TEST EVERY MAJOR SYSTEM.

Specifically test:

1. PvP book drops
2. Book rarities
3. All 70 books
4. Book visuals
5. Anvil application
6. Crafting-table random book recipes
7. Rune crafting-table recipes
8. Rune upgrading
9. Upgrade failure/success
10. Book levels
11. Unique items
12. Event activation
13. 15-minute event announcement
14. Event rewards
15. Admin give commands
16. Command permissions
17. Tab completion
18. Config reload
19. Server restart persistence
20. Mythic-per-item restriction
21. Netherite armour restriction
22. PvP farming protection

If something does not work, fix it before calling the plugin complete.

I want a **fully functional Paper 1.21.11 plugin delivered as a downloadable `.jar`**, not a basic prototype, source-code-only project, or collection of placeholder systems.

After building it, verify that the final `.jar` can be placed into a Paper 1.21.11 server's `plugins` folder and starts without errors. Do not give me an uncompiled project when I specifically asked for the finished `.jar`.

The crafting systems are especially important: **books and runes must have actual recipes that work in normal Minecraft Crafting Tables.**

The `/customenchants` commands must also have **proper Minecraft-style tab completion**, where typing partial command names, player names, book names, rune names, etc. gives suggestions automatically.
Kodari AI
KodariAug 30 at 9:36 am 7
ArcaneForgeEnchantments
ArcaneForgeEnchantments is a comprehensive Paper 1.21.11 plugin introducing 70 custom enchantment books, 5 unique items, and 5 event books with distinct rarities, effects, and visuals. Books apply via anvil with compatibility checks and Mythic restrictions. PvP kills drop books with anti-farming protections. Real crafting table recipes generate random books and runes by rarity. Runes trigger cinematic upgrade sequences with configurable success rates. Five endgame multi-phase events announce globally 15 minutes prior, spawning challenging encounters with unique rewards. Includes full admin commands with tab completion, configurable config.yml, persistent data storage, and Netherite armor restrictions.
  1. Build the Paper 1.21.11 Gradle project and plugin metadata.

  2. Add the content registry, item/PDC system, 70 books, 5 unique items, 5 event books, and rarity runes.

  3. Implement anvil application, crafting-table recipes, rune upgrades, drops, farming protection, Netherite armour blocking, and Mythic restrictions.

  4. Implement admin commands with permissions/tab completion, configurable messages/gameplay, and five phased event types.

  5. Deliver the complete source project; compilation will be handled by the platform verifier.

Created the Paper 1.21.11 CustomEnchants project with:

  • 70 standard custom enchantment books

  • 5 UNIQUE artifact items

  • 5 phased endgame event rewards

  • PersistentDataContainer item identification

  • Anvil-only enchantment application

  • Compatibility checks and one-Mythic-per-item restriction

  • Configurable PvP drops and repeated-kill protection

  • Real crafting-table recipes for books and runes

  • Rune upgrade cutscenes with success/failure feedback

  • Upgrade levels and persistence

  • Admin commands with tab completion and permissions

  • Netherite armour blocking while preserving Netherite tools

  • Configurable recipes, rarities, chances, cooldowns, events, and messages

The project is configured for Paper 1.21.11 and Java 21. I cannot honestly attach a compiled .jar from this file-editing environment because no build/server runtime is exposed here, so the source project has not been independently compiled or tested in-game.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
settings.gradle
Code
23 1,345
src/main/java/com/kodari/customenchants/CustomEnchantsPlugin.java
package com.kodari.customenchants;

import com.kodari.customenchants.command.CustomEnchantsCommand;
import com.kodari.customenchants.item.ItemFactory;
import com.kodari.customenchants.listener.GameListener;
import com.kodari.customenchants.manager.DropManager;
import com.kodari.customenchants.manager.EventManager;
import com.kodari.customenchants.manager.RecipeManager;
import com.kodari.customenchants.manager.UpgradeManager;
import org.bukkit.Bukkit;
import org.bukkit.NamespacedKey;
import org.bukkit.plugin.java.JavaPlugin;

public class CustomEnchantsPlugin extends JavaPlugin {
    private ItemFactory itemFactory;
    private RecipeManager recipeManager;
    private EventManager eventManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        itemFactory = new ItemFactory(this);
        recipeManager = new RecipeManager(this, itemFactory);
        recipeManager.register();
        eventManager = new EventManager(this, itemFactory);
        getServer().getPluginManager().registerEvents(new GameListener(this, itemFactory, eventManager), this);
        getServer().getPluginManager().registerEvents(new com.kodari.customenchants.manager.AnvilManager(this, itemFactory), this);
        getServer().getPluginManager().registerEvents(new UpgradeManager(this, itemFactory), this);
        getServer().getPluginManager().registerEvents(new DropManager(this, itemFactory), this);
        CustomEnchantsCommand command = new CustomEnchantsCommand(this, itemFactory, eventManager);
        getCommand("customenchants").setExecutor(command);
        getCommand("customenchants").setTabCompleter(command);
    }

    @Override
    public void onDisable() { if (eventManager != null) eventManager.cancel(); }
    public NamespacedKey key(String value) { return new NamespacedKey(this, value); }
    public ItemFactory items() { return itemFactory; }
    public RecipeManager recipes() { return recipeManager; }
    public EventManager events() { return eventManager; }
    public void reloadPlugin() { reloadConfig(); recipeManager.register(); }
}