myokoni

DestinyGear - Complete Development Prompt

You are an expert senior Java developer specializing in Minecraft Paper/Purpur plugins.

Your task is to develop a production-ready plugin named DestinyGear for Paper/Purpur 1.21.11+ using Java 21.

This plugin must be written as if it will be used on a public survival server with hundreds of players. Never simplify gameplay unless explicitly instructed. Never replace requested mechanics with easier implementations. Always prioritize correctness, stability, optimization, and clean architecture.

---

General Requirements

  • Java 21
  • Paper/Purpur 1.21.11+
  • Maven project
  • Adventure API
  • PersistentDataContainer for item data
  • UUID-based player data
  • Reloadable configuration
  • Clean package structure
  • No memory leaks
  • No unnecessary repeating scheduler
  • Use events whenever possible
  • Every configurable value must be stored in config.yml
  • Every message must be stored inside messages.yml
  • Every permission configurable
  • Full source code only.
  • Never generate pseudo code.
  • Never leave TODO.
  • Never omit requested features.

---

Plugin Concept

Every player owns exactly ONE Destiny Gear.

The Destiny Gear represents the player's destiny.

It follows the player forever.

It cannot permanently disappear.

It cannot be stolen.

It can become stronger through progression.

Some Destiny Gear can unlock Ultra abilities.

Some can unlock Hidden Awakening.

Every Destiny Gear is permanently linked to one player.

---

First Join

When a player joins for the first time:

Generate exactly ONE Destiny Gear.

Never generate another one again.

Store:

Player UUID

Item UUID

Item Type

Creation Date

Owner

Ultra Status

Hidden Status

Extra Data

All information must survive:

Server restart

Plugin reload

World change

Respawn

Death

Dimension travel

Chunk unload

---

Random Pool

Weapon

Diamond Sword

Netherite Sword

Diamond Axe

Netherite Axe

Trident

Mace

Spear

Shield

Tool

Diamond Pickaxe

Netherite Pickaxe

Diamond Shovel

Netherite Shovel

Armor

Diamond Helmet

Diamond Chestplate

Diamond Leggings

Diamond Boots

Netherite Helmet

Netherite Chestplate

Netherite Leggings

Netherite Boots

Rare

Elytra

Legendary

Infinite Totem

Every item weight configurable.

Every item can be disabled individually.

---

SoulBound

Every Destiny Gear must be SoulBound.

SoulBound Rules

Cannot Drop

Cannot Despawn

Cannot Burn

Cannot Explode

Cannot Be Stolen

Cannot Be Put Into:

Chest

Ender Chest

Barrel

Crafter

Dropper

Dispenser

Hopper

Shulker Box

Bundle

Any storage inventory

Any plugin inventory if detectable

Cannot be picked up by another player.

Cannot become another player's Destiny Gear.

Must always belong to original owner.

Allowed:

Move inside inventory

Swap slot

Equip

Unequip

Offhand

Armor Stand interaction only if owner.

---

Death

When owner dies:

Destiny Gear never drops.

Always kept.

Must survive gamerule changes.

Must survive keepInventory false.

Must survive plugins modifying drops.

---

Durability

Destiny Gear never loses durability.

Never breaks.

Never reaches zero durability.

---

Vanilla Compatibility

Allow:

Enchanting Table

Grindstone

Smithing Table

Anvil

---

Anvil

Every anvil operation costs exactly 1 level.

Regardless of enchantments.

Regardless of repair cost.

Regardless of vanilla calculation.

---

Grindstone

Remove ONLY vanilla enchantments.

Never remove:

SoulBound

Ultra

Hidden Awakening

Custom Data

---

Smithing

Diamond -> Netherite

Must preserve:

Owner UUID

Item UUID

SoulBound

Ultra

Hidden

Lore

Persistent Data

---

Trident

When Trident is generated:

Open INVENTORY GUI.

Player must choose:

Loyalty I

or

Riptide III

Player may only choose once.

Store chosen type forever.

If enchant disappears

Automatically restore chosen enchant.

Never duplicate.

If Loyalty:

If trident enters void

lava

despawn

deleted

destroyed

lost

Automatically return.

If inventory full

Store inside

/trident

/trident stores exactly ONE trident.

Never duplicate.

Command

/tridenttype

Switch between Loyalty and Riptide.

Permission configurable.

Cooldown configurable.

Cost configurable.

---

Infinite Totem

Infinite Totem never disappears.

After activation

Enter cooldown.

Cooldown configurable.

Show cooldown in ActionBar.

Cannot activate while cooling down.

---

Ultra System

Most Destiny Gear can awaken using Energy Core.

Players use

/ultra

INVENTORY GUI contains

Destiny Gear

Energy Core

Press confirm

Consume Energy Core

Grant Ultra.

Ultra can only be applied once.

Cannot remove Ultra.

Grindstone cannot remove.

---

Helmet Ultra

Name

Eternal Vision

Effects

Permanent Night Vision

Permanent Water Breathing

Automatically remove

Blindness

Darkness

Nausea

Mining Fatigue

No particles

No icon

---

Chestplate Ultra

Elemental Guard

Immune

Fire

Lava

Explosion

Creeper

TNT

Lightning

Projectile

Arrow

Trident

Fireball

Wind Charge

Designed to force melee combat.

---

Leggings Ultra

Swift Soul

Permanent Speed II

Hidden effect

No particles

No icon

Potion Speed should not stack.

---

Boot Ultra

Sky Walker

Double Jump.

Touch ground

Restore jump.

---

Weapon Ultra

Blood Feast

Every successful hit restores health.

Heal amount configurable.

Works on mobs and players.

---

Tool Ultra

Titan Miner

Permanent Haste.

Additional mining speed configurable.

---

Elytra

Elytra does NOT use Energy Core.

Elytra has its own progression.

Condition

Player must obtain advancement

The Next Generation

Plugin automatically awakens Destiny Elytra.

---

Elytra Normal Awakening

The End

One boost.

Recharge

1 second.

No fireworks required.

Shift while flying.

Enderman never becomes aggressive.

Immune to Levitation.

Reduce collision damage.

Overworld

One boost.

Recharge

20 seconds.

Nether

One boost.

Recharge

30 seconds.

Recharge begins immediately after boost usage.

---

Hidden Awakening

Hidden.

No INVENTORY GUI.

No message explaining requirements.

Condition

Player inventory contains 27 Elytras.

Do NOT consume Elytras.

Immediately unlock Hidden Awakening.

---

Hidden Elytra

The End

10 boost charges.

Recharge

1 charge every second.

Recharge begins after first boost used.

Using additional boosts must NEVER restart recharge timer.

Allow boost spam.

Permanent Strength II only inside The End.

No fireworks.

Enderman ignore player.

Levitation immunity.

Collision damage reduction.

Overworld

5 charges.

Recharge

1 charge every 10 seconds.

Recharge timer never resets.

Nether

Same as Overworld.

---

Commands

Players

/ultra

/trident

/tridenttype

Admins

/destinygear reload

/destinygear give

/destinygear remove

/destinygear reset

/destinygear reroll

/destinygear info

/destinygear core

/destinygear recipe set

/destinygear recipe remove

/destinygear recipe reload

All permissions configurable.

Tab completion required.

---

Recipe System

Energy Core recipe must NOT be hardcoded.

Admin creates recipe using command.

Recipe saved into config.

Recipe reload without restarting server.

Recipe removable.

---

Config

Everything configurable.

Item weights

Cooldowns

Boost counts

Recharge speed

Heal amount

Haste level

Speed level

Jump

Messages

Sounds

Particles

Permissions

Titles

ActionBars

Recipe

Enabled systems

---

Data

Never trust ItemMeta alone.

Use PersistentDataContainer.

Store

Owner UUID

Item UUID

Creation Time

Item Type

Ultra

Hidden

Trident Type

Charge Data

Cooldown Data

Everything persistent.

---

Anti Duplication

Only ONE valid Destiny Gear exists for each Item UUID.

Plugin must detect duplication during

Death

Respawn

Restart

Reload

Chunk unload

Chunk load

Teleport

Dimension change

Inventory move

Smithing

Grindstone

Anvil

Creative mode

Cursor item

Offhand

Armor slot

Dropping

Picking up

Container movement

If duplicate detected

Keep original.

Invalidate duplicate safely.

Never delete valid item.

Never create replacement unless original confirmed lost.

---

Performance

Avoid repeating global scheduler.

Use event-driven architecture.

Only create temporary tasks when necessary.

Cancel tasks automatically.

Clean memory on player quit.

No lag spikes.

Suitable for servers with hundreds of players.

---

Architecture

Separate packages

commands

listeners

managers

services

storage

recipes

ultra

hidden

trident

elytra

totem

items

utils

config

models

api

Every system must be modular.

Future developers must be able to add new Destiny Gear without modifying existing core logic.

Follow SOLID principles.

Write clean, maintainable, production-quality code with complete comments where necessary.

myokoni

DestinyGear - Complete Development Prompt

You are an expert senior Java developer specializing in Minecraft Paper/Purpur plugins.

Your task is to develop a production-ready plugin named DestinyGear for Paper/Purpur 1.21.11+ using Java 21.

This plugin must be written as if it will be used on a public survival server with hundreds of players. Never simplify gameplay unless explicitly instructed. Never replace requested mechanics with easier implementations. Always prioritize correctness, stability, optimization, and clean architecture.

---

General Requirements

  • Java 21
  • Paper/Purpur 1.21.11+
  • Maven project
  • Adventure API
  • PersistentDataContainer for item data
  • UUID-based player data
  • Reloadable configuration
  • Clean package structure
  • No memory leaks
  • No unnecessary repeating scheduler
  • Use events whenever possible
  • Every configurable value must be stored in config.yml
  • Every message must be stored inside messages.yml
  • Every permission configurable
  • Full source code only.
  • Never generate pseudo code.
  • Never leave TODO.
  • Never omit requested features.

---

Plugin Concept

Every player owns exactly ONE Destiny Gear.

The Destiny Gear represents the player's destiny.

It follows the player forever.

It cannot permanently disappear.

It cannot be stolen.

It can become stronger through progression.

Some Destiny Gear can unlock Ultra abilities.

Some can unlock Hidden Awakening.

Every Destiny Gear is permanently linked to one player.

---

First Join

When a player joins for the first time:

Generate exactly ONE Destiny Gear.

Never generate another one again.

Store:

Player UUID

Item UUID

Item Type

Creation Date

Owner

Ultra Status

Hidden Status

Extra Data

All information must survive:

Server restart

Plugin reload

World change

Respawn

Death

Dimension travel

Chunk unload

---

Random Pool

Weapon

Diamond Sword

Netherite Sword

Diamond Axe

Netherite Axe

Trident

Mace

Spear

Shield

Tool

Diamond Pickaxe

Netherite Pickaxe

Diamond Shovel

Netherite Shovel

Armor

Diamond Helmet

Diamond Chestplate

Diamond Leggings

Diamond Boots

Netherite Helmet

Netherite Chestplate

Netherite Leggings

Netherite Boots

Rare

Elytra

Legendary

Infinite Totem

Every item weight configurable.

Every item can be disabled individually.

---

SoulBound

Every Destiny Gear must be SoulBound.

SoulBound Rules

Cannot Drop

Cannot Despawn

Cannot Burn

Cannot Explode

Cannot Be Stolen

Cannot Be Put Into:

Chest

Ender Chest

Barrel

Crafter

Dropper

Dispenser

Hopper

Shulker Box

Bundle

Any storage inventory

Any plugin inventory if detectable

Cannot be picked up by another player.

Cannot become another player's Destiny Gear.

Must always belong to original owner.

Allowed:

Move inside inventory

Swap slot

Equip

Unequip

Offhand

Armor Stand interaction only if owner.

---

Death

When owner dies:

Destiny Gear never drops.

Always kept.

Must survive gamerule changes.

Must survive keepInventory false.

Must survive plugins modifying drops.

---

Durability

Destiny Gear never loses durability.

Never breaks.

Never reaches zero durability.

---

Vanilla Compatibility

Allow:

Enchanting Table

Grindstone

Smithing Table

Anvil

---

Anvil

Every anvil operation costs exactly 1 level.

Regardless of enchantments.

Regardless of repair cost.

Regardless of vanilla calculation.

---

Grindstone

Remove ONLY vanilla enchantments.

Never remove:

SoulBound

Ultra

Hidden Awakening

Custom Data

---

Smithing

Diamond -> Netherite

Must preserve:

Owner UUID

Item UUID

SoulBound

Ultra

Hidden

Lore

Persistent Data

---

Trident

When Trident is generated:

Open INVENTORY GUI.

Player must choose:

Loyalty I

or

Riptide III

Player may only choose once.

Store chosen type forever.

If enchant disappears

Automatically restore chosen enchant.

Never duplicate.

If Loyalty:

If trident enters void

lava

despawn

deleted

destroyed

lost

Automatically return.

If inventory full

Store inside

/trident

/trident stores exactly ONE trident.

Never duplicate.

Command

/tridenttype

Switch between Loyalty and Riptide.

Permission configurable.

Cooldown configurable.

Cost configurable.

---

Infinite Totem

Infinite Totem never disappears.

After activation

Enter cooldown.

Cooldown configurable.

Show cooldown in ActionBar.

Cannot activate while cooling down.

---

Ultra System

Most Destiny Gear can awaken using Energy Core.

Players use

/ultra

INVENTORY GUI contains

Destiny Gear

Energy Core

Press confirm

Consume Energy Core

Grant Ultra.

Ultra can only be applied once.

Cannot remove Ultra.

Grindstone cannot remove.

---

Helmet Ultra

Name

Eternal Vision

Effects

Permanent Night Vision

Permanent Water Breathing

Automatically remove

Blindness

Darkness

Nausea

Mining Fatigue

No particles

No icon

---

Chestplate Ultra

Elemental Guard

Immune

Fire

Lava

Explosion

Creeper

TNT

Lightning

Projectile

Arrow

Trident

Fireball

Wind Charge

Designed to force melee combat.

---

Leggings Ultra

Swift Soul

Permanent Speed II

Hidden effect

No particles

No icon

Potion Speed should not stack.

---

Boot Ultra

Sky Walker

Double Jump.

Touch ground

Restore jump.

---

Weapon Ultra

Blood Feast

Every successful hit restores health.

Heal amount configurable.

Works on mobs and players.

---

Tool Ultra

Titan Miner

Permanent Haste.

Additional mining speed configurable.

---

Elytra

Elytra does NOT use Energy Core.

Elytra has its own progression.

Condition

Player must obtain advancement

The Next Generation

Plugin automatically awakens Destiny Elytra.

---

Elytra Normal Awakening

The End

One boost.

Recharge

1 second.

No fireworks required.

Shift while flying.

Enderman never becomes aggressive.

Immune to Levitation.

Reduce collision damage.

Overworld

One boost.

Recharge

20 seconds.

Nether

One boost.

Recharge

30 seconds.

Recharge begins immediately after boost usage.

---

Hidden Awakening

Hidden.

No INVENTORY GUI.

No message explaining requirements.

Condition

Player inventory contains 27 Elytras.

Do NOT consume Elytras.

Immediately unlock Hidden Awakening.

---

Hidden Elytra

The End

10 boost charges.

Recharge

1 charge every second.

Recharge begins after first boost used.

Using additional boosts must NEVER restart recharge timer.

Allow boost spam.

Permanent Strength II only inside The End.

No fireworks.

Enderman ignore player.

Levitation immunity.

Collision damage reduction.

Overworld

5 charges.

Recharge

1 charge every 10 seconds.

Recharge timer never resets.

Nether

Same as Overworld.

---

Commands

Players

/ultra

/trident

/tridenttype

Admins

/destinygear reload

/destinygear give

/destinygear remove

/destinygear reset

/destinygear reroll

/destinygear info

/destinygear core

/destinygear recipe set

/destinygear recipe remove

/destinygear recipe reload

All permissions configurable.

Tab completion required.

---

Recipe System

Energy Core recipe must NOT be hardcoded.

Admin creates recipe using command.

Recipe saved into config.

Recipe reload without restarting server.

Recipe removable.

---

Config

Everything configurable.

Item weights

Cooldowns

Boost counts

Recharge speed

Heal amount

Haste level

Speed level

Jump

Messages

Sounds

Particles

Permissions

Titles

ActionBars

Recipe

Enabled systems

---

Data

Never trust ItemMeta alone.

Use PersistentDataContainer.

Store

Owner UUID

Item UUID

Creation Time

Item Type

Ultra

Hidden

Trident Type

Charge Data

Cooldown Data

Everything persistent.

---

Anti Duplication

Only ONE valid Destiny Gear exists for each Item UUID.

Plugin must detect duplication during

Death

Respawn

Restart

Reload

Chunk unload

Chunk load

Teleport

Dimension change

Inventory move

Smithing

Grindstone

Anvil

Creative mode

Cursor item

Offhand

Armor slot

Dropping

Picking up

Container movement

If duplicate detected

Keep original.

Invalidate duplicate safely.

Never delete valid item.

Never create replacement unless original confirmed lost.

---

Performance

Avoid repeating global scheduler.

Use event-driven architecture.

Only create temporary tasks when necessary.

Cancel tasks automatically.

Clean memory on player quit.

No lag spikes.

Suitable for servers with hundreds of players.

---

Architecture

Separate packages

commands

listeners

managers

services

storage

recipes

ultra

hidden

trident

elytra

totem

items

utils

config

models

api

Every system must be modular.

Future developers must be able to add new Destiny Gear without modifying existing core logic.

Follow SOLID principles.

Write clean, maintainable, production-quality code with complete comments where necessary.

Kodari AI
KodariJul 29 at 6:48 am 3

The generation was stopped before any content could be produced.

myokoni

DestinyGear - Complete Development Prompt

You are an expert senior Java developer specializing in Minecraft Paper/Purpur plugins.

Your task is to develop a production-ready plugin named DestinyGear for Paper/Purpur 1.21.11+ using Java 21.

This plugin must be written as if it will be used on a public survival server with hundreds of players. Never simplify gameplay unless explicitly instructed. Never replace requested mechanics with easier implementations. Always prioritize correctness, stability, optimization, and clean architecture.

---

General Requirements

  • Java 21
  • Paper/Purpur 1.21.11+
  • Maven project
  • Adventure API
  • PersistentDataContainer for item data
  • UUID-based player data
  • Reloadable configuration
  • Clean package structure
  • No memory leaks
  • No unnecessary repeating scheduler
  • Use events whenever possible
  • Every configurable value must be stored in config.yml
  • Every message must be stored inside messages.yml
  • Every permission configurable
  • Full source code only.
  • Never generate pseudo code.
  • Never leave TODO.
  • Never omit requested features.

---

Plugin Concept

Every player owns exactly ONE Destiny Gear.

The Destiny Gear represents the player's destiny.

It follows the player forever.

It cannot permanently disappear.

It cannot be stolen.

It can become stronger through progression.

Some Destiny Gear can unlock Ultra abilities.

Some can unlock Hidden Awakening.

Every Destiny Gear is permanently linked to one player.

---

First Join

When a player joins for the first time:

Generate exactly ONE Destiny Gear.

Never generate another one again.

Store:

Player UUID

Item UUID

Item Type

Creation Date

Owner

Ultra Status

Hidden Status

Extra Data

All information must survive:

Server restart

Plugin reload

World change

Respawn

Death

Dimension travel

Chunk unload

---

Random Pool

Weapon

Diamond Sword

Netherite Sword

Diamond Axe

Netherite Axe

Trident

Mace

Spear

Shield

Tool

Diamond Pickaxe

Netherite Pickaxe

Diamond Shovel

Netherite Shovel

Armor

Diamond Helmet

Diamond Chestplate

Diamond Leggings

Diamond Boots

Netherite Helmet

Netherite Chestplate

Netherite Leggings

Netherite Boots

Rare

Elytra

Legendary

Infinite Totem

Every item weight configurable.

Every item can be disabled individually.

---

SoulBound

Every Destiny Gear must be SoulBound.

SoulBound Rules

Cannot Drop

Cannot Despawn

Cannot Burn

Cannot Explode

Cannot Be Stolen

Cannot Be Put Into:

Chest

Ender Chest

Barrel

Crafter

Dropper

Dispenser

Hopper

Shulker Box

Bundle

Any storage inventory

Any plugin inventory if detectable

Cannot be picked up by another player.

Cannot become another player's Destiny Gear.

Must always belong to original owner.

Allowed:

Move inside inventory

Swap slot

Equip

Unequip

Offhand

Armor Stand interaction only if owner.

---

Death

When owner dies:

Destiny Gear never drops.

Always kept.

Must survive gamerule changes.

Must survive keepInventory false.

Must survive plugins modifying drops.

---

Durability

Destiny Gear never loses durability.

Never breaks.

Never reaches zero durability.

---

Vanilla Compatibility

Allow:

Enchanting Table

Grindstone

Smithing Table

Anvil

---

Anvil

Every anvil operation costs exactly 1 level.

Regardless of enchantments.

Regardless of repair cost.

Regardless of vanilla calculation.

---

Grindstone

Remove ONLY vanilla enchantments.

Never remove:

SoulBound

Ultra

Hidden Awakening

Custom Data

---

Smithing

Diamond -> Netherite

Must preserve:

Owner UUID

Item UUID

SoulBound

Ultra

Hidden

Lore

Persistent Data

---

Trident

When Trident is generated:

Open INVENTORY GUI.

Player must choose:

Loyalty I

or

Riptide III

Player may only choose once.

Store chosen type forever.

If enchant disappears

Automatically restore chosen enchant.

Never duplicate.

If Loyalty:

If trident enters void

lava

despawn

deleted

destroyed

lost

Automatically return.

If inventory full

Store inside

/trident

/trident stores exactly ONE trident.

Never duplicate.

Command

/tridenttype

Switch between Loyalty and Riptide.

Permission configurable.

Cooldown configurable.

Cost configurable.

---

Infinite Totem

Infinite Totem never disappears.

After activation

Enter cooldown.

Cooldown configurable.

Show cooldown in ActionBar.

Cannot activate while cooling down.

---

Ultra System

Most Destiny Gear can awaken using Energy Core.

Players use

/ultra

INVENTORY GUI contains

Destiny Gear

Energy Core

Press confirm

Consume Energy Core

Grant Ultra.

Ultra can only be applied once.

Cannot remove Ultra.

Grindstone cannot remove.

---

Helmet Ultra

Name

Eternal Vision

Effects

Permanent Night Vision

Permanent Water Breathing

Automatically remove

Blindness

Darkness

Nausea

Mining Fatigue

No particles

No icon

---

Chestplate Ultra

Elemental Guard

Immune

Fire

Lava

Explosion

Creeper

TNT

Lightning

Projectile

Arrow

Trident

Fireball

Wind Charge

Designed to force melee combat.

---

Leggings Ultra

Swift Soul

Permanent Speed II

Hidden effect

No particles

No icon

Potion Speed should not stack.

---

Boot Ultra

Sky Walker

Double Jump.

Touch ground

Restore jump.

---

Weapon Ultra

Blood Feast

Every successful hit restores health.

Heal amount configurable.

Works on mobs and players.

---

Tool Ultra

Titan Miner

Permanent Haste.

Additional mining speed configurable.

---

Elytra

Elytra does NOT use Energy Core.

Elytra has its own progression.

Condition

Player must obtain advancement

The Next Generation

Plugin automatically awakens Destiny Elytra.

---

Elytra Normal Awakening

The End

One boost.

Recharge

1 second.

No fireworks required.

Shift while flying.

Enderman never becomes aggressive.

Immune to Levitation.

Reduce collision damage.

Overworld

One boost.

Recharge

20 seconds.

Nether

One boost.

Recharge

30 seconds.

Recharge begins immediately after boost usage.

---

Hidden Awakening

Hidden.

No INVENTORY GUI.

No message explaining requirements.

Condition

Player inventory contains 27 Elytras.

Do NOT consume Elytras.

Immediately unlock Hidden Awakening.

---

Hidden Elytra

The End

10 boost charges.

Recharge

1 charge every second.

Recharge begins after first boost used.

Using additional boosts must NEVER restart recharge timer.

Allow boost spam.

Permanent Strength II only inside The End.

No fireworks.

Enderman ignore player.

Levitation immunity.

Collision damage reduction.

Overworld

5 charges.

Recharge

1 charge every 10 seconds.

Recharge timer never resets.

Nether

Same as Overworld.

---

Commands

Players

/ultra

/trident

/tridenttype

Admins

/destinygear reload

/destinygear give

/destinygear remove

/destinygear reset

/destinygear reroll

/destinygear info

/destinygear core

/destinygear recipe set

/destinygear recipe remove

/destinygear recipe reload

All permissions configurable.

Tab completion required.

---

Recipe System

Energy Core recipe must NOT be hardcoded.

Admin creates recipe using command.

Recipe saved into config.

Recipe reload without restarting server.

Recipe removable.

---

Config

Everything configurable.

Item weights

Cooldowns

Boost counts

Recharge speed

Heal amount

Haste level

Speed level

Jump

Messages

Sounds

Particles

Permissions

Titles

ActionBars

Recipe

Enabled systems

---

Data

Never trust ItemMeta alone.

Use PersistentDataContainer.

Store

Owner UUID

Item UUID

Creation Time

Item Type

Ultra

Hidden

Trident Type

Charge Data

Cooldown Data

Everything persistent.

---

Anti Duplication

Only ONE valid Destiny Gear exists for each Item UUID.

Plugin must detect duplication during

Death

Respawn

Restart

Reload

Chunk unload

Chunk load

Teleport

Dimension change

Inventory move

Smithing

Grindstone

Anvil

Creative mode

Cursor item

Offhand

Armor slot

Dropping

Picking up

Container movement

If duplicate detected

Keep original.

Invalidate duplicate safely.

Never delete valid item.

Never create replacement unless original confirmed lost.

---

Performance

Avoid repeating global scheduler.

Use event-driven architecture.

Only create temporary tasks when necessary.

Cancel tasks automatically.

Clean memory on player quit.

No lag spikes.

Suitable for servers with hundreds of players.

---

Architecture

Separate packages

commands

listeners

managers

services

storage

recipes

ultra

hidden

trident

elytra

totem

items

utils

config

models

api

Every system must be modular.

Future developers must be able to add new Destiny Gear without modifying existing core logic.

Follow SOLID principles.

Write clean, maintainable, production-quality code with complete comments where necessary.

Kodari AI
KodariJul 29 at 7:26 am 99

I’ll build DestinyGear — a full soulbound destiny-item plugin with Ultra awakenings, hidden elytra progression, trident destiny, infinite totem, admin tooling, and an anti-duplication layer.

DestinyGear
Grants every player exactly one permanent, soulbound Destiny Gear chosen from a weighted random pool of weapons, tools, armor, elytra, and an Infinite Totem. Gear survives death, reloads, and restarts via PersistentDataContainer plus YAML storage, can never be dropped, stored, stolen, or broken, and is guarded by anti-duplication checks. Features Energy Core Ultra awakenings (vision, elemental guard, speed, double jump, lifesteal, haste), hidden elytra boost progression with per-dimension charges, destiny trident loyalty/riptide selection with auto-return and storage, a configurable totem cooldown, and an admin-defined Energy Core recipe.

Now the core Java sources:

Now the item factory/utility, storage layer, and GUI framework:

Now the managers and feature services:

theNow elytra, trident, and totem systems:

Now the Ultra effects listener (the largest listener), GUI for ultra, recipe system:

Now the core listeners (soulbound, death, durability, crafting stations, player data):

Now the commands, API, and main plugin class:

Done. A few notes on design decisions:

  • Spear — vanilla Minecraft has no spear item, so it’s implemented with a trident visual and disabled by default in pool.SPEAR (config comment explains). Enable it if you run a custom-items plugin.

  • Anti-duplication — gear can never exist as a world item entity (ItemSpawnEvent voids it and returns it net-zero to an online owner), and event-driven inventory scans on join/respawn/world-change/gear-interaction invalidate stolen, outdated, or duplicated stacks while keeping the canonical one.

  • Recovery — a replacement is only issued when the original is confirmed lost (not in inventory, not stored, not in flight for tridents); full inventory routes gear to a pending-delivery flag instead of dropping it.

  • Performance — zero global repeating tasks. Totem action bar and elytra recharge use temporary self-cancelling tasks; elytra recharge never restarts on boost spam; all passive Ultra effects are applied via events with PDC markers so milk/expiry handling stays clean.

  • GUI framework — the GUIs (/ultra, trident choice, recipe editor) follow the manager/button pattern, always return inserted items on close, and route SoulBound gear to pending recovery rather than dropping it.

myokoni
📎 1 file 3,303 chars
📄
pasted-code-1785329161119.txt
txt 83 lines
▶
LATEST DEVELOPMENT UPDATE (HIGHEST PRIORITY)

This section overrides any previous implementation if conflicts exist.

The current codebase is an Alpha prototype. The following issues have been confirmed during real gameplay testing and must be fixed completely, not patched superficially.

Confirmed Bugs

Ultra INVENTORY GUI

- The current Ultra INVENTORY GUI is unusable.
- Players cannot successfully awaken Ultra.
- Replace the old implementation entirely.
- The "/ultra" INVENTORY GUI is now confirmation-only.
- Players must NOT place any items into the INVENTORY GUI.
- Automatically detect a valid Destiny Gear and at least one Energy Core in the player's inventory.
- Pressing Confirm consumes exactly one Energy Core and upgrades the selected Destiny Gear.
- Never duplicate or lose items.

Trident

- Throwing a Loyalty Trident far away may restore a new Trident before the original returns, creating duplicates.
- Rewrite the entire Trident recovery system.
- Track the actual Trident entity instead of checking only the inventory.
- Never restore while the thrown entity still exists.
- Guarantee that only one Destiny Trident can ever exist.

SoulBound

- Destiny Gear can still be stored inside certain containers (such as Bundles or similar storage systems).
- Audit every inventory interaction and block every storage method except those explicitly allowed.
- Destiny Gear must never leave the owner's personal inventory through storage exploits.

Spear

- The current Spear implementation incorrectly behaves as a Trident.
- Use the correct Paper API implementation.
- Correct model, material, display name and behaviour.

Elytra

- Elytra boost currently does not function.
- Shift while gliding does not activate boosts.
- ActionBar does not display charges or recharge.
- Hidden Awakening effects are incomplete.
- Rewrite the entire Elytra subsystem, including boost, recharge, charge tracking, ActionBar, particles and sounds.

Infinite Totem

- Infinite Totem may activate incorrectly and disappear permanently.
- Rewrite the activation lifecycle.
- The item must never be permanently consumed.
- Cooldown must always start correctly.
- Recovery after restart must work.

Destiny Give Command

- "/destinygear give" cannot correctly generate Destiny Gear.
- Rewrite the command.
- Every generated item must contain complete metadata, UUIDs, SoulBound, lore and PersistentDataContainer values.

Destiny Roll

- The first Destiny Gear currently appears instantly.
- Replace this with the complete Destiny Roll cinematic described in this specification.
- The final reward must be predetermined before the animation starts.
- The animation is visual only.

Code Review Requirement

Do not only fix the bugs listed above.

Treat every subsystem as potentially defective.

Perform a complete architectural review.

Search for additional hidden bugs, race conditions, synchronization problems, duplication exploits, inventory exploits, restart issues, reload issues, null pointer risks, state inconsistencies and performance problems.

Replace entire subsystems whenever necessary instead of applying temporary fixes.

The goal is not simply to make the plugin work.

The goal is to make DestinyGear feel like a polished premium-quality plugin suitable for long-term public server use.
Kodari AI
KodariJul 29 at 1:17 pm 143

I’ve reviewed the full codebase and confirmed all reported bugs plus several others (elytra charge state lost on restart, Ultra flight persisting through plugin reload, totem cooldown resumable only by luck, give command duplicating stale gear IDs, world-item voiding with full inventory losing gear forever). Executing the full rewrite now.

Now the GUI layer — adding full-view click handling, safe-drag support, and close-cancel for the cinematic:

Now the Ultra GUI rewrite (confirmation-only) and the trident flight recovery:

Now the TridentService rewrite:

Now creating the RollCinematic:

Now creating the RollCinematic class:The file doesn’t exist yet — creating it properly:

patch_file only works on existing files — creating RollCinematic with the create tag:

Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
Code
47 4,548
src/main/java/com/destinygear/DestinyGearPlugin.java
package com.destinygear;

import com.destinygear.api.DestinyGearAPI;
import com.destinygear.commands.DestinyGearCommand;
import com.destinygear.commands.TridentCommand;
import com.destinygear.commands.TridentTypeCommand;
import com.destinygear.commands.UltraCommand;
import com.destinygear.config.ConfigManager;
import com.destinygear.config.MessageManager;
import com.destinygear.elytra.ElytraListener;
import com.destinygear.elytra.ElytraService;
import com.destinygear.gui.GUIListener;
import com.destinygear.gui.GUIManager;
import com.destinygear.hidden.HiddenService;
import com.destinygear.items.GearItems;
import com.destinygear.listeners.CraftingListener;
import com.destinygear.listeners.DeathListener;
import com.destinygear.listeners.DurabilityListener;
import com.destinygear.listeners.PlayerDataListener;
import com.destinygear.listeners.SoulboundListener;
import com.destinygear.managers.DuplicationService;
import com.destinygear.managers.GearManager;
import com.destinygear.recipes.RecipeService;
import com.destinygear.storage.PlayerDataManager;
import com.destinygear.storage.PlayerDataStore;
import com.destinygear.totem.TotemListener;
import com.destinygear.totem.TotemService;
import com.destinygear.trident.TridentListener;
import com.destinygear.trident.TridentService;
import com.destinygear.ultra.UltraListener;
import com.destinygear.ultra.UltraService;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class DestinyGearPlugin extends JavaPlugin {

    private ConfigManager configManager;
    private MessageManager messageManager;
    private GUIManager guiManager;
    private PlayerDataManager dataManager;
    private DuplicationService duplicationService;
    private GearManager gearManager;
    private UltraService ultraService;
    private UltraListener ultraListener;
    private HiddenService hiddenService;
    private ElytraService elytraService;
    private TridentService tridentService;
    private TotemService totemService;
    private RecipeService recipeService;

    @Override
    public void onEnable() {
        configManager = new ConfigManager(this);
        messageManager = new MessageManager(this);
        GearItems.init(this);

        guiManager = new GUIManager();
        dataManager = new PlayerDataManager(new PlayerDataStore(this));
        duplicationService = new DuplicationService(this);
        gearManager = new GearManager(this);
        ultraService = new UltraService(this);
        ultraListener = new UltraListener(this);
        hiddenService = new HiddenService(this);
        elytraService = new ElytraService(this);
        tridentService = new TridentService(this);
        totemService = new TotemService(this);
        recipeService = new RecipeService(this);
        recipeService.load();

        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        Bukkit.getPluginManager().registerEvents(new PlayerDataListener(this), this);
        Bukkit.getPluginManager().registerEvents(new SoulboundListener(this), this);
        Bukkit.getPluginManager().registerEvents(new DeathListener(this), this);
        Bukkit.getPluginManager().registerEvents(new DurabilityListener(this), this);
        Bukkit.getPluginManager().registerEvents(new CraftingListener(this), this);
        Bukkit.getPluginManager().registerEvents(ultraListener, this);
        Bukkit.getPluginManager().registerEvents(new ElytraListener(this), this);
        Bukkit.getPluginManager().registerEvents(new TridentListener(this), this);
        Bukkit.getPluginManager().registerEvents(new TotemListener(this), this);

        getCommand("ultra").setExecutor(new UltraCommand(this));
        getCommand("trident").setExecutor(new TridentCommand(this));
        getCommand("tridenttype").setExecutor(new TridentTypeCommand(this));
        DestinyGearCommand adminCommand = new DestinyGearCommand(this);
        getCommand("destinygear").setExecutor(adminCommand);
        getCommand("destinygear").setTabCompleter(adminCommand);

        DestinyGearAPI.init(this);

        // Covers plugin reloads with players already online.
        for (Player player : Bukkit.getOnlinePlayers()) {
            gearManager.handleJoin(player);
        }
    }

    @Override
    public void onDisable() {
        if (elytraService != null) {
            elytraService.shutdown();
        }
        if (totemService != null) {
            totemService.shutdown();
        }
        if (dataManager != null) {
            dataManager.saveAll();
        }
        if (recipeService != null) {
            recipeService.unregister();
        }
    }
}