You are a senior Minecraft Java developer specialising in hi...
Prompt
You are a senior Minecraft Java developer specialising in high-quality, production-ready Minecraft plugins and mods. Your task is to design and implement a complete Minecraft plugin called **Riftbound**. This is not a conceptual exercise. I expect working, compilable code with proper architecture, not pseudocode, placeholders, TODOs or incomplete implementations. ## 1. Technical requirements - Platform: Paper - Minecraft version: 1.21.11 - Java: 21 - Build system: Gradle - Main language: Java - Use modern Paper APIs wherever possible. - Avoid NMS and reflection unless absolutely necessary. - All gameplay systems must be modular. - Use appropriate design patterns without unnecessarily overengineering. - Persist important player data across server restarts. ## 2. Core concept Riftbound is an RPG progression plugin built around magical abilities, custom equipment, enemy encounters and a dimensional progression system. Players discover ancient Rifts throughout the world. Entering a Rift triggers a custom encounter with waves of enemies, environmental effects and a final boss. Players earn Rift Essence, unlock abilities, improve equipment and gradually access more difficult dimensions. ## 3. Required systems ### A. Custom ability system Implement at least SIX unique abilities: 1. Void Dash — rapidly moves the player forward. 2. Gravity Well — pulls nearby mobs towards a central point. 3. Soul Drain — damages an enemy and restores some health. 4. Rift Explosion — creates an area-of-effect explosion. 5. Temporal Shift — temporarily increases movement speed. 6. Arcane Shield — absorbs a configurable amount of incoming damage. Requirements: - Individual cooldowns. - Configurable damage and durations. - Custom particles and sounds. - Proper cooldown tracking. - Persistent ability unlocks. - Prevent exploits involving ability spam. - Handle player deaths, disconnects and world changes correctly. ### B. Custom equipment Create a custom equipment system featuring: - Riftblade - Void Staff - Chrono Armour - Soul Pendant Each item must have: - Unique identification independent of its display name. - Custom attributes. - Rarity. - Configurable abilities or passive effects. - Proper serialization and persistence. - Protection against players spoofing custom items with anvils, renaming or crafting. ### C. Rift encounter system Implement a complete Rift encounter: 1. Players activate a Rift. 2. The system generates an encounter instance. 3. Waves of enemies spawn. 4. Each wave increases in difficulty. 5. A final boss appears. 6. Defeating the boss rewards players. 7. The Rift closes and cleans up its entities and temporary resources. Requirements: - Multiple players can participate. - Independent encounters can run simultaneously. - Players cannot exploit rewards by repeatedly joining and leaving. - Encounters must clean up correctly after crashes or restarts. - Boss health and damage must scale with participant count. ### D. Boss AI Create a boss called The Hollow King. It must have: - A custom health system. - Three combat phases. - At least four distinct attacks. - Phase transitions based on health percentages. - Attack cooldowns. - Target selection. - Custom animations/effects using particles and sounds. - Proper cleanup when killed or unloaded. The boss should not simply be a vanilla mob with increased health. ### E. Progression system Implement: - Player levels. - Experience. - Rift Essence currency. - Ability unlocks. - Equipment progression. - Persistent player statistics. - Configurable progression curves. Prevent negative balances, duplicate rewards and concurrent data corruption. ### F. GUI system Create functional inventory-based menus for: - Player statistics. - Ability selection. - Equipment management. - Rift selection. - Progression upgrades. Requirements: - Pagination. - Click validation. - Prevent item extraction. - Handle inventory closing and reopening. - Update displayed information dynamically. - Do not rely on inventory display names alone to identify menus. ## 4. Configuration Everything reasonably configurable must be configurable. Provide: - config.yml - abilities.yml - bosses.yml - equipment.yml - rifts.yml - messages.yml Include sensible defaults and comments explaining important settings. Changing configuration must not require modifying Java source code. ## 5. Commands and permissions Implement: /rift /rift stats /rift abilities /rift equipment /rift essence /rift reload /rift admin give /rift admin spawn /rift admin reset Include tab completion, permission checks, argument validation and useful error messages. ## 6. Technical quality requirements This is where I will evaluate your actual engineering ability. You MUST: - Use a clean package structure. - Separate business logic from Bukkit/Paper event listeners. - Avoid giant manager classes. - Avoid static mutable global state. - Prevent memory leaks. - Avoid unnecessary synchronous database operations. - Use asynchronous database operations safely. - Never access unsafe Bukkit APIs asynchronously. - Use UUIDs instead of player names for persistent identity. - Handle offline players. - Handle plugin shutdown cleanly. - Handle missing or corrupted player data. - Validate all player inputs. - Avoid unnecessary entity and particle spawning. - Use efficient spatial lookups. - Ensure scheduled tasks are cancelled appropriately. - Make the plugin compatible with server restarts. ## 7. Persistence Use SQLite. Implement: - Database initialization. - Schema management. - Player data storage. - Ability unlock persistence. - Equipment progression persistence. - Transaction safety. - Connection management. - Graceful error handling. Do not save player data exclusively in memory. ## 8. Deliverables Produce: 1. Complete Gradle project structure. 2. build.gradle. 3. settings.gradle. 4. plugin.yml. 5. All Java source files. 6. All configuration files. 7. SQLite schema. 8. Installation instructions. 9. Build instructions. 10. Testing instructions. Every class must contain its complete implementation. Do not omit files with comments such as "implement this yourself". ## 9. Development workflow Work in the following order: **Phase 1:** Explain the architecture, package structure and data flow. **Phase 2:** Implement the core plugin and persistence layer. **Phase 3:** Implement abilities and custom equipment. **Phase 4:** Implement Rift encounters and boss AI. **Phase 5:** Implement progression and GUI systems. **Phase 6:** Implement commands, permissions and configuration. **Phase 7:** Review the entire project for compilation errors, API incompatibilities, exploits, performance issues and logical bugs. **Phase 8:** Build and test the finished project. Fix all discovered errors. Do not claim that code compiles or tests pass unless you actually execute the relevant build or tests. If you cannot complete the entire project in one response, work in clearly defined stages. Preserve consistency between all files and never silently omit functionality. ## 10. Final evaluation At the end, provide: - A feature completion checklist. - Any known limitations. - Build/test results. - Security and exploit analysis. - Performance analysis. - A list of all implemented classes and their responsibilities. **Important:** I am evaluating your ability to produce an actual working Minecraft plugin, not your ability to describe one. Prioritise correctness, completeness, maintainability and real implementation over impressive explanations.
Response not available
Response not available
Response not available