trollfacenan

can you add a /extradamage command so you can do /extradamage set 1 and it'll add 1 attack damage and if its set to 0 it doesnt change anything and make sure the command is useable to operators and hidden to non ops

Kodari AI
KodariMar 30 at 3:37 pm 4,490 (v2)

I’ll create a fresh plugin with the /extradamage command. Let me plan the classes first:

  • ExtraDamagePlugin — main plugin class

  • ExtraDamageCommand — handles the command logic

  • plugin.yml — registers the command as op-only

ExtraDamage
A lightweight plugin that adds an /extradamage command for operators to set bonus attack damage on themselves. Running /extradamage set <amount> applies the specified extra attack damage as a persistent attribute modifier. Setting the value to 0 removes the modifier entirely, restoring default damage. The command is restricted to operators only and is hidden from non-op players.

Done! Here’s a summary of what was built:

  • /extradamage set <amount> — applies a persistent ADD_NUMBER attribute modifier to your generic.attack_damage, stacking on top of your base damage

  • Setting to 0 removes the modifier entirely, restoring normal damage

  • Op-only — non-ops get a silent rejection via permission-message: "" so the command won’t even appear in tab-complete for them; an extra isOp() guard is also in the code

  • The modifier uses a fixed UUID so re-running the command cleanly replaces the old value instead of stacking duplicates

trollfacenan

it doesnt work

Kodari AI
KodariMar 30 at 3:42 pm 6,141 (v2)

Let me read the existing files to understand what’s going on.

Let me read all the existing project files first.

Two bugs found:

  1. ExtraDamagePlugin.java is missing its package declaration — causes a compile/load failure

  2. AttributeModifier(UUID, String, double, Operation) constructor is deprecated/removed in 1.21 — needs NamespacedKey + EquipmentSlotGroup variant; command also needs plugin reference passed in

Fixed two issues: added the missing package com.extradamage; declaration to the main class, and updated AttributeModifier to use the modern NamespacedKey + EquipmentSlotGroup.ANY constructor required by the 1.21 API (also switched to removeModifier(NamespacedKey) for clean removal).

trollfacenan

make the black 20 hearts instead

Kodari AI
KodariMar 30 at 3:43 pm 2,662 (v2)

I can see the existing plugin only deals with attack damage — there’s no code referencing “black” or hearts (health) anywhere in the project.

Could you clarify what you mean? For example:

  • Max health — Set a player’s max health to 20 hearts (40 HP) using the max_health attribute?

  • Heart display colour — Change the colour of the health bar/hearts in a GUI or scoreboard to black?

  • Something else entirely — Are you referring to a different plugin or a config file not yet in the project?

Once I know exactly what you’re targeting, I’ll make the change right away!

trollfacenan

the black tier also make the death messages vanilla

Kodari AI
KodariMar 30 at 3:45 pm 1,563 (v2)

I can see the current plugin only has a simple /extradamage set <amount> command — there’s no tier system or death messages in the codebase at all.

The internet search result also wasn’t included in your message, so I’m missing context on what “the black tier” refers to.

Could you clarify:

  1. “The black tier” — Is this part of a tier/rank system you want added? (e.g. tiers like White → Gray → Black with increasing damage bonuses?) Or is it referencing something else entirely?

  2. “Death messages vanilla” — Currently there are no custom death messages in this plugin. Was this from a previous version of the plugin, or is this a new feature where custom death messages were planned and you want them removed/kept vanilla?

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
4 129
src/main/java/com/extradamage/ExtraDamagePlugin.java
package com.extradamage;

import com.extradamage.command.ExtraDamageCommand;
import org.bukkit.plugin.java.JavaPlugin;

public class ExtraDamagePlugin extends JavaPlugin {

    @Override
    public void onEnable() {
        getCommand("extradamage").setExecutor(new ExtraDamageCommand(this));
    }
}