
Element
Create a Paper 1.21.1 SMP PvP plugin called ECLIPSE ELEMENTS SMP. CORE SYSTEM • On first join, player rolls 1 random Element (animated GUI) • 8 Elements...
00—FreepaperServer1.21.1mod
Eclipse Elements SMP
What it does
- First join opens an animated 3x3 roll GUI that assigns one of eight elements; the assignment persists until an admin resets it.
- Credits are earned from killing players and lost on death to players (never below 0). Credits gate abilities: ability 1 needs 1+ credit, ability 2 needs 2+, etc.
/ability <1-4>triggers the element’s move set with per-ability cooldowns, capped at 5 hearts of damage and terrain-safe movement/effects./creditsshows your element and credits. Admin tools:/credits give <player> <amount>and/credits reset <player>(online targets reroll immediately).- Each element has four distinct abilities with themed particles/sounds (pulls, dashes, cones, marks, freezes, blinks, regen locks). Ultimates include short charge-up visuals.
Implementation notes
- Player data (element + credits) is saved in a
players.ymlwithin the plugin folder. - Kill listener handles +1 credit to the killer and -1 to the victim (clamped at 0) for PvP only.
- Ability cooldowns are tracked per element/slot; damage is clamped to 5 hearts even with mark bonuses.
- Special handling: Shard Barrage tags its snowballs for custom damage/slow, Updraft cancels fall damage for 3s, Stone Guard reduces incoming damage by 25%, Voltage/Umbral marks boost the owner’s damage while active.
- The roll GUI fills a spinning center slot and pulses colored panes before locking in and announcing the element to the player.
Known limitations / future ideas
- No team or friendly-fire awareness; abilities affect any valid nearby/line-of-sight player.
- Credits only change through kills/deaths or admin commands; there is no HUD for cooldown timers.
- Effect indicators beyond standard potion icons are minimal; consider bossbar/actionbar feedback for cooldowns and marks.