guardianj8

Add an item that lets the user control any attribute the user has, all of them, right clicking the item lets the user control any attribute, and the item is a heavy core, named "Buffer", the item has limits, whenever the user changes their attribute, a 1 minute timer starts, and whenever it ends, the attribute goes back to normal, only allowing one attribute change at a time

Kodari AI
KodariJun 29 at 11:12 am 1

I’ll create an attribute modification plugin with the Buffer item.

AttributeBuffer
A Minecraft plugin that adds a "Buffer" item (heavy core) allowing players to temporarily modify any of their attributes. Right-clicking the item opens a GUI where players can select and change attributes like health, speed, armor, and more. Changes last 60 seconds before automatically reverting. Only one attribute modification is allowed at a time. All attribute limits and item properties are configurable.
guardianj8

add the ability to do 3 at a time instead of 1, also add scale, and allow me to set the limit of how high you can set the attributes each in config

Kodari AI
KodariJul 27 at 9:38 pm 6
  1. Increase the active modification capacity from 1 to 3 and enforce it in the selection flow.

  2. Add GENERIC_SCALE as a selectable attribute.

  3. Make each attribute’s maximum configurable and apply those limits when setting values.

  1. Active attribute changes increased from 1 to 3 per player.

  2. Added configurable max-active-modifications: 3.

  3. Added GENERIC_SCALE to the attribute list.

  4. Each attribute’s min and max values remain configurable individually in config.yml.

  5. Each modification now has its own 60-second timer and reverts independently.

guardianj8

make it so if i hit an player with it, it will break all of their armor instantly

Kodari AI
KodariAug 2 at 5:10 am 1

Added hit detection for the Buffer item. When a player hits another player while holding it, all of the target’s armor is instantly removed.

guardianj8

make it so when the armor clear happens, it makes the armor break sound

Kodari AI
KodariAug 2 at 5:11 am 1
  1. Play the armor-break sound when the Buffer clears a player’s armor.

Added the armor-break sound when the Buffer instantly clears a player’s armor. It uses XSeries for cross-version compatibility.

guardianj8

for some reason, the attributes dont go away after a minute, also please add entity reach, or whatever attribute that gives more reach

Kodari AI
KodariAug 11 at 6:00 pm 1
  1. Fix the one-minute expiration so every active attribute modification reliably restores its original value.

  2. Add configurable entity reach as a selectable attribute with its own limit.

  1. Fixed expiration by tracking and reverting the exact ActiveModification instance associated with each timer, so all three timers restore their own original values correctly.

  2. Added configurable PLAYER_ENTITY_INTERACTION_RANGE as Entity Reach.

  3. Added its individual min and max limits in config.yml.

guardianj8

also add a way to edit how long attributes can last, make them all affected by the same setting, and add /buffer reset, which will reset the users attributes and cooldowns of buffer of that individual, op only, and also add the ability to increase the amount of xp you get while holding an item, like an xp multiplier, cuz i have an item on my smp that requires levels, so itd be nice if it could have an xp multiplier while holding it, make sure it doesnt change lore or anything, its just there, nothing that says it does that and the command is /xpgain <any number>, then it will use that multiplier, 2 is 2x 3 is 3x 10 is 10x etc

Kodari AI
KodariAug 11 at 6:12 pm 2
  1. Add a shared configurable duration for all attribute modifications.

  2. Add op-only /buffer reset to restore attributes and clear Buffer timers/cooldowns for one player.

  3. Add silent XP multipliers for held items and /xpgain <number>.

  4. Verify command registration, configuration, and cross-version attribute handling.1. Shared duration: the existing duration setting already controls every attribute timer; no separate cooldown exists, so no code change is needed for this portion.

  5. /buffer reset: investigating the command and manager reset flow now.

  1. Shared duration: confirmed and retained as the single duration config value used by every attribute timer.

  2. /buffer reset: added op-only player reset, cancelling all active timers and restoring original values.

  3. XP multiplier: locating the item-holding event flow and command registration before patching.

  1. Added configurable shared attribute duration via duration in config.yml; all attribute changes use this value.

  2. Added op-only /buffer reset, which:

    • Restores all active attributes.

    • Cancels all active Buffer timers.

    • Clears pending Buffer attribute input.

  3. Added /xpgain <number>:

    • Applies the multiplier to the item currently held in the main hand.

    • Multiplies XP gained while holding that item.

    • Stores the multiplier invisibly using item data, without changing the item’s name or lore.

    • Supports values such as 2, 3, and 10.

  4. Player logout now properly resets all active attribute modifications instead of only the first one.

guardianj8

make it so i can use the /buffer reset command to reset other players, since they wont have OP, also make it so if the plugin detects that the buffer item is not in their inventory, the attributes will reset automatically, also add a way to reset the buffer item without needing commands

Kodari AI
KodariAug 12 at 12:36 pm 1
  1. Update /buffer reset so an operator can target another player by name.

  2. Automatically revert active attributes when the Buffer leaves the player’s inventory.

  3. Add a non-command way to reset the Buffer’s active state.

  1. /buffer reset [player] now lets operators reset another online player’s attributes, timers, and pending selections.

  2. Attributes automatically reset when the player no longer has a Buffer item in their inventory.

  3. Added a command-free reset: Shift + right-click the Buffer item to immediately restore attributes and clear active timers.

  4. Updated the /buffer usage description in plugin.yml.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
10 764
src/main/java/com/buffer/BufferPlugin.java
package com.buffer;

import com.buffer.command.BufferCommand;
import com.buffer.command.XpGainCommand;
import com.buffer.listener.BufferListener;
import com.buffer.manager.AttributeManager;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.NamespacedKey;
import org.bukkit.plugin.java.JavaPlugin;

public class BufferPlugin extends JavaPlugin {

    private AttributeManager attributeManager;
    private BufferListener bufferListener;
    private NamespacedKey xpMultiplierKey;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        reloadConfig();

        this.attributeManager = new AttributeManager(this);
        this.xpMultiplierKey = new NamespacedKey(this, "xp_multiplier");
        this.bufferListener = new BufferListener(this);

        getServer().getPluginManager().registerEvents(bufferListener, this);
        getCommand("buffer").setExecutor(new BufferCommand(this));
        getCommand("xpgain").setExecutor(new XpGainCommand(this));
    }

    @Override
    public void onDisable() {
        if (attributeManager != null) {
            attributeManager.cancelAll();
        }
    }

    public AttributeManager getAttributeManager() {
        return attributeManager;
    }

    public BufferListener getBufferListener() {
        return bufferListener;
    }

    public NamespacedKey getXpMultiplierKey() {
        return xpMultiplierKey;
    }
}