xkendipl

create a plugin on version 1.21.4 that adds 3 legendary weapons, add command /eventitems that open a INVENTORY GUI with those legendary items, make it that a player can take those items from this INVENTORY GUI also remember to add cool functions to those items

xkendipl

and?

Kodari AI
KodariJul 6 at 3:30 pm 6

What would you like me to build? Describe your plugin (or bot/mod/extension) and I’ll get started immediately.

xkendipl

create a plugin on version 1.21.4 that adds 3 legendary weapons, add command /eventitems that open a INVENTORY INVENTORY GUI with those legendary items, make it that a player can take those items from this INVENTORY INVENTORY GUI also remember to add cool functions to those items

Kodari AI
KodariJul 6 at 3:34 pm 22
LegendaryWeapons
Adds 3 powerful legendary weapons to Minecraft 1.21.4 with unique abilities. Soul Reaper (Netherite Sword) heals on kill and applies Wither. Tempest Bow summons lightning strikes on arrow impact. Inferno Axe ignites targets and spreads AOE fire to nearby enemies. A `/eventitems` command opens a decorated inventory GUI where players can freely take any of the three legendary items.

Here’s the full plan before writing:

  • WeaponManager — builds the 3 legendary ItemStacks with PersistentDataContainer tags + enchants + lore

  • WeaponListener — drives all 3 weapon abilities via events

  • EventItemsGUI — 27-slot inventory with glass-pane borders, 3 weapon slots; click gives a copy

  • EventItemsCommand — handles /eventitems

  • GUI framework — InventoryHandler, InventoryButton, InventoryGUI, GUIManager, GUIListener

  • Main class wires everything together


Here’s every piece of the plugin and what each weapon does:


☠ Soul Reaper (Netherite Sword)

Ability
Trigger
Soul Drain
Killing any mob heals you
4 hearts
, spawns a soul vortex particle burst, and fires 3 cosmetic wither skulls
Wither Touch
Every hit has a
20% chance
to inflict Wither II on the target for 3 seconds
Death Aura
Soul + soul-fire particles spawn on every kill

⚡ Tempest Bow (Bow)

Ability
Trigger
Thunder Strike
Every arrow impact summons a
real lightning bolt
at the exact hit location
Storm Surge
That bolt
chains
to up to 3 nearby enemies within 6 blocks, dealing damage
Tempest Mark
Every chained enemy receives the
Glowing
status effect for 5 seconds

🔥 Inferno Axe (Netherite Axe)

Ability
Trigger
Inferno
Every hit
sets the target on fire
for 5 seconds
Wildfire
Any enemies within
4 blocks
of the target also get ignited
Scorched Earth
Flame + lava particle burst spawns on every swing

All weapons are unbreakable, have hidden enchant details replaced by lore descriptions, and are identified via PersistentDataContainer so they survive server restarts. Players open /eventitems → click any weapon → it goes straight into their inventory.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
12 712
src/main/java/com/kodari/legendaryweapons/LegendaryWeapons.java
package com.kodari.legendaryweapons;

import com.kodari.legendaryweapons.commands.EventItemsCommand;
import com.kodari.legendaryweapons.inventory.gui.GUIListener;
import com.kodari.legendaryweapons.inventory.gui.GUIManager;
import com.kodari.legendaryweapons.weapons.WeaponListener;
import com.kodari.legendaryweapons.weapons.WeaponManager;
import org.bukkit.plugin.java.JavaPlugin;

public class LegendaryWeapons extends JavaPlugin {

    private GUIManager guiManager;

    @Override
    public void onEnable() {
        WeaponManager.init(this);

        guiManager = new GUIManager();

        getServer().getPluginManager().registerEvents(new GUIListener(guiManager), this);
        getServer().getPluginManager().registerEvents(new WeaponListener(), this);

        getCommand("eventitems").setExecutor(new EventItemsCommand(guiManager));

        getLogger().info("LegendaryWeapons enabled — 3 legendary weapons ready.");
    }

    @Override
    public void onDisable() {
        getLogger().info("LegendaryWeapons disabled.");
    }
}