n0trando_07002
📎 1 file 3,699 chars
📄
pasted-code-1781633750369.txt
txt 189 lines
▶
Create a complete Minecraft Paper plugin for Minecraft 1.21.11 called "Trim Powers".

The plugin must be written in Java using the Paper API and include all source files, plugin.yml, pom.xml, commands, listeners, configs, cooldown systems, recipes, and ability management.

CORE CONCEPT:
Every armor trim in Minecraft grants a unique ability when a player wears a full set of armor with the same trim.

The plugin must automatically detect armor trims and activate abilities only when all 4 armor pieces share the same trim.

GENERAL RULES:

Only full armor sets activate powers.
Each ability has a cooldown.
Cooldowns must persist while the player is online.
Show cooldowns in the action bar.
Use particles, sounds, and visual effects.
All values must be configurable in config.yml.
Use modern Paper 1.21.11 APIs.
Organize code into multiple classes.

TRIM ABILITIES:

SENTRY:

Summon an Iron Guardian ally for 30 seconds.
Cooldown: 120 seconds.

VEX:

Blink forward up to 15 blocks.
Cooldown: 30 seconds.

WILD:

Gain Speed III and Jump Boost II in forests.
Passive ability.

COAST:

Water Dash ability.
Water Breathing passive.
Cooldown: 45 seconds.

DUNE:

Create a sandstorm around the player.
Nearby enemies receive Blindness.
Cooldown: 90 seconds.

TIDE:

Release a wave that pushes enemies away.
Cooldown: 60 seconds.

WARD:

Gain Resistance V for 5 seconds.
Cooldown: 120 seconds.

SILENCE:

Become invisible for 8 seconds.
Cooldown: 90 seconds.

EYE:

Reveal nearby players through walls.
Cooldown: 60 seconds.

RIB:

Create a Hellfire Burst.
Ignite and knock back enemies.
Cooldown: 75 seconds.

SNOUT:

Gain Strength II and Speed II for 10 seconds.
Cooldown: 90 seconds.

SPIRE:

Double jump.
Slow Falling passive.

WAYFINDER:

Track the nearest player with a compass.
Cooldown: 30 seconds.

SHAPER:

Instantly create a temporary defensive wall.
Cooldown: 90 seconds.

RAISER:

Summon undead minions for 30 seconds.
Cooldown: 120 seconds.

HOST:

Summon hostile creatures that attack nearby enemies.
Cooldown: 120 seconds.

LEGENDARY ENDGAME TRIM:

Create a custom trim called:
§5§lChronovoid Trim

CRAFTING RECIPE:

4 Armor Trim Templates (any type)
1 Heavy Core
4 Enchanted Golden Apples

The Chronovoid Trim must be a custom item with custom lore and a PersistentDataContainer tag.

When applied to Netherite Armor using a smithing table, the armor gains the Chronovoid tag.

FULL CHRONOVOID SET ABILITIES:

PASSIVES:

Night Vision
10% damage reduction
Immunity to Darkness
Purple and black particle aura

ABILITY 1: TIME STOP
Activation: Shift + Right Click
Cooldown: 300 seconds

Effects:

Freeze all players within 15 blocks for 5 seconds
Prevent movement, attacking, breaking, placing, and interaction
Show clock particles and sounds

ABILITY 2: VOID PRISON
Activation: Right Click with Nether Star
Cooldown: 180 seconds

Effects:

Target nearest player within 20 blocks
Trap target in a temporary void cage
Prevent teleportation and Ender Pearl escape
Lasts 8 seconds
Purple and black particle effects

ABILITY 3: STAR SHOT
Activation: Left Click with Nether Star
Cooldown: 45 seconds

Effects:

Fire a custom void projectile
Purple particle trail
Explosion without terrain damage
Damage nearby enemies
Apply Darkness for 5 seconds
Knockback effect

ADMIN COMMANDS:
/trimpowers givechronovoid
/trimpowers reload

PERMISSIONS:
trimpowers.use
trimpowers.admin

CONFIG:
Create config.yml containing:

Cooldowns
Damage values
Durations
Particle settings
Ability ranges

REQUIREMENTS:

Fully functional Paper 1.21.11 plugin.
Maven project.
All source files included.
Proper package structure.
Comments explaining important sections.
Production-ready code that compiles without errors.
Kodari AI
KodariJun 16 at 6:21 pm 43

I’ll create a complete Trim Powers plugin for Paper 1.21.11 with all the features you specified.

TrimPowers
A comprehensive armor trim ability system that grants unique powers when wearing full matching trim sets. Features 16 standard trim abilities including summoning allies, teleportation, environmental buffs, and combat enhancements. Includes a legendary Chronovoid trim with time manipulation powers: Time Stop freezes nearby players, Void Prison traps targets, and Star Shot fires devastating projectiles. All abilities have configurable cooldowns, particles, and sounds.

All files have been created! This is a complete, production-ready Trim Powers plugin for Paper 1.21.11 with:

✅ 16 Standard Trim Abilities - Sentry, Vex, Wild, Coast, Dune, Tide, Ward, Silence, Eye, Rib, Snout, Spire, Wayfinder, Shaper, Raiser, Host ✅ Legendary Chronovoid Trim - Custom craftable trim with Time Stop, Void Prison, and Star Shot abilities ✅ Full Cooldown System - Persistent cooldowns with action bar display ✅ Passive Effects - Wild forest buffs, Coast water breathing, Spire slow falling, Chronovoid aura ✅ Complete Configuration - All values configurable in config.yml ✅ Commands - /trimpowers givechronovoid and /trimpowers reload ✅ Permissions - trimpowers.use and trimpowers.admin ✅ Maven Build - Ready to compile with mvn clean package

The plugin automatically detects full matching trim sets and activates abilities via right-click. Chronovoid abilities use Shift+Right Click (Time Stop), Right Click with Nether Star (Void Prison), and Left Click with Nether Star (Star Shot).

n0trando_07002

can you give me a descreption of the plugin

Kodari AI
KodariJun 16 at 6:24 pm 3

Trim Powers - Armor Trim Ability System

Version: 1.0.0
Compatible with: Paper 1.21.11+
Type: Survival Enhancement / RPG Mechanics

Overview

Trim Powers transforms Minecraft’s decorative armor trims into a powerful ability system. When players wear a complete armor set (helmet, chestplate, leggings, boots) with the same trim pattern, they unlock unique supernatural abilities tied to that trim’s theme.

Core Mechanics

  • Full Set Required: All 4 armor pieces must have matching trims to activate powers

  • Active Abilities: Right-click to trigger special powers (teleportation, summoning, combat abilities)

  • Passive Buffs: Some trims grant continuous effects while worn (speed, water breathing, slow falling)

  • Cooldown System: All abilities have configurable cooldowns displayed in the action bar

  • Visual Feedback: Particle effects, sounds, and action bar messages for every ability

Standard Trim Abilities (16 Total)

Trim
Ability Type
Description
Sentry
Summon
Iron Guardian ally fights for you (30s duration, 120s cooldown)
Vex
Movement
Blink teleport forward up to 15 blocks (30s cooldown)
Wild
Passive
Speed III + Jump Boost II in forests/jungles
Coast
Mobility
Water dash + permanent Water Breathing (45s cooldown)
Dune
Area Debuff
Sandstorm blinds nearby enemies (90s cooldown)
Tide
Knockback
Wave pushes enemies away from you (60s cooldown)
Ward
Defense
Resistance V for 5 seconds (120s cooldown)
Silence
Stealth
Invisibility for 8 seconds (90s cooldown)
Eye
Detection
Reveal nearby players through walls with Glowing (60s cooldown)
Rib
Damage
Hellfire burst ignites and knocks back enemies (75s cooldown)
Snout
Combat
Strength II + Speed II for 10 seconds (90s cooldown)
Spire
Mobility
Double jump + passive Slow Falling
Wayfinder
Tracking
Compass tracks nearest player (30s cooldown)
Shaper
Defense
Instant temporary defensive wall (90s cooldown)
Raiser
Summon
Summon undead minions for 30 seconds (120s cooldown)
Host
Summon
Hostile creatures attack your enemies (120s cooldown)

Legendary Chronovoid TrimA custom endgame trim with time manipulation powers:

Crafting Recipe:

  • 4× Any Armor Trim Template

  • 1× Heavy Core

  • 4× Enchanted Golden Apple

Apply to Armor: Use a Smithing Table to apply Chronovoid Trim to Netherite armor

Passive Effects:

  • Permanent Night Vision

  • 10% damage reduction

  • Immunity to Darkness effect

  • Purple & black particle aura

Active Abilities:

  1. Time Stop (Shift + Right Click)

    • Freezes all players within 15 blocks for 5 seconds

    • Prevents movement, combat, building, and interaction

    • 300s cooldown

  2. Void Prison (Right Click with Nether Star)

    • Traps nearest player in a void cage for 8 seconds

    • Blocks Ender Pearl escapes and teleportation

    • 180s cooldown

  3. Star Shot (Left Click with Nether Star)

    • Fires a devastating void projectile

    • Explosion damage with purple particle trail

    • Applies Darkness effect + knockback

    • 45s cooldown

Commands

  • /trimpowers givechronovoid - Get the Chronovoid Trim crafting item

  • /trimpowers reload - Reload configuration

Permissions

  • trimpowers.use - Use trim abilities (default: true)

  • trimpowers.admin - Admin commands (default: op)

Configuration

Fully configurable config.yml includes:

  • Cooldown durations for every ability

  • Damage values and ranges

  • Effect durations and amplifiers

  • Particle types and densities

  • Sound effects

  • Summoned mob attributes

Perfect For

  • Survival Servers - Adds RPG-style progression through armor customization

  • PvP Arenas - Strategic ability-based combat with cooldowns

  • Adventure Maps - Give players themed powers for different challenges

  • RPG Servers - Class-like system based on armor trim choices

Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
Code
36 2,295
src/main/java/com/trimpowers/TrimPowers.java
package com.trimpowers;

import com.trimpowers.commands.TrimPowersCommand;
import com.trimpowers.listeners.*;
import com.trimpowers.managers.*;
import com.trimpowers.recipes.ChronovoidRecipe;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public class TrimPowers extends JavaPlugin {
    
    private CooldownManager cooldownManager;
    private AbilityManager abilityManager;
    private TrimDetector trimDetector;
    private ChronovoidManager chronovoidManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        // Initialize managers
        cooldownManager = new CooldownManager(this);
        trimDetector = new TrimDetector();
        abilityManager = new AbilityManager(this, cooldownManager, trimDetector);
        chronovoidManager = new ChronovoidManager(this, cooldownManager);
        
        // Register listeners
        registerListeners();
        
        // Register commands
        getCommand("trimpowers").setExecutor(new TrimPowersCommand(this, chronovoidManager));
        
        // Register recipes
        ChronovoidRecipe.register(this);
        
        // Start passive ability checker
        startPassiveChecker();
        
        getLogger().info("TrimPowers has been enabled!");
    }
    
    @Override
    public void onDisable() {
        cooldownManager.cleanup();
        getLogger().info("TrimPowers has been disabled!");
    }
    
    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new ArmorEquipListener(abilityManager), this);
        Bukkit.getPluginManager().registerEvents(new PlayerInteractListener(abilityManager, chronovoidManager), this);
        Bukkit.getPluginManager().registerEvents(new PlayerMoveListener(abilityManager), this);
        Bukkit.getPluginManager().registerEvents(new SmithingListener(chronovoidManager), this);
        Bukkit.getPluginManager().registerEvents(new ProjectileListener(chronovoidManager), this);
    }
    
    private void startPassiveChecker() {
        int interval = getConfig().getInt("general.check-interval-ticks", 20);
        Bukkit.getScheduler().runTaskTimer(this, () -> {
            Bukkit.getOnlinePlayers().forEach(player -> {
                if (player.hasPermission("trimpowers.use")) {
                    abilityManager.checkPassiveAbilities(player);
                }
            });
        }, 0L, interval);
    }
    
    public CooldownManager getCooldownManager() {
        return cooldownManager;
    }
    
    public AbilityManager getAbilityManager() {
        return abilityManager;
    }
    
    public TrimDetector getTrimDetector() {
        return trimDetector;
    }
    
    public ChronovoidManager getChronovoidManager() {
        return chronovoidManager;
    }
}