L

Make me a new minecraft plugin that adds a new fish item that is named "Elena Fisch" that has a description named "Ein ganz normaler Fisch!" and if you eat it and your username is coikinator you get jump boost but if you name is not coikinator fisches starts spawing slowly around you and starts just killing the person who ate the fish with diamong swords and when the player die that ate the fish the fisches despawn the plugin name is ElenaFische and the author is coikinator

Kodari AI
KodariJan 3 at 7:05 pm 3,483 (v2)

I’ll create a plugin that adds a special fish item with different effects based on the player’s username.

ElenaFische
A Minecraft plugin that adds a special fish called Elena Fisch. When eaten by the player coikinator, it grants jump boost. For all other players, aggressive fish entities spawn around them wielding diamond swords and attack until the player dies. Features custom item creation, player-specific logic, and entity management with automatic cleanup on death.

Plugin created! Here’s what it does:

Features:

  • Custom fish item “Elena Fisch” with German description

  • /elenafisch command to get the item

  • coikinator gets Jump Boost II for 30 seconds when eating

  • Other players get attacked by 10 baby zombies named “Elena Fisch” with diamond swords

  • Fish spawn every 2 seconds (total of 10 fish over 20 seconds)

  • Fish automatically despawn when the player dies

  • Uses XSeries for cross-version compatibility

The fish entities are actually baby zombies disguised as “Elena Fisch” since normal fish entities can’t hold weapons or attack players!

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
7 254
src/main/java/de/coikinator/elenafische/ElenaFische.java
package de.coikinator.elenafische;

import org.bukkit.plugin.java.JavaPlugin;

public class ElenaFische extends JavaPlugin {
    
    @Override
    public void onEnable() {
        getCommand("elenafisch").setExecutor(new ElenaFischCommand());
        getServer().getPluginManager().registerEvents(new FishConsumptionListener(), this);
        
        getLogger().info("ElenaFische aktiviert!");
    }
    
    @Override
    public void onDisable() {
        getLogger().info("ElenaFische deaktiviert!");
    }
}