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
I’ll create a fresh plugin with the /extradamage command. Let me plan the classes first:
ExtraDamagePlugin— main plugin classExtraDamageCommand— handles the command logicplugin.yml— registers the command as op-only
Done! Here’s a summary of what was built:
/extradamage set <amount>— applies a persistentADD_NUMBERattribute modifier to yourgeneric.attack_damage, stacking on top of your base damageSetting to
0removes the modifier entirely, restoring normal damageOp-only — non-ops get a silent rejection via
permission-message: ""so the command won’t even appear in tab-complete for them; an extraisOp()guard is also in the codeThe modifier uses a fixed UUID so re-running the command cleanly replaces the old value instead of stacking duplicates
it doesnt work
Let me read the existing files to understand what’s going on.
Let me read all the existing project files first.
Two bugs found:
ExtraDamagePlugin.javais missing itspackagedeclaration — causes a compile/load failureAttributeModifier(UUID, String, double, Operation)constructor is deprecated/removed in 1.21 — needsNamespacedKey+EquipmentSlotGroupvariant; 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).
make the black 20 hearts instead
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_healthattribute?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!
the black tier also make the death messages vanilla
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:
“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?
“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?
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));
}
}