kohinoor1397
๐Ÿ“Ž 1 file 3,563 chars
๐Ÿ“„
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