๐
1 file
3,563 chars
๐
pasted-code-1772447727105.txt
txt
278 lines
โถ
pasted-code-1772447727105.txt
txt
278 lines
Create a PaperMC 1.21.11 plugin named StrengthSMP with the following complete system:
๐งฌ CORE SYSTEM
1๏ธโฃ Powers (Origins)
Create 4 selectable powers:
WARRIOR (Sword based)
DESTROYER (Axe based)
RANGER (Bow based)
GUARDIAN (Shield based)
๐ฒ RANDOM POWER ON FIRST JOIN
When a player joins for the first time
If they do not already have a power saved
Assign a RANDOM power from the 4 available
Save it in config under:
players.: POWER_NAME
Send message:
"You have been granted the power of "
๐งช POWER REROLL SYSTEM
Create a custom item:
Item:
Material: NETHER_STAR
Name: ยงdPower Orb
Lore:
ยง7Right click to
ยง7reroll your power!
Crafting Recipe:
Shape:
E
ENE
E
Ingredients:
E = Ender Pearl
N = Nether Star
When right-clicked:
Assign RANDOM new power
Save to config
Consume 1 orb
Send message:
"Your power has been rerolled to "
Make it fully configurable:
Enable/disable orb
Custom name
Custom lore
Custom recipe materials
โ NORMAL ABILITIES
Each ability should require a hit counter.
All values configurable in config.yml.
โ WARRIOR (Sword)
After 12 critical hits:
Strike lightning effect
Deal 1.5 hearts bonus damage
Spawn ELECTRIC_SPARK particles
Play lightning sound
Reset counter
๐ช DESTROYER (Axe)
After 7 critical hits:
Small explosion (no block damage)
Deal 2 hearts bonus damage
Spawn EXPLOSION particles
Play explosion sound
Reset counter
๐น RANGER (Bow)
After 5 arrow hits on players:
Strike lightning (configurable)
Deal 2.5 hearts bonus damage
Pull nearby players inward
Spawn DRAGON_BREATH particles
Play dragon growl sound
Reset counter
๐ก GUARDIAN (Shield)
After blocking 10 hits:
Give Resistance II for 6 seconds
Spawn TOTEM particles
Play totem sound
Reset counter
๐ ULTIMATE ABILITIES
Activation:
Player must be sneaking
Right-click with correct weapon
Must have correct power
Has 60 second cooldown (configurable)
โ WARRIOR ULTIMATE โ Thunder Wrath
Radius: 6 blocks
Strike lightning on all nearby players
Deal 3 hearts damage
Spawn large electric particles
Thunder sound
๐ช DESTROYER ULTIMATE โ Ground Smash
Radius: 5 blocks
Explosion effect (no block damage)
Deal 4 hearts damage
Heavy knockback
Explosion particles
Explosion sound
๐น RANGER ULTIMATE โ Arrow Rain
Spawn 20 arrows from sky
Fall above random area around player
Spawn cloud particles
Arrow shoot sound
๐ก GUARDIAN ULTIMATE โ Divine Fortress
Give Resistance III
Give Absorption IV
Duration: 8 seconds
Knockback pulse around player
Totem particles
Totem sound
โณ COOLDOWN SYSTEM
One cooldown per player per ultimate
Fully configurable
Send message if on cooldown
โ CONFIG REQUIREMENTS
Make everything configurable:
Hit requirements
Damage (in hearts)
Radius
Duration
Cooldowns
Particles
Sounds
Lightning toggle
Pull strength
Recipe materials
Orb enable/disable
๐ OPTIONAL STRUCTURE READY
Structure plugin cleanly:
me.strengthsmp
โโโ StrengthSMP.java
โโโ managers/PowerManager.java
โโโ powers/PowerType.java
โโโ listeners/
โ โโโ CombatListener.java
โ โโโ JoinListener.java
โ โโโ UltimateListener.java
โ โโโ PowerOrbListener.java
โโโ commands/PowerCommand.java
๐ RULES
Powers persist after restart
No ability works without correct selected power
No block damage from explosions
Safe null checks everywhere
Compatible with Paper 1.21.1
Optimized for SMP (no heavy repeating tasks)
๐ฎ END RESULT
This should feel like:
Strength SMP V3
Lifesteal-style chaos
Ultimate anime SMP abilities
Balanced but powerful
Kodari can make mistakes. Review important code before using.
Files
No files in this session
Code