notunderrated
๐Ÿ“Ž 1 file 5,105 chars
๐Ÿ“„
pasted-code-1775750557659.txt
txt 367 lines
โ–ถ
Create a complete, production-ready Minecraft SMP plugin using Java (Spigot/Paper API).

PLUGIN NAME: TotemSMP

==================================================

๐ŸŽฏ CORE SYSTEM:

Each player gets ONLY ONE magical totem.

Each totem has:

* 3 Active Abilities
* 2 Passive Abilities

The 3rd ability MUST be the strongest (Ultimate).

==================================================

๐Ÿ”ฅ CORE RULES:

1. Totem MUST NOT behave like vanilla:
   โŒ No pop effect
   โŒ No saving player on death

2. Death System:
   โœ” Always stays in inventory
   โœ” Never drops
   โœ” Never duplicates

3. Soul Binding:
   โœ” Bound to player UUID
   โœ” Cannot be transferred

==================================================

๐Ÿงฟ TOTEM ITEM:

* Base: Totem of Undying
* Use CustomModelData
* Identify using PersistentDataContainer

==================================================

๐ŸŒŸ TOTEMS (9):

Ender, Wind, Light, Fire, Strength, Water, Nature, Ice, Shadow

==================================================

โš”๏ธ ACTIVE ABILITIES:

1 โ†’ Right Click
2 โ†’ Shift + Right Click
3 โ†’ /ability third (Ultimate)

โœ” Detect:

* RIGHT_CLICK_AIR
* RIGHT_CLICK_BLOCK

โœ” MUST CHECK:

* Main hand + Offhand

==================================================

๐Ÿ”ฅ PASSIVE SYSTEM (FULLY FIXED):

โœ” One global repeating task (10โ€“20 ticks)

โœ” For each player:
IF holding totem:
Apply passives
ELSE:
Remove passives instantly

โœ” NEVER stack effects
โœ” ALWAYS refresh safely

---

๐ŸŒช๏ธ WIND TOTEM PASSIVE (IMPORTANT FIX):

โœ” Cancel fall damage using EntityDamageEvent

โœ” ALSO APPLY:

* Slow Falling (short refresh)

โœ” MUST check holding totem

==================================================

๐ŸŽฌ SMP START SYSTEM:

โœ” Player lock
โœ” Countdown
โœ” Cinematic rolling animation
โœ” Fake-outs + slow-down
โœ” Particle + sound finale

==================================================

๐Ÿ“œ COMMAND SYSTEM:

/totem menu
/totem info
/totem ability
/totem cooldown
/ability third

==================================================

๐ŸŽฒ REROLL SYSTEM:

/totem reroll 

โœ” Instant execution
โœ” No confirmation
โœ” Assign new totem
โœ” Replace item

==================================================

โŒจ๏ธ TAB COMPLETE SYSTEM:

โœ” Suggest:

* Subcommands
* Player names
* Totem names

==================================================

๐Ÿ”’ ITEM LOCK:

โŒ No drop
โŒ No move
โŒ No store

==================================================

๐Ÿ’€ DEATH SYSTEM:

โœ” Remove from drops
โœ” Restore on respawn

==================================================

โณ COOLDOWN:

โœ” Per player
โœ” No bypass
โœ” Action bar display

==================================================

๐Ÿ”ฅ๐Ÿ”ฅ CRITICAL: PARTICLE & SOUND SYSTEM (NEW)

EVERY ability MUST include:

โœ” Unique particle effects
โœ” Unique sound effects
โœ” Effects MUST match theme
โœ” Effects MUST be visible & impactful

---

RULES:

โœ” Use multiple particles (not just 1)
โœ” Use layered sounds
โœ” Sync particles + sound timing
โœ” Use loops for ultimates

==================================================

๐ŸŒŒ ENDER TOTEM:

Ability 1 (Void Step):
Particles:

* PORTAL
* REVERSE_PORTAL

Sound:

* Enderman teleport

Ability 2 (Gravity Well):
Particles:

* PORTAL swirl inward

Sound:

* Beacon hum + deep bass

Ultimate (BLACK HOLE):
Particles:

* Massive swirling portal
* EXPLOSION at end

Sound:

* Wither spawn + explosion

---

๐ŸŒช๏ธ WIND TOTEM:

Ability 1 (Air Dash):
Particles:

* CLOUD trail

Sound:

* Whoosh

Ability 2 (Tornado Lift):
Particles:

* Spiral CLOUD + SWEEP_ATTACK

Sound:

* Elytra flying

Ultimate (SKY STORM):
Particles:

* Huge cloud burst

Sound:

* Thunder + wind

---

๐Ÿ”ฅ FIRE TOTEM:

Ability 1:

* FLAME + SMOKE

Ability 2:

* LAVA + FLAME

Ultimate:

* EXPLOSION + FLAME RAIN

Sound:

* Blaze shoot + explosion

---

๐Ÿ’ช STRENGTH TOTEM:

Ability 1 (Slam):
Particles:

* EXPLOSION + BLOCK_CRACK

Sound:

* Heavy explosion

Ultimate:

* Massive shockwave

---

๐ŸŒŠ WATER TOTEM:

Ability 1:

* SPLASH

Ability 2:

* HEART + WATER

Ultimate:

* BUBBLE + SPLASH circle

Sound:

* Water ambient

---

โ„๏ธ ICE TOTEM:

Ability 1:

* SNOWFLAKE

Ability 2:

* ICE particles

Ultimate:

* Snowstorm effect

Sound:

* Glass break + wind

---

๐ŸŒฟ NATURE TOTEM:

Particles:

* VILLAGER_HAPPY
* GREEN dust

Sound:

* Grass + bonemeal

---

๐ŸŒ‘ SHADOW TOTEM:

Particles:

* SMOKE
* SQUID_INK

Sound:

* Enderman + deep bass

==================================================

๐Ÿง  BUG-FREE SYSTEM:

โœ” All abilities must trigger
โœ” Passive always works
โœ” No duplication
โœ” No cooldown bugs
โœ” No memory leaks

==================================================

๐Ÿ“ฆ OUTPUT:

* Full plugin code
* plugin.yml
* config.yml
* Tab complete working
* All particles & sounds implemented
* Fully commented
* Production-ready

==================================================
Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code