PROJECT: GRAVECRAFT
Professional Minecraft Corpse System Plugin
Act as a senior Minecraft plugin developer, Java engineer, and Paper API specialist.
Your task is to design and develop a professional Minecraft server plugin named GraveCraft.
The plugin must introduce a realistic corpse system where mobs leave behind visually convincing bodies after death.
IMPORTANT: Do not create a basic armor-stand-only plugin. Prioritize realistic mob appearances, original mob textures, custom poses, reliable interactions, and server performance.
- SERVER COMPATIBILITY
Primary development environment:
- Minecraft Paper 1.21.11
- Java Edition
- Java development language
Compatibility goal:
- Minecraft 1.21 and later
- Through Minecraft 26.3
Requirements:
- Verify compatibility against actual server API versions.
- Use version-specific adapters when necessary.
- Avoid unnecessary NMS dependencies.
- Keep the main plugin architecture independent of version-specific code.
- Provide clear compatibility documentation.
- Never claim a version is supported unless tested.
- MOB CORPSE SYSTEM
Support all available living mob types, including:
- Villagers
- Wandering Traders
- Skeletons
- Wither Skeletons
- Strays
- Zombies
- Husks
- Drowned
- Creepers
- Spiders
- Cave Spiders
- Endermen
- Pillagers
- Vindicators
- Evokers
- Witches
- Animals
- Other supported living entities
Requirements:
- Automatically detect mob deaths.
- Create a corpse at the death location.
- Preserve the original mob appearance wherever technically possible.
- Preserve relevant entity characteristics.
- Support different corpse poses.
- Support mob-specific visual behavior.
- Handle unusual entities gracefully.
- REALISTIC CORPSE APPEARANCE
The corpse should look like the original mob lying on the ground.
Requirements:
- Original mob textures and appearance.
- Realistic lying-down position.
- Adjustable body rotation.
- Adjustable corpse positioning.
- Custom animation support where technically feasible.
- Different poses for different mob categories.
- No visible armor-stand equipment or floating-name artifacts.
- Configurable visual effects.
Do not substitute every corpse with a generic skeleton model.
- CORPSE INTERACTION
Each corpse must support:
- Right-click interaction.
- Searching corpses.
- Loot inspection.
- Configurable inventory contents.
- Optional corpse protection.
- Configurable interaction permissions.
- Configurable search cooldown.
- Prevention of duplicate loot collection.
Players must not be able to duplicate corpse loot through repeated clicks, reconnects, or server restarts.
- CORPSE LIFETIME
Default behavior:
- Corpses never automatically despawn.
Configuration must support:
- Permanent corpses.
- Timed despawning.
- Manual removal.
- Admin cleanup.
- Persistent storage across server restarts.
- ADMIN COMMANDS
Design a professional command system.
Suggested commands:
/gravecraft help /gravecraft reload /gravecraft spawn <mob> /gravecraft remove /gravecraft removeall /gravecraft list /gravecraft inspect /gravecraft version
Requirements:
- Tab completion.
- Clear error messages.
- Permission checks.
- Console compatibility where appropriate.
- Safe command execution.
- Never allow unauthorized players to manipulate corpses.
- PERMISSIONS
Create permissions such as:
gravecraft.admin gravecraft.spawn gravecraft.remove gravecraft.reload gravecraft.search gravecraft.inspect
Use least-privilege permission defaults.
- PARTICLE AND EFFECT SYSTEM
Add configurable:
- Death particles.
- Corpse appearance particles.
- Search interaction particles.
- Optional sound effects.
- Different effect profiles for different mob categories.
All effects must be optional and configurable.
- CONFIGURATION
Create a clean configuration system.
Required files:
config.yml messages.yml corpses.yml loot.yml permissions.yml
Allow administrators to configure:
- Enabled mob types.
- Automatic corpse generation.
- Corpse appearance.
- Corpse poses.
- Despawn behavior.
- Loot generation.
- Search interactions.
- Particle effects.
- Sound effects.
- Maximum corpse count.
- World exclusions.
- Permission requirements.
Include comments and useful default values.
- DATA PERSISTENCE
Implement reliable persistent storage.
Requirements:
- Save corpse information.
- Restore corpses after server restarts.
- Preserve corpse locations.
- Preserve corpse contents.
- Prevent duplicate records.
- Handle deleted worlds safely.
- Handle unloaded chunks safely.
- Provide cleanup and data migration mechanisms.
Use SQLite or another appropriate persistent storage solution.
- PERFORMANCE AND SECURITY
The plugin must:
- Avoid unnecessary repeating tasks.
- Avoid expensive entity scans.
- Use efficient corpse tracking.
- Prevent duplicate corpse generation.
- Handle large numbers of corpses.
- Avoid memory leaks.
- Validate all user input.
- Protect against inventory duplication.
- Handle chunk loading and unloading correctly.
- Provide configurable limits.
- PROJECT ARCHITECTURE
Use a modular architecture:
com.gravecraft GraveCraft.java commands/ listeners/ corpse/ corpse/appearance/ corpse/interaction/ corpse/loot/ storage/ configuration/ compatibility/ particles/ utilities/
Use interfaces for appearance providers and version adapters.
Keep the plugin maintainable and extensible.
- TESTING REQUIREMENTS
Test:
- Every supported mob category.
- Automatic corpse generation.
- Manual corpse spawning.
- Searching and looting.
- Inventory duplication prevention.
- Server restarts.
- Chunk unloading and reloading.
- Multiple simultaneous corpses.
- Permission restrictions.
- Version compatibility.
Provide a compatibility test matrix.
- DEVELOPMENT DELIVERABLES
Deliver:
- Complete Gradle or Maven project.
- Complete Java source code.
- plugin.yml.
- All configuration files.
- SQLite storage implementation.
- Commands and permissions.
- Build instructions.
- Installation instructions.
- Testing instructions.
- README documentation.
Do not provide incomplete placeholder methods or pretend unimplemented features work.
Build the project in stages. First explain the architecture and technical limitations, then implement the foundation, then the corpse appearance system, interactions, storage, and testing.
Do not sacrifice compatibility or stability for visual effects.
FINAL GOAL:
Create GraveCraft, a professional, configurable, realistic Minecraft corpse plugin suitable for public SMP servers and cinematic Minecraft content creation.
I’ve started the GraveCraft foundation: project setup, configuration, permissions, commands, and architecture documentation.
A key limitation: Paper’s API does not generally allow arbitrary mob models to lie down with their original textures and custom poses. The appearance system will need to document those limits and avoid claiming untested version support.
No files in this session