๐ข TURTLESMP2
COMPLETE PRODUCTION-READY CUSTOM WEAPONS PLUGIN
Create a complete, production-ready Minecraft Paper plugin named:
TURTLESMP2
The plugin is intended for a Lifesteal/SMP server and must provide a professional custom-weapons system with abilities, cooldowns, INVENTORY GUI management, permissions, configuration, effects, and admin controls.
The implementation must be written independently from scratch.
IMPORTANT:
- Do not copy or reuse proprietary source code or bytecode from any reference plugin.
- Do not decompile and paste classes from another plugin.
- Do not require another plugin's JAR at runtime.
- Do not provide pseudo-code.
- Do not provide TODOs.
- Do not provide incomplete classes.
- Every feature must be fully implemented and compilable.
==================================================
๐ฆ PROJECT DETAILS
==================================================
PLUGIN NAME:
TURTLESMP2
JAR NAME:
TURTLESMP2.jar
VERSION: 1.0.0
PLATFORM:
Paper 1.21.x
JAVA: 21
BUILD SYSTEM:
Maven
MAIN CLASS: org.Crimsonsmp.turtlesmp2.TurtleSmp2
PACKAGE: org.Crimsonsmp.turtlesmp2
==================================================
โ๏ธ CUSTOM WEAPONS
==================================================
Create exactly these four custom weapons:
- โ๏ธ TITAN BLADE
- ๐ฅ FIRE BLADE
- ๐ข TURTLEMACE
- ๐น AUTO BOW
Do NOT create a weapon named:
HAMMER
The word Hammer must not appear as a weapon name, INVENTORY GUI item, configuration key, class name, or weapon identifier.
==================================================
๐ข TURTLEMACE
==================================================
Weapon:
TURTLEMACE
Material:
MACE
PersistentDataContainer ID:
turtlesmp2_weapon = turtlemace
Display name:
&b๐ข TURTLEMACE
Requirements:
- Powerful custom melee weapon
- Special ability
- Configurable damage
- Configurable knockback
- Configurable cooldown
- Impact particles
- Impact sounds
- Player support
- Mob support
- Unique PersistentDataContainer identification
- No activation from normal MACE items
The weapon must actually function in gameplay.
==================================================
โ๏ธ TITAN BLADE
==================================================
Weapon:
TITAN BLADE
Material:
NETHERITE_SWORD
PersistentDataContainer ID:
turtlesmp2_weapon = titan_blade
Requirements:
- Powerful custom ability
- Configurable damage
- Configurable knockback
- Particles
- Sounds
- Cooldown
- Player support
- Mob support
- Custom lore
- Custom display name
Normal Netherite Swords must remain unaffected.
==================================================
๐ฅ FIRE BLADE
==================================================
Weapon:
FIRE BLADE
Material:
NETHERITE_SWORD
PersistentDataContainer ID:
turtlesmp2_weapon = fire_blade
Requirements:
- Fire-based ability
- Fire particles
- Smoke particles
- Fire sound
- Configurable damage
- Configurable fire duration
- Configurable cooldown
- Player support
- Mob support
- Custom lore
- Custom display name
Normal Netherite Swords must remain unaffected.
==================================================
๐น AUTO BOW
==================================================
Weapon:
AUTO BOW
Material:
BOW
PersistentDataContainer ID:
turtlesmp2_weapon = auto_bow
Requirements:
- Custom shooting system
- Projectile event handling
- Configurable damage
- Configurable cooldown
- Projectile effects
- Sound effects
- Particle effects
- Player support
- Mob support
- Custom display name
- Custom lore
Normal Minecraft bows must continue working normally.
==================================================
๐งฌ ITEM IDENTIFICATION
==================================================
Use Bukkit/Paper:
PersistentDataContainer
Namespace:
turtlesmp2
Every custom weapon must contain a unique identifier.
Example:
turtlesmp2_weapon: titan_blade turtlesmp2_weapon: fire_blade turtlesmp2_weapon: turtlemace turtlesmp2_weapon: auto_bow
Never identify weapons only using:
Renaming a normal item must NOT turn it into a custom weapon.
==================================================
๐ฎ ABILITY SYSTEM
==================================================
Create a reusable ability framework.
Support:
- Right-click
- Shift + Right-click
- Left-click when required
- Entity hit
- Projectile hit
- Ability activation
- Cooldown checking
- Damage
- Knockback
- Particles
- Sounds
- Potion/status effects where required
Prevent abilities from triggering accidentally on unrelated items.
==================================================
โฑ๏ธ COOLDOWN SYSTEM
==================================================
Create a centralized:
CooldownManager
Requirements:
- Per-player cooldowns
- Per-weapon cooldowns
- Per-ability cooldowns
- Configurable duration
- Remaining cooldown calculation
- Cooldown prevention
- Action-bar feedback
- Automatic cleanup
- No memory leaks
Example:
&cAbility is on cooldown! &7Wait &e%seconds%s
==================================================
๐ COOLDOWN RESET
==================================================
Command:
/rc
Permission:
turtlesmp2.rc
Default:
OP
Function:
Reset the cooldown of the custom weapon currently held by the player.
Requirements:
- Detect current item
- Verify PersistentDataContainer
- Reset correct weapon cooldown
- Send success message
- Show error if no supported weapon is held
- Do not reset unrelated cooldowns
==================================================
๐ฅ๏ธ ADMIN WEAPON INVENTORY GUI
==================================================
Command:
/turtlesmp2
Permission:
turtlesmp2.admin
Default:
OP
Open an administrator weapon INVENTORY GUI.
INVENTORY GUI must contain exactly:
โ๏ธ TITAN BLADE ๐ฅ FIRE BLADE ๐ข TURTLEMACE ๐น AUTO BOW
Requirements:
- Configurable INVENTORY GUI title
- Configurable INVENTORY GUI size
- Configurable slots
- Click to obtain weapon
- Prevent item stealing
- Prevent unwanted item movement
- Safe full-inventory handling
- Permission checking
- Proper inventory event handling
Clicking an item must give the correctly identified custom weapon.
==================================================
๐ข TURTLESMP COUNTDOWN
==================================================
Command:
/turtlesmp start
Permission:
turtlesmp2.start
Default:
OP
Start a configurable TURTLESMP countdown.
Requirements:
- Configurable countdown duration
- Broadcast messages
- Title
- Subtitle
- Action bar
- Countdown sounds
- Final start sound
- Prevent duplicate countdowns
- Safe cancellation
- Proper scheduler cleanup
Example:
๐ข TURTLESMP starting in 10...
๐ข TURTLESMP starting in 5...
๐ข TURTLESMP STARTED!
==================================================
๐ PERMISSIONS
==================================================
Create:
turtlesmp2.*
turtlesmp2.admin
turtlesmp2.rc
turtlesmp2.use
turtlesmp2.start
Defaults:
turtlesmp2.* = OP
turtlesmp2.admin = OP
turtlesmp2.rc = OP
turtlesmp2.use = TRUE
turtlesmp2.start = OP
==================================================
โ๏ธ CONFIGURATION
==================================================
Create a complete config.yml.
Include:
messages: prefix no-permission cooldown cooldown-reset no-weapon weapon-given countdown-start countdown-finished
weapons:
titan-blade: enabled display-name damage knockback cooldown particles sounds
fire-blade: enabled display-name damage fire-duration cooldown particles sounds
turtlemace: enabled display-name damage knockback cooldown particles sounds
auto-bow: enabled display-name damage cooldown particles sounds
countdown: duration title subtitle actionbar sounds
INVENTORY GUI: title size titan-blade-slot fire-blade-slot turtlemace-slot auto-bow-slot
==================================================
๐ PROJECT STRUCTURE
==================================================
Use a clean architecture:
src/main/java/org/Crimsonsmp/turtlesmp2/
โโโ TurtleSmp2.java โ โโโ command/ โ โโโ TurtleSmp2Command.java โ โโโ ResetCooldownCommand.java โ โโโ TurtleSmpCommand.java โ โโโ weapon/ โ โโโ CustomWeapon.java โ โโโ WeaponManager.java โ โโโ TitanBlade.java โ โโโ FireBlade.java โ โโโ TurtleMace.java โ โโโ AutoBow.java โ โโโ ability/ โ โโโ Ability.java โ โโโ AbilityManager.java โ โโโ cooldown/ โ โโโ CooldownManager.java โ โโโ INVENTORY GUI/ โ โโโ WeaponGUI.java โ โโโ listener/ โ โโโ WeaponInteractListener.java โ โโโ WeaponDamageListener.java โ โโโ WeaponProjectileListener.java โ โโโ GUIListener.java โ โโโ util/ โโโ ItemUtil.java โโโ EffectUtil.java โโโ MessageUtil.java
src/main/resources/
โโโ plugin.yml โโโ config.yml
==================================================
๐ PLUGIN.YML
==================================================
name: TURTLESMP2 version: 1.0.0 main: org.Crimsonsmp.turtlesmp2.TurtleSmp2 api-version: '1.21'
commands:
turtlesmp2: description: Open TURTLESMP2 weapon menu permission: turtlesmp2.admin
rc: description: Reset custom weapon cooldown permission: turtlesmp2.rc
turtlesmp: description: Start TURTLESMP countdown permission: turtlesmp2.start
permissions:
turtlesmp2.*: default: op
turtlesmp2.admin: default: op
turtlesmp2.rc: default: op
turtlesmp2.use: default: true
turtlesmp2.start: default: op
==================================================
๐ก๏ธ PERFORMANCE
==================================================
The plugin must:
- Be optimized for Paper 1.21.x
- Support multiple players
- Avoid memory leaks
- Avoid excessive particle spawning
- Avoid excessive sound spam
- Handle disconnected players safely
- Handle dead entities safely
- Handle unloaded worlds safely
- Clean up scheduled tasks
- Avoid unnecessary repeating tasks
- Avoid NMS unless absolutely necessary
- Use Java 21
- Use Paper/Bukkit APIs correctly
- Avoid console errors
- Avoid duplicate event registration
==================================================
๐งช FINAL TESTING
==================================================
Verify all of the following:
โ Maven compilation succeeds
โ Java 21 compatibility
โ TURTLESMP2.jar generated
โ Plugin loads without errors
โ /turtlesmp2 works
โ /rc works
โ /turtlesmp start works
โ Admin INVENTORY GUI works
โ Titan Blade works
โ Fire Blade works
โ TURTLEMACE works
โ Auto Bow works
โ Cooldowns work
โ Permissions work
โ Configuration works
โ Players can use weapons
โ Mobs can be affected
โ Normal Minecraft items remain unaffected
โ Custom item IDs persist after restart
โ Full inventory is handled safely
โ Multiple players can use abilities simultaneously
==================================================
๐ซ STRICT FINAL RULES
==================================================
DO NOT create:
HAMMER hammer Hammer
as a weapon.
The third weapon MUST be:
๐ข TURTLEMACE
Use:
TurtleMace.java
turtlemace
turtlesmp2_weapon = turtlemace
throughout the implementation.
==================================================
โ
FINAL DELIVERABLE
==================================================
Generate the COMPLETE Maven project with:
- pom.xml
- plugin.yml
- config.yml
- All Java classes
- All commands
- All listeners
- All weapon implementations
- Ability system
- Cooldown system
- Admin INVENTORY GUI
- Configuration system
- Utility classes
Build the final JAR as:
TURTLESMP2.jar
The finished plugin must be independently implemented, production-ready, functional, optimized, and suitable for a Paper 1.21.x Lifesteal/SMP server.