dummyaccount0348
๐Ÿ“Ž 1 file 23,436 chars
๐Ÿ“„
pasted-code-1778094310236.txt
txt 400 lines
โ–ถ
Here's the complete final prompt:
CURSOR PROMPT:
You are an expert Minecraft plugin developer. Build a Paper API plugin in Java supporting versions 1.21.4 through 1.21.11 only.
GENERAL RULES:
Use Paper API only (no Spigot fallbacks)
Plugin is strictly compatible with 1.21.4 through 1.21.11 only โ€” add a version check in onEnable() that disables the plugin if the server version is outside this range
All custom items must support a custom resource pack via ItemMeta#setCustomModelData(int) โ€” each item will have a unique CustomModelData int assigned for texture mapping
Ability triggers:
Press offhand key (F by default) = Ability 1, detected via PlayerSwapHandItemsEvent
Crouch + press offhand key = Ability 2, check player.isSneaking() at time of event
All cooldowns tracked per-player via UUID HashMaps
Use BukkitRunnable for tick-based effects (bleeding, fire damage, buffs)
Register all items in a central ItemRegistry class
Each item gets its own class that implements a shared CustomItem interface
Plugin may use vanilla Minecraft commands via Bukkit.dispatchCommand() or player.performCommand() where appropriate โ€” do not avoid vanilla commands if they are the simplest solution. Still prefer Paper API methods where performance matters
Plugin uses LibsDisguises as a dependency for all disguise/morphing functionality
Add to plugin.yml:
Yaml
Add LibsDisguises to pom.xml or build.gradle as a compile dependency using the official LibsDisguises repo
Every ability and passive must have particle effects and sounds using only particle/sound enums available in 1.21.4โ€“1.21.11:
Amaterasu: Solar/fire particles (FLAME, SOUL_FIRE_FLAME, DRIPPING_LAVA)
Aeolus' Mace: Wind/air particles (CLOUD, SWEEP_ATTACK, EXPLOSION_NORMAL)
Clawfang: Blood/nature particles (BLOCK_CRACK, REDSTONE red tint, VILLAGER_ANGRY)
Crawling Chaos: Void/chaos particles (PORTAL, ASH, SMOKE_LARGE, SPELL_WITCH)
Hermes Boots: Speed trail particles (END_ROD, CRIT, SWEEP_ATTACK)
Chronos Wings: Time/energy particles (END_ROD, ENCHANTMENT_TABLE, TOTEM, CRIT_MAGIC)
Khonshu: Moon/darkness particles (DRIPPING_WATER, SPELL_MOB white/silver tint, CRIT, SMOKE_NORMAL)
Hades' Bident: Underworld particles (SOUL_FIRE_FLAME, ASH, SMOKE_LARGE, LAVA)
Demeter's Scythe: Nature/harvest particles (VILLAGER_HAPPY, COMPOSTER, BLOCK_CRACK grass, FALLING_LEAVES if available)
Hera's Scepter: Divine/royal particles (ENCHANTMENT_TABLE, TOTEM, CRIT_MAGIC, END_ROD)
Use World#spawnParticle() for all particle spawning
Use World#playSound() for all sound effects โ€” pair every ability activation with an appropriate sound from the Sound enum
All particle effects must be server-side visible to nearby players, not just the caster
For projectile/beam abilities use animated particle trails updated every tick along the projectile path
ITEM IMPLEMENTATIONS:
1. Amaterasu (Sword)
CustomModelData: [assign int]
Lore: "A blade forged from the heart of the sun itself. Its wielder is blessed with the warmth of creation and the wrath of divine fire that no force in existence can extinguish."
Passive: Strength 3 in direct sunlight / Speed 1 at night + Weakness 1 at night
Passive: 8% chance on hit to apply true fire damage โ€” 2 ticks, 0.5hp (1 damage) per tick, bypasses armor
Ability 1 โ€” Black Flame (offhand key): Deal 1 heart/tick escalating to 2 hearts/tick, 6 block reach, 45s CD
Ability 2 โ€” Solar Flare (crouch + offhand key): Apply Slowness 2 + Weakness 1 for 5s to target, grant caster Speed 2, 80s CD
2. Aeolus' Mace (Mace)
CustomModelData: [assign int]
Passive: Permanent Speed 1
Passive: Negate all fall damage
Passive: Track consecutive hits per player โ€” 3rd consecutive hit deals double damage (reset on miss or swap)
Ability 1 โ€” Aeolus' Grace (offhand key): Dash in the direction the player is looking, 15s CD
Ability 2 โ€” Windswept Stun (crouch + offhand key): Stun all nearby players/mobs (can only shield, nothing else) for 5s + launch caster upward, 35s CD
3. Clawfang (Sword)
CustomModelData: [assign int]
Passive: 8% chance on hit to apply Bleeding โ€” custom effect, 6s duration, 0.5 hearts (1 damage) per tick
Ability 1 โ€” Wild Leap (offhand key): Forward lunge, applies Bleeding to any entity hit
Ability 2 โ€” Nature's Howl (crouch + offhand key): 60s buff โ€” Strength 2, Speed 2, Regen 2, all hits apply Bleeding at double rate (1 heart/tick), reactivation locked for 60s
4. The Crawling Chaos (Sword)
CustomModelData: [assign int]
Lore: "A blade made from the very flesh of Nyarlathotep, the God of the Apocalypse."
Passive โ€” Art of Deception: Player's name hidden from tab list while holding this item
Ability 1 โ€” Omnipotence (offhand key): Set player to spectator mode for 15s then return to survival, 5 min CD
Ability 2 โ€” God of a Thousand Forms (crouch + offhand key):
Open a INVENTORY GUI listing all mobs the player has ever killed (stored per UUID in persistent data file)
On selection, call DisguiseAPI.disguiseEntity(player, new MobDisguise(DisguiseType.fromEntityType(type)))
After 3 minutes call DisguiseAPI.undisguiseEntity(player) via BukkitRunnable
On mob kill, store EntityType in player's persistent data file
Only Crawling Chaos uses LibsDisguises โ€” no other item touches it
5 min CD
5. Hermes Boots (Boots)
CustomModelData: [assign int]
Passive 1 โ€” Speed of Freedom: Permanent Speed 3 while equipped
Passive 2 โ€” Oceanic Reefs: Depth Strider 4 effect while equipped
Passive 3 โ€” As Light as a Feather: Negate all fall damage
Ability 1 โ€” Light as a Bird (offhand key): Toggle Jump Boost 1 on/off
Ability 2 โ€” Feathered Fling (crouch + offhand key): Dash forward + Speed 5 for 2s, 40s CD
6. Chronos Wings (Chestplate + Elytra hybrid)
CustomModelData: [assign int]
Functions as both a chestplate and elytra simultaneously โ€” player can glide AND has netherite chestplate armor values applied via attribute modifiers
Apply Protection 6 and Unbreaking 5 via item meta
Set item durability to 10,000
While equipped, player can always land critical hits regardless of fall state
Passive โ€” Time's Retribution: Every time the wearer is hit, 10% chance to stun the attacker for 3s (Slowness 255 + Blindness + Nausea)
Ability 1 โ€” The Time Ray (offhand key):
3 second charge phase โ€” display countdown on action bar
On completion fire a yellow particle beam via raycast in look direction up to 50 blocks
Deals 26 damage (13 hearts), fully bypasses armor via direct health subtraction
If player moves or takes damage during charge, ability cancels and applies 5s penalty CD
25s CD
Ability 2 โ€” reserved for future addition
7. Khonshu (Sword)
CustomModelData: [assign int]
Lore: "A sword shrouded in the essence of the God of the moon. Those who wield it are subject to do his bidding. For the price of your sanity and freedom, this weapon grants its vessel everlasting power."
Passive 1: Permanent Invisibility while holding โ€” re-apply every tick, ambient=true, particles=false
Passive 2: Permanent Speed 2 while holding
Ability 1 โ€” Crescent Cleaves (offhand key):
Fire 3 sequential crescent-shaped projectiles (arc particle pattern)
Projectile 1: 6 damage (3 hearts) โ€” fires immediately
Projectile 2: 12 damage (6 hearts) โ€” fires 3s later
Projectile 3: 18 damage (9 hearts) โ€” fires 3s after that
Each projectile is independent, enemy can heal between hits
45s CD starts after third projectile fires
Ability 2 โ€” Khonshu's Scathe (crouch + offhand key):
AOE pulse, 8 block radius all directions
Lasts 4 seconds
Deals 3 damage (1.5 hearts) per second to all entities within range
30s CD
8. Hades' Bident (Sword)
CustomModelData: [assign int]
Lore: "The king of hell's punishment, revealing an aura of imminent danger."
Passive โ€” Hellfire Body: Permanent Fire Resistance while holding, re-apply every tick
Ability 1 โ€” Undead Risen (offhand key):
Summon a horde of 8 Skeletons wearing full leather armor
Skeletons are tagged as owned by the summoner via PersistentDataContainer
They fight for the summoner and despawn after 20 seconds via BukkitRunnable
200s CD
Ability 2 โ€” Flare Entrapment (crouch + offhand key):
Apply a "marked" status to the caster via PersistentDataContainer
Next hit landed by the caster on any player triggers a 5s stun (Slowness 255 + Blindness + Jump Boost 128 to prevent jumping)
Mark expires after 30s if no hit lands
120s CD
9. Demeter's Harvest Scythe (Sword)
CustomModelData: [assign int]
Lore: "The goddess of the harvest's fury, breathing life and ruin into the earth."
Passive 1 โ€” Demeter's Blessing:
Every 5 minutes, add 1x Demeter's Seed (custom item, CustomModelData [assign int]) to the player's inventory
Demeter's Seed planted on farmland via right-click grows instantly into a sacred crop (use WHEAT block at max age)
On harvesting the sacred crop, drop 10x Golden Apple + 2x Enchanted Golden Apple
Detect harvest via BlockBreakEvent, check for sacred crop tag via PersistentDataContainer on the block
Passive 2 โ€” Flourishing Fields:
Every 20 ticks scan all crop blocks within 10 blocks of the player
Advance their growth stage by 1 via Ageable#setAge() at 5x the natural rate
Ability 1 โ€” Harvest Reap (offhand key):
Enter a 10s reaping frenzy
On each kill during frenzy, add 1 Harvest Soul stack (stored in HashMap per UUID)
Each stack grants +0.5 attack damage (via Attributable) and +3% speed (recalculate and reapply SPEED modifier)
Stacks last 30s before being cleared via BukkitRunnable
90s CD
Ability 2 โ€” Seasonal Wrath (crouch + offhand key):
Cycle through 4 seasons in order per activation (store current season in HashMap per UUID)
Spring: Apply Regen 2 for 5s to all allies within 10 blocks
Summer: Set target on fire for 5s
Autumn: On next kill, drop 5 random food items at kill location
Winter: Apply Wither 2 + Slowness 3 to target for 5s
Display current season on action bar on activation
60s CD
10. Hera's Sovereign Scepter (Sword)
CustomModelData: [assign int]
Lore: "The queen of Olympus's authority, binding all who stand before her to her will."
Passive โ€” Queen's Court:
Every 20 ticks, apply Resistance 1 to all allies within 10 blocks (re-apply constantly so it never expires)
Ability 1 โ€” Binding Vow (offhand key):
Activate to enter "binding mode" โ€” next player hit is bound to the caster for 60s
Store bound pair in HashMap
While bound: 25% of all damage the caster receives is also dealt to the bound target via LivingEntity#damage()
Apply Slowness 2 to bound target for full 60s duration
120s CD
Ability 2 โ€” Royal Decree (crouch + offhand key):
Deal 24 damage (12 hearts) to target, bypassing armor via direct health subtraction
Check if target has dealt damage to caster within the last 10s (track via HashMap with timestamp)
If yes: deal an additional 16 damage (8 hearts) on top as reflected punishment
110s CD
CUSTOM INGREDIENT ITEMS:
Dragon Heart
Obtained by: killing the Ender Dragon (100% drop, only drops once per dragon kill)
Item: NETHER_STAR with CustomModelData [assign int]
Lore: "The still-warm heart of a slain dragon. It pulses with ancient draconic energy."
Name color: Red
Fleeting Feather
Item: FEATHER with CustomModelData [assign int]
Lore: "A feather that hums with the energy of the night sky. It feels impossibly light."
Obtained by:
45% drop from the Griffin custom boss (see Griffin Boss section)
Warden's Soul
Item: ECHO_SHARD with CustomModelData [assign int]
Lore: "The essence of a creature that has never seen light. It radiates pure sonic darkness."
Obtained by: crafting a Soul Box then using it to spawn and kill a Warden
Soul Box Recipe (Vanilla shaped crafting table recipe):
Code
Right-clicking a Soul Box spawns a Warden at the player's location
On Warden death, guaranteed drop of 1x Warden's Soul
Soul Box is a custom item with CustomModelData [assign int]
Identify via PersistentDataContainer key on right-click
Primordial Chaos Shard
Item: PRISMARINE_SHARD with CustomModelData [assign int]
Lore: "A fragment of something that should not exist."
Obtained by:
25% chance drop from killing the Wither
5% chance drop from killing a player who has the Crawling Chaos equipped at time of death
Found in Ancient City chests (10% chance via ChestLootGenerateEvent)
Chronos' Lost Fragment
Item: CLOCK with CustomModelData [assign int]
Lore: "A shard of time itself, broken off from the fabric of reality. It ticks backwards."
Obtained by:
Hidden in the center of the Chronos' Trial Structure (see custom structures section)
5% chance from killing another player while they are mid ritual at an altar
Found in End City chests (8% chance via ChestLootGenerateEvent)
Solar Ember
Item: BLAZE_POWDER with CustomModelData [assign int]
Lore: "A fragment of a dying star, compressed into physical form. Handle with care."
Obtained by: crafting only โ€” shaped recipe:
Code
(Ancient Debris in the middle column, Blaze Rods on the sides)
Storm Core
Item: BREEZE_ROD with CustomModelData [assign int]
Lore: "The compressed breath of a storm god. It crackles with restless energy."
Obtained by: found inside the Storm Shrine custom structure (see custom structures section)
Feral Claw
Item: RABBIT_FOOT with CustomModelData [assign int]
Lore: "A claw torn from something ancient and hungry."
Obtained by:
Use a Brush on Suspicious Sand or Suspicious Gravel blocks found inside Fossil structures โ€” 20% chance per brush to yield a Feral Claw
Implement via PlayerInteractEvent โ€” detect brushing action on suspicious blocks tagged near a fossil structure, run probability check, drop item at block location
Hellfire
Item: BLAZE_ROD with CustomModelData [assign int]
Lore: "Born in the deepest fires. Only obtainable by those who burn alongside it."
Obtained by:
Kill a Blaze while the player is standing in lava โ€” 25% chance
Detect via EntityDeathEvent, check killer is a player, check player is in lava via player.isInLava()
CUSTOM STRUCTURES:
Chronos' Trial Structure
A dangerous dungeon-style structure that generates rarely in the overworld or is admin-spawnable via /structure spawn chronos
Trial Chamber-inspired layout โ€” multiple rooms with mob spawners, traps, and narrowing corridors
Mob spawners inside use: Endermen, Strays, Phantoms, and a custom Griffin Boss that patrols the outer perimeter
At the very center of the structure is a locked chest containing 1x Chronos' Lost Fragment
Chest is sealed โ€” can only be opened after all mobs in the structure are dead (track via a counter stored in a nearby PersistentDataContainer-tagged block)
Structure generates with stone brick, deepslate, and obsidian
Griffin Boss patrols outside โ€” must be killed before the inner chest unlocks
Griffin Boss (Custom mob guardian of Chronos' Structure)
Base mob: PHANTOM with scaled health of 100 HP (50 hearts)
Custom name: Griffin displayed in gold
Patrols the outer perimeter of Chronos' Structure
On death: 45% chance to drop 1x Fleeting Feather
Attacks:
Swooping dive: charge toward player at high speed using velocity manipulation
Sonic screech: apply Slowness 2 + Blindness to all players within 8 blocks every 30s
Implement AI via BukkitRunnable โ€” every 20 ticks update velocity toward nearest player if within 40 blocks
Emit golden particle trail during flight (CRIT + END_ROD particles)
Has a boss bar visible to all players on the server showing its HP
Storm Shrine Structure
A small outdoor stone structure that generates in plains, savanna, or mountain biomes or is admin-spawnable via /structure spawn stormshrine
Built from polished granite, stone slabs, and lightning rods placed at the corners
A permanent custom storm weather effect surrounds the shrine โ€” trigger lightning strikes around it every 60โ€“120 seconds via World#strikeLightning()
Spawn Breeze mobs around the shrine as guardians
At the center is a chest containing 1x Storm Core
Chest respawns its contents every 7 in-game days (track last loot time in YAML per structure location)
ALTAR SYSTEM:
Altar Structure:
Altar is a pedestal-style structure using CHISELED_STONE_BRICKS and STONE_BRICK_SLAB
Admin command: /altar spawn  โ€” places the altar at the target block location
Admin command: /altar remove โ€” removes the nearest altar within 5 blocks
Requires permission node godplugin.altar.admin (OP by default)
When idle, the altar floats and rotates the result item above it using an ItemDisplay entity
Required ingredients displayed as floating hologram text above the altar using TextDisplay entities, one ingredient per line
Highlight custom items in unique colors (Dragon Heart = red, Warden's Soul = dark green, Fleeting Feather = aqua, Primordial Chaos Shard = dark purple, Chronos' Lost Fragment = gold, Solar Ember = orange, Storm Core = yellow, Feral Claw = dark red, Hellfire = dark orange)
The altar is completely indestructible โ€” cancel BlockBreakEvent, EntityExplodeEvent, BlockExplodeEvent, PlayerBucketEmptyEvent, BlockPistonExtendEvent, and BlockPistonRetractEvent at all altar block locations. Store all altar block locations in YAML and check against every destructive event
Ritual Mechanic:
Player right-clicks the altar while carrying all required ingredients in their inventory
If all items are present, consume them immediately and start the 15 minute ritual
On ritual start, broadcast to the entire server: [โš— Ritual]  has begun a ritual for ! The altar pulses with divine energy... (gold color)
On ritual completion, broadcast to entire server: [โš— Ritual] 's ritual is complete!  has manifested at the altar! (yellow color)
If the crafter dies mid ritual, broadcast to entire server: [โš— Ritual]  has fallen! The ritual continues... will anyone claim ? (red color)
A boss bar is visible to ALL online players server-wide showing ritual owner name + progress percentage โ€” add every online player on ritual start, add new players who join mid-ritual via PlayerJoinEvent, remove boss bar from all players on ritual end
Altar emits constant themed particles and ambient sounds during ritual
After 15 minutes the result item physically drops on top of the altar โ€” first player to pick it up gets it
If the crafter dies, the ritual continues โ€” anyone can steal the drop
The altar cannot be destroyed by any means โ€” see indestructible rules above
Only one ritual can run per altar at a time
Ritual progress stored in persistent YAML so it survives server restarts
ALTAR RECIPES:
1. Amaterasu
1x Dragon Heart
1x Solar Ember
64x Blaze Rods
32x Fire Charge
16x Magma Blocks
8x Nether Stars
3x Enchanted Golden Apple

2. Aeolus' Mace
1x Storm Core
1x Heavy Core
32x Breeze Rods
16x Gold Blocks
8x Emerald Blocks
3x Nether Stars
32x Wind Charges

3. Clawfang
1x Warden's Soul
1x Feral Claw
32x Rotten Flesh
16x Prismarine Shards
8x Emerald Blocks
2x Nether Stars
3x Totem of Undying

4. The Crawling Chaos
1x Primordial Chaos Shard
1x Warden's Soul
32x Obsidian
16x Crying Obsidian
8x Nether Stars
64x Ender Pearls
4x Wither Skeleton Skulls

5. Hermes Boots
1x Fleeting Feather
128x Feathers
4x Netherite Ingots
64x Glowstone
1x Diamond Boots
128x Wind Charges
64x Breeze Rods
64x Quartz Blocks
64x Iron Blocks

6. Chronos Wings
1x Dragon Heart
1x Chronos' Lost Fragment
3x Elytras
3x Nether Stars
64x Clocks

7. Khonshu
1x Warden's Soul
1x Primordial Chaos Shard
32x Lapis Blocks
64x Crying Obsidian
16x Prismarine Blocks
8x Nether Stars
32x Echo Shards

8. Hades' Bident
1x Hellfire
1x Warden's Soul
32x Magma Blocks
64x Soul Sand
16x Nether Bricks
3x Nether Stars
4x Wither Skeleton Skulls
32x Blaze Rods
16x Crying Obsidian

9. Demeter's Harvest Scythe
1x Feral Claw
1x Storm Core
64x Wheat
32x Emerald Blocks
16x Gold Blocks
3x Nether Stars
32x Bone Meal
16x Enchanted Golden Apple
64x Hay Bales
10. Hera's Sovereign Scepter

1x Primordial Chaos Shard
32x Gold Blocks
16x Emerald Blocks
8x Nether Stars
4x Enchanted Golden Apple
32x Amethyst Blocks
16x Crying Obsidian
2x Wither Skeleton Skulls
PLUGIN STRUCTURE:
Code
IMPLEMENTATION NOTES:
Use EntityDamageByEntityEvent for hit detection and stun passives
Use PlayerSwapHandItemsEvent for all ability triggers โ€” check player.isSneaking() to split Ability 1 vs Ability 2
Chronos Wings elytra+chestplate hybrid: enforce item in chest slot, apply netherite armor attribute modifiers manually via Attributable#getAttribute, enable gliding via metadata
Crescent projectile shape: curved arc of particles using trigonometric offset to simulate crescent silhouette, chained BukkitRunnable for sequencing
Time Ray charge: BukkitRunnable with 60 tick delay, cancel on PlayerMoveEvent or damage event during charge window
Armor bypass damage: use LivingEntity#setHealth() direct subtraction instead of entity.damage()
Mob disguise (Crawling Chaos): store kill history per UUID in persistent YAML, render disguise using DisguiseAPI from LibsDisguises
Soul Box right-click: detect via PersistentDataContainer tag, spawn Warden at player location, guarantee Warden's Soul drop on death via EntityDeathEvent
Feral Claw brushing: detect PlayerInteractEvent on Suspicious Sand/Gravel near fossil structures, run 20% probability check, drop item
Hellfire drop: EntityDeathEvent on Blaze, check player.isInLava(), 25% chance drop
Griffin Boss AI: BukkitRunnable every 20 ticks, update velocity toward nearest player within 40 blocks, screech AOE every 30s
Griffin boss bar: Bukkit.createBossBar() visible to all online players, updated with current HP percentage
Storm Shrine lightning: BukkitRunnable firing World#strikeLightning() at random nearby locations every 60โ€“120 seconds
Structure chest respawn: store last loot timestamp per structure location in YAML, check on PlayerInteractEvent with chest
Custom loot injection: use ChestLootGenerateEvent for Ancient City and End City chest drops
Altar indestructible: store all altar block locations in YAML on spawn, cancel BlockBreakEvent, EntityExplodeEvent, BlockExplodeEvent, PlayerBucketEmptyEvent, BlockPistonExtendEvent, BlockPistonRetractEvent if the block location matches any stored altar location
Altar visuals: ArmorStand + ItemDisplay + TextDisplay entities โ€” store all altar entity UUIDs in YAML
Ritual persistence: save ritual start time, owner UUID, altar location, and item target to YAML โ€” restore on server restart via onEnable()
Ritual boss bar: Bukkit.createBossBar() โ€” add ALL online players on ritual start, add joining players via PlayerJoinEvent, remove from all players on ritual end
Ritual chat broadcasts: use Bukkit.broadcastMessage() with color codes for start, death, and completion announcements
Hera Binding Vow: store bound pairs in HashMap, on EntityDamageEvent to caster check for bound target and redirect 25% damage
Hera Royal Decree: store last hit timestamps in HashMap, check if target UUID hit caster within last 10s on ability use
Demeter Harvest Reap stacks: store stack count + expiry time per UUID in HashMap, recalculate and reapply attack damage + speed attribute modifiers on each stack change
Demeter Sacred Crop: tag farmland block on seed placement via PersistentDataContainer, detect harvest via BlockBreakEvent, drop custom reward items
Demeter Seasonal Wrath: store current season index per UUID in HashMap, cycle 0โ†’1โ†’2โ†’3โ†’0 on each activation
Hades skeleton ownership: tag each summoned skeleton with summoner UUID via PersistentDataContainer, prevent them from targeting the summoner via EntityTargetEvent
All custom items identified via PersistentDataContainer keys โ€” never rely on item name or lore for identification
Version gate in onEnable(): parse Bukkit.getBukkitVersion() and disable plugin with logger warning if outside 1.21.4โ€“1.21.11




+


Add a /trust system 
Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code