๐
1 file
5,105 chars
๐
pasted-code-1775750557659.txt
txt
367 lines
โถ
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