sirappleshake

Create a Minecraft Paper plugin for version 1.21.11.

The plugin should apply a special damage mechanic only to the player with the username "SirAppleshake".

CORE MECHANIC:

  • If SirAppleshake has MORE than 3 hearts (6 HP), damage works normally.
  • If SirAppleshake has 3 hearts (6 HP) or LESS, then ALL incoming damage is reduced to 5% of the original damage.

IMPORTANT:

This must apply to ALL damage types, including:

  • Melee damage (sword, axe, mace, spear, etc.)
  • Fall damage
  • Projectile damage
  • Explosion damage
  • Fire / lava
  • Magic
  • Any other damage source

EXAMPLE:

Player has 3 hearts left.

Someone deals 10 damage.

Instead of taking 10 damage, the player only takes 0.5 damage (5%).

SPECIAL CASE:

If SirAppleshake is ABOVE 3 hearts, damage should NOT be reduced.

Example:

Player has 20 HP.

Someone deals 50 damage with a mace.

The player dies normally.

Kodari AI
KodariMar 10 at 3:00 am 5,385 (v2)

I’ll create a specialized damage modifier plugin for SirAppleshake.

SirAppleshakeDamageMod
A specialized damage modifier that reduces incoming damage to 5% for player SirAppleshake when their health drops to 3 hearts or below. Applies to all damage types including melee, fall damage, projectiles, explosions, fire, and magic. Above 3 hearts, damage works normally. This creates a unique survival mechanic for the targeted player.

Plugin created! This implements the special damage mechanic exclusively for SirAppleshake.

How it works:

  • Listens to ALL damage events (EntityDamageEvent covers every damage type)

  • Only activates for player “SirAppleshake”

  • When health is 3 hearts (6 HP) or below, reduces incoming damage to 5%

  • When health is above 3 hearts, damage works normally

  • Uses HIGH event priority to catch damage before other plugins modify it

The plugin is lightweight with no configuration needed since the mechanic is specifically designed for one player.

sirappleshake

change the plugins name to SSS

Kodari AI
KodariMar 10 at 3:00 am 4,872 (v2)

Plugin name changed to “SSS” in plugin.yml, settings.gradle, and logger messages.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
5 83
src/main/java/com/sirappleshake/damagemod/SirAppleshakeDamageMod.java
package com.sirappleshake.damagemod;

import com.sirappleshake.damagemod.listener.DamageListener;
import org.bukkit.plugin.java.JavaPlugin;

public class SirAppleshakeDamageMod extends JavaPlugin {

    @Override
    public void onEnable() {
        getServer().getPluginManager().registerEvents(new DamageListener(), this);
        getLogger().info("SSS has been enabled!");
    }

    @Override
    public void onDisable() {
        getLogger().info("SSS has been disabled!");
    }
}