π
pasted-code-1791381598622.txt
txt
809 lines
βΆ
# THE ELEMENTAL AGE β MASTER IMPLEMENTATION PROMPT
Build, repair, and finish the entire Minecraft Paper RPG/SMP project already in this workspace. This prompt supersedes previous implementation instructions. **Do not remove existing working features. Audit them, repair broken systems, then integrate everything below into one consistent game.**
Target current compatible Paper API + Java 25 + Gradle + SQLite + Adventure API + PersistentDataContainer + UUIDs. Use modern APIs, avoid NMS where possible, and compile/test the real project. The final deliverable is a working **plugin + custom resource pack + custom structures + custom models/textures/fonts/sounds + GUIs + admin control center**.
## CORE WORLD RULES
There are exactly 20 normal elements, one owner per element:
FIRE, WATER, NATURE, AIR, EARTH, LIGHTNING, METAL, SHADOW, ICE, MAGMA, CRYSTAL, POISON, LIGHT, GRAVITY, TIME, SOUND, BLOOD, SPIRIT, COSMIC, PLASMA.
Maximum normal elemental owners = 20. A player may have zero or one normal element. No duplicate element ownership, no element trading, cloning, transferring, rerolling, or second element.
New eligible players enter a dark **Element Chamber**, see all unclaimed/claimed elements, and choose exactly one available element after confirmation. Element display order/positions are randomized, not the player's final element. Claimed elements remain visible but locked.
The chamber is fully protected: no void/fall/fire/lava/drowning/suffocation/hunger/PvP/mob damage; no building, breaking, dropping, pickup, or container abuse. Players cannot escape except admins with bypass permission.
After selection, the player enters normal survival.
## PROGRESSION
Each element has:
Level 1 β Awakened
Level 2 β Developed
Level 3 β Mastered
Level 4 β Fully Formed
Default progression thresholds: 25 / 75 / 150 total progression points.
Every element has unique abilities, ultimate, forbidden ability, skill tree, augments, weaknesses/counters, questline, shrine, dungeon, boss, pet family, sword, materials, relics, faction, lore, world event, cosmetic identity, and resource-pack assets.
Level 4 means fully maxed for Void-rItual eligibility: required core abilities, Level 4 sword, required mastery, and all mandatory progression objectives completed.
Death, logout, restart, crash, and world reload never reset legitimate progression.
## POINT SYSTEM β MANDATORY
Create a separate persistent currency called:
# ELEMENT POINTS
Do NOT confuse Element Points with progression XP, Mastery XP, Discovery XP, money, or reputation.
Every player's Element Points are stored persistently.
Display them in:
`/element`
`/element points`
`/element redeem`
and a dedicated GUI.
### Point Sources
Players can earn Element Points from:
* elemental bosses
* Mythic bosses
* raids
* dungeons
* quests
* daily/weekly tasks
* shrines
* trials
* exploration milestones
* world events
* Blood Moon activities
* PvP
* bounties
* achievements
* secret discoveries
* pet milestones
* challenge modes
### BOSS POINT EARNING
Bosses MUST award Element Points.
Default example values:
Wither: 100
Elder Guardian: 75
Warden: 150
Ender Dragon: 250
Core elemental bosses: 150β400 depending on difficulty.
Mythic bosses: 300β800.
Void bosses: 500β1500.
Final raid: 1000+.
Values are configurable.
### CONTRIBUTION-BASED BOSS POINTS
Do NOT give all boss points to everyone online.
Each boss encounter records:
* encounter UUID
* participants
* damage
* healing
* support
* mechanics completed
* survival
* contribution score
Distribute the boss's available Element Points according to legitimate contribution, with configurable minimum contribution.
Example:
Boss reward pool = 300 Element Points.
A = 50% contribution β 150 points.
B = 30% β 90 points.
C = 20% β 60 points.
Set minimum contribution thresholds to stop AFK farming.
Do not award players who merely stand nearby.
Prevent double rewards if the boss dies, server restarts, or a reward process is repeated.
### PvP POINTS
Default valid player kill = 25 Element Points plus normal progression reward.
Use anti-farm controls:
* same victim full reward once per configurable period
* diminishing rewards
* daily caps
* repeated-kill detection
* self-kill protection
* alt-account abuse detection where reasonably possible
### POINT LEDGER
Every earning/spending event must have a unique transaction UUID and store:
* player UUID
* transaction UUID
* amount
* source/type
* source ID/encounter ID
* timestamp
* balance after transaction
* success/failure state
Never directly modify balance without recording a transaction.
### REDEEMING POINTS
Create a full **Element Point Redemption System**.
Commands:
`/element points`
`/element redeem`
`/element shop`
GUI categories:
* Ability Enhancements
* Skill Tree Respecs
* Relic Materials
* Pet Items
* Pet XP Items
* Boss Keys
* Dungeon Keys
* Elemental Materials
* Cosmetics
* Titles
* Sword Cosmetics
* Particle Effects
* Emotes
* Lore Items
* Challenge Tickets
* Event Tickets
* Crafting Materials
* Shrine Items
* Utility Items
Optional higher-tier redemption rewards may include controlled progression items, but **never allow purchasing elemental ownership or Void ownership**.
Every redemption is atomic:
verify balance β reserve cost β grant item/reward β commit transaction.
If reward delivery fails, refund safely.
Prevent double-click duplication, reconnect duplication, crash duplication, GUI spoofing, hopper exploits, and negative balances.
Allow configurable daily/weekly redemption limits for rare rewards.
Admins can create, disable, edit, price, and audit redemption entries.
### POINT UI
Show:
Current Points
Lifetime Earned
Lifetime Spent
Boss Earned
PvP Earned
Quest Earned
Event Earned
Top Sources
Recent Transactions
Redeemable Rewards
Locked Rewards
Cost
Requirements
## ELEMENTAL SWORDS
Every Level 4 player receives one unique custom sword. Each sword has unique texture/model/symbol/lore/sound/particles and PDC metadata:
`item_type`
`item_uuid`
`element`
`owner_uuid`
`version`
Names include:
Inferno Blade, Tidal Blade, Ancient Thornblade, Tempest Blade, Earthshatter, Thunder Blade, Titan Edge, Voidfang, Frostmourne, Magma Fang, Prism Edge, Venom Reaver, Dawnbringer, Gravitas, Chronoblade, Resonant Edge, Crimson Fang, Soulpiercer, Astral Edge, Starforged Blade.
Only the owner can activate its elemental powers. Prevent crafting copies, fake renamed items, duplication, hopper/container duplication, relog duplication, death duplication, and invalid recovery.
## PET SYSTEM
20 elemental pet families, custom eggs, rarity, traits, levels, XP, bond, mood, growth, evolution, abilities, training, expeditions, rescue missions, hideout, accessories, cosmetics, incapacitation/revival, boss interactions, secure ownership.
Rarities: Common, Rare, Epic, Legendary, Mythic.
Each pet has 1β2 traits and unique evolution forms. Pets support the owner but do not grant a second element.
## BOSS SYSTEM
Create at least one major boss for every element, plus Mythic and Void bosses.
Every boss needs:
* custom identity
* custom arena
* intro sequence
* boss bar
* multiple phases
* telegraphed attacks
* mechanics
* enrage
* contribution tracking
* point rewards
* loot
* rare weapons
* materials
* souls
* lore
* pet interactions
* death sequence
* anti-duplicate encounter/reward state
Core examples:
Inferno Lord β volcano/lava/meteor/core mechanics
Abyssal Leviathan β flooding/whirlpool/dive mechanics
Ancient Worldtree β roots/spores/corruption nodes
Tempest Titan β wind/tornado/moving platforms
Mountain Colossus β armor plates/seismic attacks
Storm Deity β pylons/electric grid
Iron Overlord β forge/magnetism/armor
Shadow Sovereign β clones/darkness/fake targets
Frost Empress β freezing/ice mirrors/blizzard
Magma Behemoth β lava/overheat/core
Crystal Archon β reflections/prism beams
Toxic Hydra β multiple heads/poison/antidote
Luminaris β light barriers/purification
Gravity Titan β gravity reversal/pull fields
Chronarch β simulated time mechanics
Sonic Warden β resonance/silence/rhythm
Blood King β life drain/blood pools
Spirit Matriarch β souls/summons
Cosmic Herald β meteors/constellations
Plasma Engine β reactor/plasma overload
## DUNGEONS + STRUCTURES
Actually create usable custom structures:
* 20 elemental shrines
* 20 main dungeons
* 20 boss arenas
* ancient temples
* secret chambers
* Convergence Forge
* Blood Moon structures
* Void Rift structures
* Void Realm
* First Void arena
* resource structures
* faction structures
Use real structure/schematic/native generation assets. Do not merely document them.
Never overwrite player builds.
## BLOOD MOON + VOID
Track actual Minecraft nights.
At Night 50:
# BLOOD MOON
The Blood Moon starts once, persists through restart, and activates ritual eligibility.
### VOID RITUAL
Requires **at least 3 fully maxed elemental players**. More may participate.
Every participant must voluntarily confirm permanent sacrifice.
They enter the custom Convergence Forge.
The ritual lasts:
# 10 REAL-TIME MINUTES
The timer only advances while every confirmed participant remains:
* alive
* connected
* in the ritual area
* within required radius
* in the correct world
* eligible
If any required participant leaves/dies/disconnects/becomes invalid:
the ritual cancels safely with **zero sacrifice**.
If 10 minutes completes:
all confirmed participants permanently lose their elemental powers.
One eligible participant becomes the first Void holder.
Each person who has never previously paid the Void health cost loses exactly 5 maximum hearts when first gaining Void.
Create exactly one:
# VOID CORE
The Void Core is physically droppable, stealable, transferable, and can fall on death.
Only the current valid holder has Void abilities.
Another player may pick it up and complete a configurable attunement sequence.
The same person must never lose another 5 hearts due to repeated Void transfers.
Previous Void holders never recover sacrificed elements.
Sacrificed elements remain permanently sacrificed unless an admin deliberately resets them.
## VOID ENDGAME
After Void awakening:
* Void Rifts
* Void corruption
* Void pets
* Void relics
* Void bosses
* Void dungeons
* Void Realm
* First Void
* final raid
* multiple endings
## ADMIN PANEL β MANDATORY
`/elementadmin` must open a complete interactive dashboard, not a simple help menu.
Home dashboard shows:
* online players
* 20 element ownership
* unclaimed elements
* sacrificed elements
* current night
* Blood Moon status
* active ritual
* ritual participants
* Void status
* Void Core holder/location/state
* active bosses
* active dungeons
* world events
* database health
* resource-pack status
* warning/error count
Admin sections:
Players
Elements
Points
Point Shop
Bosses
Pets
Dungeons
Shrines
Quests
Factions
Relics
PvP
World Events
Blood Moon
Ritual
Void
Structures
Resource Pack
Database
Logs
Validation
Repair
Configuration
Admin point controls:
* add points
* remove points
* inspect ledger
* create reward
* edit price
* disable reward
* view transactions
* refund transaction
* reset daily limit
* award boss points
* simulate encounter reward
Dangerous operations require `confirm`.
## RESOURCE PACK
Actually create:
* 20 element symbols
* 20 elemental sword textures/models
* 20 pet eggs
* evolved pet visuals
* boss icons
* boss weapon models/icons
* 20 materials
* relic icons
* GUI assets
* point icon
* redemption-shop icons
* Blood Moon icon
* ritual symbols
* Void Core
* Void symbols
* custom font
* custom sounds where practical
Use consistent dark-fantasy Minecraft pixel art. Do not leave empty placeholders and do not simply state that assets should exist.
## DATA + SECURITY
Use SQLite with migrations and transactions.
Persist:
players, elements, progression, mastery, points, point ledger, redemptions, abilities, skill trees, swords, pets, bosses, encounters, loot, dungeons, shrines, quests, contracts, factions, reputation, alignment, relics, discoveries, lore, Blood Moon, ritual, Void, Void Core, world events, resource nodes, rankings, achievements, audit logs.
Critical systems must survive:
death
disconnect
reconnect
server restart
crash
world reload
Use unique constraints for:
one normal element/player
one owner/element
one Void Core
one active Void holder
one redemption transaction
one boss reward/encounter/player where applicable
## 200 ADDITIONAL FEATURES
Implement these as integrated systems, not disconnected decorations:
1. Player profile history
2. Lifetime statistics
3. Session statistics
4. Element playtime tracking
5. Boss first-kill records
6. Dungeon first-clear records
7. First-discovery records
8. Personal milestones
9. Global milestone announcements
10. Server achievement wall
11. Element progression milestones
12. Boss mastery levels
13. Dungeon mastery levels
14. Shrine mastery
15. Pet mastery
16. Weapon mastery
17. Ability usage statistics
18. Damage statistics
19. Healing statistics
20. Support statistics
21. PvP win/loss tracking
22. Kill streak tracking
23. Death streak tracking
24. Boss streak tracking
25. Dungeon streak tracking
26. Perfect-run tracking
27. No-death challenge tracking
28. Speedrun records
29. Time-played rewards
30. Login streaks
31. Daily login rewards
32. Weekly login rewards
33. Monthly milestones
34. rotating daily quests
35. rotating weekly quests
36. rotating monthly quests
37. secret daily quests
38. hidden contracts
39. bounty boards
40. bounty streaks
41. bounty tiers
42. bounty leaderboards
43. PvP combat rating
44. arena matchmaking
45. arena spectator mode
46. arena replay statistics
47. ranked seasons
48. ranked rewards
49. rank protection
50. placement matches
51. party system
52. party leader
53. party invites
54. party chat
55. party rewards
56. party boss contribution
57. raid finder
58. dungeon matchmaking
59. dungeon ready checks
60. dungeon timers
61. dungeon checkpoints
62. dungeon revive tokens
63. dungeon bonus objectives
64. dungeon secret rooms
65. dungeon challenge modifiers
66. boss challenge modifiers
67. boss enrage variants
68. boss elemental mutations
69. boss rare phases
70. boss hidden mechanics
71. boss codex entries
72. boss trophy rooms
73. boss statue rewards
74. boss banners
75. boss title rewards
76. boss music states
77. boss arena environmental effects
78. boss weather effects
79. boss phase announcements
80. boss mechanic tutorials
81. pet naming filters
82. pet favorite system
83. pet collection journal
84. pet achievement page
85. pet feeding system
86. pet food quality
87. pet happiness
88. pet bonding events
89. pet training cooldowns
90. pet training records
91. pet expedition logs
92. pet expedition rarity
93. pet rescue tracker
94. pet evolution requirements
95. pet evolution animation
96. pet cosmetic slots
97. pet accessory inventory
98. pet storage
99. pet quick-summon
100. pet recall safety
101. elemental emotes
102. elemental gestures
103. elemental idle effects
104. elemental spawn effects
105. elemental kill effects
106. elemental level-up effects
107. elemental teleport effects
108. elemental victory effects
109. elemental defeat effects
110. elemental status icons
111. custom point currency animation
112. point gain floating text
113. point spend confirmation
114. point transaction history
115. point refund support
116. point shop search
117. point shop sorting
118. point shop rarity filters
119. point shop favorites
120. point shop purchase history
121. point shop daily limits
122. point shop weekly limits
123. point shop rotating stock
124. point shop boss-exclusive stock
125. point shop event-exclusive stock
126. point shop Mythic stock
127. point shop achievement discounts
128. point shop reputation discounts
129. point shop faction discounts
130. point shop hidden rewards
131. point shop first-purchase rewards
132. point shop loyalty rewards
133. point shop bundle rewards
134. point shop material exchange
135. point shop shard exchange
136. point shop pet item exchange
137. point shop relic exchange
138. point shop dungeon key exchange
139. point shop cosmetic exchange
140. point shop title exchange
141. point shop effect exchange
142. elemental market board
143. resource auction system
144. safe trade interface for non-elemental items
145. trade confirmation
146. trade timeout
147. trade audit log
148. trade anti-duplication
149. faction contracts
150. faction rankings
151. faction missions
152. faction rewards
153. faction shops
154. faction cosmetics
155. faction badges
156. faction territory alerts
157. territory capture timers
158. territory defense waves
159. territory resource boosts
160. territory cooldowns
161. world event calendar
162. world event discovery
163. world event contribution
164. world event leaderboards
165. world event streaks
166. world event achievements
167. weather-linked events
168. biome-linked events
169. moon-phase events
170. thunderstorm events
171. rare meteor events
172. rare crystal events
173. spirit migration events
174. temporal anomalies
175. gravity anomalies
176. cosmic starfalls
177. elemental invasions
178. elite mob patrols
179. roaming mini-bosses
180. world miniboss tracking
181. roaming merchant NPCs
182. rare traveling masters
183. secret merchant inventory
184. lore merchant
185. artifact collector NPC
186. boss trophy museum
187. elemental hall of fame
188. server chronicle wall
189. first-owner memorials
190. sacrificed-player memorials
191. Void history archive
192. Void transfer history
193. Blood Moon history
194. ritual history
195. final-ending history
196. server statistics dashboard
197. public element leaderboard
198. public boss leaderboard
199. public point leaderboard
200. public lifetime-achievement leaderboard
## QUALITY REQUIREMENTS
Do not implement these as isolated menu buttons. Each must have real backend state, validation, persistence, rewards, UI feedback, and safe failure behavior where relevant.
Every important item must use PDC metadata rather than names/lore alone.
Every critical reward must have a transaction ID.
Every boss must use encounter IDs.
Every point earn/spend action must use ledger transactions.
Every GUI click must be validated server-side.
Every temporary block/entity must be tracked and cleaned safely.
Never destroy player builds with abilities, bosses, events, structures, or dungeon mechanics unless explicitly configured.
Never use world-wide tick scans.
Never spawn unlimited particles/entities.
Never store critical state only in memory.
Never rely on client resource-pack state as gameplay authority.
Never allow negative point balances.
Never allow duplicate redemptions.
Never allow duplicate bosses rewards.
Never allow duplicate Void Cores.
Never allow duplicate elemental ownership.
Never apply the five-heart Void penalty twice to the same individual.
## FINAL VALIDATION
Before declaring completion:
1. Audit all existing code.
2. Fix compilation errors.
3. Fix runtime errors.
4. Validate every database migration.
5. Test 20 element claims.
6. Test simultaneous element claims.
7. Test Level 4.
8. Test sword creation/recovery/security.
9. Test all 20 pets.
10. Test all major bosses.
11. Test boss contribution point rewards.
12. Test point ledger.
13. Test point earning.
14. Test point spending.
15. Test purchase rollback.
16. Test duplicate redemption prevention.
17. Test daily/weekly shop limits.
18. Test Blood Moon.
19. Test 3-player ritual.
20. Test 4+ player ritual.
21. Test ritual interruption.
22. Test 10-minute completion.
23. Test sacrifice.
24. Test initial Void holder.
25. Test Void Core dropping.
26. Test Void Core transfer.
27. Test Void death.
28. Test Void crash recovery.
29. Test Void five-heart protection.
30. Test restart recovery.
31. Validate resource-pack assets.
32. Validate models.
33. Validate textures.
34. Validate font.
35. Validate sounds.
36. Validate structures.
37. Validate admin panel.
38. Validate admin permissions.
39. Validate audit logs.
40. Run a clean build and test suite.
Run the equivalent of:
`./gradlew clean build`
and:
`./gradlew test`
Fix all failures and build again.
## FINAL STANDARD
Do not report "complete" because the plugin compiles.
It is complete only when the **plugin, point economy, redemption system, 20 elements, abilities, progression, mastery, swords, pets, bosses, boss point rewards, dungeons, shrines, quests, factions, relics, PvP, world events, custom structures, custom resource pack, Blood Moon, 10-minute sacrifice ritual, droppable Void Core, Void transfer, Void endgame, GUI systems, Admin Control Center, persistence, security, recovery, and all 200 additional systems are actually connected and functional.**
Build the real project. Audit what already exists. Repair broken systems. Implement missing systems. Create the actual assets. Test every critical transaction. Do not fake completion.
Create the Paper/Java 25 scaffold and SQLite-backed element/points persistence.
Add the 20-element claim GUI, confirmation flow, and protected chamber behavior.
Add
/elementplayer status and a permission-gated/elementadmindashboard.
Created the project foundation: a Java 25 Paper plugin scaffold, SQLite-backed unique element claims and Element Points ledger, randomized 20-element selection and confirmation GUI, configured chamber protections, /element status and points commands, and a permission-gated admin overview.
The configured chamber and survival worlds must already be loaded; this does not generate worlds or custom assets. The broader requested systemsβincluding progression, point sources and redemption, bosses, pets, dungeons, resource pack, ritual/Void endgame, and the 200 additional featuresβare not implemented, so this is not complete to the promptβs final standard. I have not run the build or test suite.
package com.kodari.elementalage;
import com.kodari.elementalage.command.AdminCommand;
import com.kodari.elementalage.command.ElementCommand;
import com.kodari.elementalage.gui.ElementGuiListener;
import com.kodari.elementalage.listener.ChamberProtectionListener;
import com.kodari.elementalage.storage.Database;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.World;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
import java.sql.SQLException;
public final class ElementalAgePlugin extends JavaPlugin {
private Database database;
private ElementGuiListener elementGui;
private ChamberProtectionListener chamberProtection;
@Override
public void onEnable() {
saveDefaultConfig();
try {
database = new Database(getDataFolder().toPath().resolve("elemental-age.db").toFile());
} catch (SQLException exception) {
getLogger().severe("Could not initialize SQLite storage: " + exception.getMessage());
getServer().getPluginManager().disablePlugin(this);
return;
}
elementGui = new ElementGuiListener(this);
chamberProtection = new ChamberProtectionListener(this);
getServer().getPluginManager().registerEvents(elementGui, this);
getServer().getPluginManager().registerEvents(chamberProtection, this);
getCommand("element").setExecutor(new ElementCommand(this));
getCommand("elementadmin").setExecutor(new AdminCommand(this));
if (chamberWorld() == null) {
getLogger().warning("Configured Element Chamber world is not loaded: "
+ getConfig().getString("chamber.world", "element_chamber"));
}
if (survivalWorld() == null) {
getLogger().warning("Configured survival world is not loaded: "
+ getConfig().getString("survival-world", "world"));
}
}
@Override
public void onDisable() {
if (database != null) {
try {
database.close();
} catch (SQLException exception) {
getLogger().severe("Could not close SQLite storage: " + exception.getMessage());
}
}
}
public Database database() {
return database;
}
public ElementGuiListener elementGui() {
return elementGui;
}
public World chamberWorld() {
return getServer().getWorld(getConfig().getString("chamber.world", "element_chamber"));
}
public World survivalWorld() {
return getServer().getWorld(getConfig().getString("survival-world", "world"));
}
public void sendToSurvival(Player player) {
World world = survivalWorld();
if (world == null) {
player.sendMessage(prefix() + "&cThe configured survival world is unavailable. Contact an administrator.");
return;
}
Location spawn = world.getSpawnLocation();
chamberProtection.teleportOut(player, spawn);
}
public String prefix() {
String configured = getConfig().getString("messages.prefix", "&8[&5Elemental Age&8] ");
return ChatColor.translateAlternateColorCodes('&', configured);
}
}