Gamer Boro

create a plugin that make random enderman aggressive to random players in end dimension for minecraft 26.2 paper 121

Kodari AI
KodariSep 14 at 4:14 am 1
EndermanRampage
EndermanRampage is a Minecraft Paper plugin that introduces unpredictable chaos to the End dimension. When a player enters the End, the plugin randomly selects a subset of Endermen in the world and marks them as aggressive. These aggressive Endermen will target and pursue random players within a configurable radius, ignoring the usual provocation rules. The plugin features configurable aggression probability, target selection intervals, and particle effects to indicate hostile Endermen. It also includes a cooldown system to prevent constant targeting and supports per-world configuration, allowing server admins to enable the mechanic only in the End. The plugin integrates with Paper 1.21 API and provides clear configuration options for spawn rates, aggression duration, and visual feedback.
  1. Create a Paper plugin project targeting Java 21 and Paper 1.21.

  2. Add configurable scheduled selection of End dimension worlds, Endermen, and players.

  3. Register lifecycle management and plugin configuration.

Created the EndermanAggro Paper plugin.

  • Targets Paper 1.21.1 and Java 21.

  • Every configured interval, selects a random End dimension with both players and Endermen.

  • Assigns a random Enderman to attack a random player in that world.

  • Includes configurable interval-ticks and initial-delay-ticks.

  • Added Gradle project setup, plugin.yml, configuration, and lifecycle management.

Gamer Boro

paper version is 121 and minecraft version is 26.2

Kodari AI
KodariSep 14 at 4:15 am 1

The project currently targets Paper API 1.21.1 with api-version: 1.21.

Minecraft 26.2 does not match the standard Minecraft/Paper version format. Please confirm whether you mean:

  • Minecraft 1.21.2 — I’ll retarget the dependency to paper-api:1.21.2-R0.1-SNAPSHOT.

  • Minecraft 1.26.2 — this requires a Paper API release with that exact version; it cannot be safely configured until that API exists.

  • Another version, such as 1.21.6 or 1.21.7.

Gamer Boro

make it so that we can customize the enderman damage and ender dragon damage to players

Kodari AI
KodariSep 14 at 6:54 am 1
  1. Add configurable Enderman and Ender Dragon damage values.

  2. Apply those values to the corresponding damage events in the End dimension.

Added configurable damage values:

YAML
enderman-damage: 7.0
ender-dragon-damage: 10.0
  • Enderman damage is applied to players in the End.

  • Ender Dragon contact and dragon-fireball damage are configurable.

  • Values use Minecraft health points, so 10.0 equals 5 hearts.

  • Damage is clamped to zero or higher.

Gamer Boro

i want it to be able to customize every end dimension mobs damage to players

Kodari AI
KodariSep 14 at 7:02 am 1
  1. Inspect the current damage listener and configuration.

  2. Replace the two fixed damage settings with configurable damage per End-dimension mob type.

  3. Preserve the existing random Enderman aggression and dragon behavior, with safe defaults for all relevant End mobs.

Updated the plugin to support configurable damage for every mob type in the End.

Configure values in config.yml:

YAML
mob-damage:
  ENDERMAN: 7.0
  ENDER_DRAGON: 10.0
  SHULKER: 5.0
  ENDERMITE: 4.0
  • Damage is measured in health points: 10.0 equals 5 hearts.

  • Supports direct mob attacks.

  • Supports projectiles fired by mobs, such as dragon fireballs and shulker bullets.

  • Supports Ender Dragon area-effect damage.

  • Add any Bukkit entity type to customize additional mobs or mobs added by other plugins.

  • Remove a mob from the section to leave its normal Minecraft damage unchanged.

  • Restart the server after changing the configuration.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
6 208
src/main/java/com/example/endermanaggro/EndermanAggroPlugin.java
package com.example.endermanaggro;

import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.event.HandlerList;

public final class EndermanAggroPlugin extends JavaPlugin {

    private EndermanAggroManager manager;

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

        manager = new EndermanAggroManager(this);
        manager.start();
    }

    @Override
    public void onDisable() {
        if (manager != null) {
            manager.stop();
            HandlerList.unregisterAll(manager);
        }
    }
}