📄
pasted-code-1786763576855.txt
txt
755 lines
▶
You are a professional Minecraft plugin development team specializing in Paper SMP plugins, custom abilities, PvP balancing, and performance optimization.
Create a complete production-ready concept for a Minecraft Java Edition Trim SMP plugin based entirely on vanilla Armor Trim Patterns.
==================================================
1. CORE CONCEPT
==================================================
The plugin is based on Minecraft's existing Armor Trim system.
When a player wears a complete 4-piece armor set containing the SAME Armor Trim Pattern:
• 1 Passive Effect becomes active.
• 1 Main Power becomes available.
The armor material does NOT matter.
The trim material does NOT matter.
ONLY the Armor Trim Pattern matters.
Example:
Dune Helmet
Dune Chestplate
Dune Leggings
Dune Boots
= Dune Passive + Dune Main Power
If even one armor piece is missing, the abilities are disabled.
If the player mixes different Trim Patterns, all Trim abilities are disabled.
Example:
Dune Helmet
Dune Chestplate
Raiser Leggings
Dune Boots
= NO ABILITY
==================================================
2. MAIN POWER ACTIVATION
==================================================
Every Main Power must be activated using:
SHIFT + RIGHT CLICK
The activation must be reliable and should not interfere unnecessarily with normal Minecraft gameplay.
When the ability activates:
• Play an appropriate sound.
• Create a suitable particle effect.
• Give clear visual feedback.
• Display an Action Bar message.
Example:
"⚡ Guardian Shock Activated!"
==================================================
3. PASSIVE EFFECTS
==================================================
Every Trim has exactly ONE Passive Effect.
Passive Effects must behave like normal Minecraft Status Effects.
They are continuously active while the player wears the complete matching Trim set.
When the full set is no longer equipped:
• Remove the Trim Passive Effect.
• Disable the Main Power.
Do not create complicated passive mechanics.
Do not make passive effects dependent on:
• Getting hit
• Killing mobs
• Sneaking
• Low health
• Specific blocks
• Random events
The Passive must simply function like a normal Minecraft status effect.
==================================================
4. COOLDOWN
==================================================
Every Main Power has a default cooldown of:
3 MINUTES
The cooldown starts immediately after the Main Power is successfully activated.
The cooldown must NOT be bypassable by:
• Removing armor
• Re-equipping armor
• Switching Trim sets
• Relogging
• Dying
• Respawning
When the cooldown finishes, the player must receive a clear message that the Main Power is ready.
Example:
"✓ Your Trim Power is READY!"
Also provide an Action Bar indication when appropriate.
Cooldowns should be configurable in the plugin configuration.
==================================================
5. DAMAGE SCALING
==================================================
Damage must scale according to the natural rarity/value of the Trim.
Do not give rare Trims extra abilities.
Every Trim still has exactly:
1 Passive + 1 Main Power
Instead, rarer Trims should have stronger Main Powers through:
• Higher damage
• Better area of effect
• Stronger knockback
• Better range
• Better utility where appropriate
The damage hierarchy should feel clearly noticeable:
COMMON
→ Solid damage
UNCOMMON
→ High damage
RARE
→ Very high damage
HIGHEST-TIER RARE TRIMS
→ Extremely high damage
The strongest abilities must be capable of forcing Totem pops in PvP.
However, damage must still be implemented responsibly so the plugin does not completely destroy normal PvP balance.
Do not allow accidental infinite damage, damage multiplication bugs, or repeated damage exploits.
==================================================
6. TRIM ABILITIES
==================================================
------------------------------
SENTRY — COMMON
------------------------------
Passive:
Resistance I
Main Power:
Guardian Shock
The player releases a defensive shockwave in a medium radius around themselves.
Effects:
• All nearby enemies take solid damage.
• Enemies are knocked backward.
• Create an impact/shockwave particle effect.
• Play an appropriate impact sound.
Purpose:
A simple close-range AoE attack that punishes players who get too close.
------------------------------
DUNE — COMMON
------------------------------
Passive:
Speed I
Main Power:
Sand Blast
The player fires a fast-moving sand projectile in the direction they are looking.
The first enemy hit:
• Takes solid damage.
• Receives an appropriate hit effect.
The projectile should be visually recognizable as a sand-based projectile.
Purpose:
A clean single-target ranged poke.
------------------------------
COAST — COMMON
------------------------------
Passive:
Water Breathing
Main Power:
Tidal Smash
Create a water explosion directly in front of the player.
Enemies caught in the explosion:
• Take solid damage.
• Receive strong knockback.
Create water particles and an appropriate sound.
Purpose:
A close-range ability that can create space during combat.
------------------------------
WILD — COMMON
------------------------------
Passive:
Jump Boost I
Main Power:
Thorn Burst
The player erupts with thorns in a small radius around themselves.
All nearby enemies:
• Take solid damage.
• Receive a thorn/nature visual effect.
Purpose:
A simple and reliable close-range burst attack.
------------------------------
WARD — UNCOMMON
------------------------------
Passive:
Resistance II
Main Power:
Sonic Boom
Fire a cone-shaped sonic attack in the direction the player is facing.
Enemies inside the cone:
• Take high damage.
Create Warden-inspired sonic particles and sound.
Purpose:
A strong directional burst attack.
------------------------------
EYE — UNCOMMON
------------------------------
Passive:
Night Vision
Main Power:
Death Gaze
The player deals high damage to the single enemy they are directly looking at.
Requirements:
• Target must be within a reasonable range.
• Player must have clear line of sight.
• Only the selected target receives the main damage.
Purpose:
A pure single-target ability rewarding accurate aiming.
------------------------------
VEX — UNCOMMON
------------------------------
Passive:
Slow Falling
Main Power:
Phantom Slash
The player dashes forward a short distance.
The first enemy hit during the dash:
• Takes high damage.
• Receives appropriate knockback.
Create Vex-themed particles.
Purpose:
A simple gap-closer that also deals damage.
------------------------------
TIDE — UNCOMMON
------------------------------
Passive:
Dolphin's Grace
Main Power:
Whirlpool Crush
Create a short-lived whirlpool at the target location.
Enemies near the whirlpool:
• Are pulled toward the center.
• Take high damage.
The whirlpool automatically disappears after its duration.
Purpose:
A grouping and damage ability.
------------------------------
SNOUT — UNCOMMON
------------------------------
Passive:
Fire Resistance
Main Power:
Brute Smash
The player's next melee attack becomes empowered.
The empowered hit:
• Deals very high bonus damage.
• Applies strong knockback.
The power should clearly indicate when the empowered hit is ready.
After the hit successfully lands, the power is consumed.
Purpose:
A classic "one big hit" ability.
------------------------------
RIB — UNCOMMON
------------------------------
Passive:
Absorption I
Main Power:
Wither Strike
The player's next melee attack becomes empowered.
The empowered hit:
• Deals very high damage.
• Applies a strong Wither effect.
After successfully hitting an enemy, the ability is consumed.
Purpose:
A powerful melee ability designed for extended PvP fights.
------------------------------
SPIRE — RARE
------------------------------
Passive:
Slow Falling
Main Power:
Void Slam
The player launches into the air.
After reaching the required height, the player crashes down.
Enemies near the landing point:
• Take very high AoE damage.
• Receive knockback.
Create End/void-themed particles.
The player using the ability should not receive excessive self-damage.
Purpose:
A powerful engage and AoE damage ability.
------------------------------
WAYFINDER — RARE
------------------------------
Passive:
Speed I
Main Power:
Blink Strike
The player performs a short-range teleport toward the enemy they are looking at.
Immediately after teleporting:
• Deal high damage to the target.
Requirements:
• Target must be within a reasonable range.
• Target must have line of sight.
• Teleport must not place the player inside blocks.
Purpose:
A powerful ability for catching fleeing players.
------------------------------
SHAPER — RARE
------------------------------
Passive:
Resistance I
Main Power:
Stone Crush
Create a heavy stone-themed explosion around the player.
All nearby enemies:
• Take very high damage.
• Receive controlled knockback.
Create stone/debris particles and a heavy impact sound.
Purpose:
A simple, powerful close-range nuke.
------------------------------
SILENCE — RARE
------------------------------
Passive:
Strength II
Main Power:
Warden's Roar
Release a large-area sonic roar inspired by the Warden.
Enemies inside the large radius:
• Take extremely high damage.
• Receive appropriate knockback.
This ability should be powerful enough to force Totem pops against properly geared players.
Create a strong Warden-style sonic visual and sound effect.
Purpose:
One of the strongest AoE abilities in the entire plugin.
------------------------------
RAISER — RARE
------------------------------
Passive:
Strength I
Main Power:
Sky Smash
The player launches high into the air and crashes down with great force.
Enemies inside the large impact area:
• Take extremely high damage.
• Receive strong knockback.
This ability should be powerful enough to force Totem pops against properly geared players.
Create a large impact effect when the player lands.
Purpose:
One of the strongest AoE abilities in the plugin.
------------------------------
HOST — RARE
------------------------------
Passive:
Haste I
Main Power:
Swarm Burst
The player deals high damage to a target.
After activation:
• Spawn a few temporary Silverfish.
• The Silverfish attack nearby enemies.
• Silverfish have a short lifetime.
• Silverfish must not drop normal loot.
• Do not spawn excessive entities.
Purpose:
Combine direct burst damage with light temporary pressure.
------------------------------
FLOW — RARE
------------------------------
Passive:
Speed II
Main Power:
Wind Blast
Fire a powerful wind blast in the direction the player is looking.
Enemies hit:
• Take very high damage.
• Are launched into the air.
Create strong wind particles and sound.
Purpose:
A powerful directional attack and disruption tool.
------------------------------
BOLT — RARE
------------------------------
Passive:
Strength I
Main Power:
Lightning Strike
Call down a lightning strike on the targeted enemy or location.
The lightning:
• Deals very high damage.
• Creates lightning visual effects.
• Plays a thunder sound.
• Can apply controlled knockback where appropriate.
Prevent unnecessary fire spread and excessive world damage.
Purpose:
A clean and iconic high-damage ability.
==================================================
7. ABILITY BALANCE
==================================================
All Main Powers must remain simple.
Do not add unnecessary mechanics.
Each ability should be understandable immediately.
The player should be able to understand:
• What the ability does.
• Where it attacks.
• When it is available.
• When it is on cooldown.
The strongest abilities should feel genuinely dangerous in PvP.
The weakest abilities should still deal meaningful damage.
==================================================
8. TOTEM INTERACTION
==================================================
High-tier Main Powers should be capable of forcing Totem pops when used correctly against geared players.
However:
• Do not create instant-kill bugs.
• Do not bypass Totem mechanics.
• Do not repeatedly trigger the same damage event unintentionally.
• Damage should occur once per intended attack.
• Respect vanilla Minecraft damage and Totem behavior.
==================================================
9. ARMOR CHECKING
==================================================
The plugin must correctly detect the Trim Pattern on all four armor pieces.
Check:
Helmet
Chestplate
Leggings
Boots
If all four Trim Patterns match:
→ Activate that Trim's Passive
→ Enable that Trim's Main Power
If they do not match:
→ No Passive
→ No Main Power
Armor material is irrelevant.
Trim material is irrelevant.
Only the Trim Pattern matters.
==================================================
10. PLAYER EVENTS
==================================================
The Trim system must remain accurate when the player:
• Equips armor.
• Removes armor.
• Changes armor.
• Changes Trim.
• Dies.
• Respawns.
• Joins the server.
• Leaves the server.
• Changes dimension.
No passive effect should remain active after the matching armor is removed.
No Main Power should become available when the player does not have the correct full set.
==================================================
11. PERFORMANCE
==================================================
The plugin must be optimized for a real Paper SMP server.
Avoid:
• Unnecessary heavy repeating tasks.
• Excessive particles.
• Excessive entities.
• Memory leaks.
• Infinite collections.
• Unnecessary world modifications.
Use efficient Paper/Bukkit APIs.
All ability tasks must automatically clean themselves up.
Temporary entities and effects must be removed when their ability ends.
==================================================
12. CONFIGURATION
==================================================
Make the important values configurable, including:
• Main Power cooldown.
• Damage values.
• Ability radius.
• Ability range.
• Ability duration.
• Knockback strength.
• Projectile speed.
• Passive amplifier.
• Messages.
• Sounds where appropriate.
Default Main Power cooldown:
180 seconds / 3 minutes
==================================================
13. FINAL DESIGN PHILOSOPHY
==================================================
The plugin should feel like a real competitive Trim SMP.
The progression of combat power should be immediately noticeable.
Common Trims should provide reliable, useful combat abilities.
Uncommon Trims should feel noticeably stronger.
Rare Trims should feel extremely valuable and dangerous.
The strongest Trims should create serious PvP pressure and be capable of forcing Totem pops.
Despite this, every Trim must remain fun and usable.
Do not make abilities unnecessarily complicated.
The final gameplay loop is:
FULL MATCHING TRIM ARMOR
↓
1 PASSIVE STATUS EFFECT
+
1 MAIN POWER
↓
SHIFT + RIGHT CLICK
↓
POWER ACTIVATES
↓
3 MINUTE COOLDOWN
↓
"YOUR TRIM POWER IS READY!"
↓
POWER AVAILABLE AGAIN
Keep the entire system clean, powerful, competitive, and optimized for a Paper SMP.
Create the Gradle/Paper project metadata and default configuration.
Implement trim-pattern detection, passive-effect synchronization, and persistent cooldowns.
Implement all 18 trim powers with event-driven targeting, damage, knockback, particles, sounds, and cleanup.
Register listeners and lifecycle handling for armor changes, deaths, respawns, joins, quits, and world changes.
Built the TrimSMP plugin from scratch with:
Full matching-pattern detection for all 18 vanilla armor trims.
One configurable passive effect per trim.
All 18 Shift + Right Click powers with damage, knockback, targeting, particles, sounds, and action-bar feedback.
Persistent cooldowns stored in
cooldowns.yml, including relog/death/respawn protection.Empowered melee abilities for Snout and Rib.
Temporary Silverfish swarm handling for Host.
Projectile, dash, slam, whirlpool, cone, teleport, lightning, and AoE abilities.
Automatic armor/passive synchronization for joins, quits, deaths, respawns, world changes, and armor updates.
Configurable cooldowns, damage, ranges, radii, knockback, durations, projectile speed, passive amplifiers, sounds, and messages.
package com.kodari.trimsmp;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
public final class TrimSMPPlugin extends JavaPlugin {
private ConfigManager configManager;
private CooldownManager cooldownManager;
private TrimSetDetector trimSetDetector;
private TrimService trimService;
private AbilityService abilityService;
@Override
public void onEnable() {
saveDefaultConfig();
configManager = new ConfigManager(this);
cooldownManager = new CooldownManager(this);
trimSetDetector = new TrimSetDetector();
trimService = new TrimService(configManager, trimSetDetector);
abilityService = new AbilityService(this, configManager, cooldownManager, trimSetDetector);
Bukkit.getPluginManager().registerEvents(new TrimListener(this), this);
Bukkit.getScheduler().runTaskTimer(this, () -> {
for (Player player : Bukkit.getOnlinePlayers()) {
TrimDefinition definition = trimService.refresh(player);
abilityService.clearInvalidEmpowerment(player, definition);
}
}, 1L, 20L);
}
@Override
public void onDisable() {
if (abilityService != null) {
abilityService.shutdown();
}
if (trimService != null) {
trimService.clearAll();
}
if (cooldownManager != null) {
cooldownManager.save();
}
}
public ConfigManager getConfigManager() {
return configManager;
}
public CooldownManager getCooldownManager() {
return cooldownManager;
}
public TrimSetDetector getTrimSetDetector() {
return trimSetDetector;
}
public TrimService getTrimService() {
return trimService;
}
public AbilityService getAbilityService() {
return abilityService;
}
}