larpuro5

Develop the "Oklune SMP" plugin for Minecraft 1.21.11 that introduces a variety of unique, powerful weapons with special abilities and effects. Each weapon should require a custom crafting recipe involving rare materials, making them challenging to obtain without extensive gameplay effort. Ensure the weapons are balanced, providing significant advantages in combat without leading to one-hit kills, and include features such as configurable abilities, cooldowns, and enchantment compatibility for further customization.

Kodari AI
KodariAug 20 at 3:11 pm 3
OkluneWeapons
Introduces unique, powerful weapons with special abilities and effects for Oklune SMP. Each weapon requires custom crafting recipes with rare materials, ensuring challenging acquisition. Features configurable abilities, cooldowns, and enchantment compatibility. Weapons provide combat advantages without one-hit kills, maintaining balance. Includes custom crafting system, ability triggers, cooldown management, and configuration files for server customization.
  1. Core plugin and weapon registry: add five custom weapons, persistent item identity, rare-material recipes, and configurable stats.

  2. Gameplay systems: add cooldown tracking, right-click abilities, combat effects, and enchantment compatibility.

  3. Administration and packaging: add /oklune commands, configuration, plugin metadata, and Gradle build files.

Implemented the Oklune SMP plugin from scratch with:

  • Five rare custom weapons:

    • Starfall Blade

    • Voidbreaker Axe

    • Frostbite Trident

    • Emberheart Gauntlet

    • Aether Bow

  • Unique right-click abilities with:

    • Configurable damage

    • Radius and knockback

    • Status effects

    • Fire and freeze effects

    • Movement boosts

    • Per-weapon cooldowns

  • Persistent weapon identity using PersistentDataContainer

  • Custom rare-material crafting recipes

  • Enchantment compatibility toggle

  • Passive Emberheart Gauntlet burn effect

  • /oklune give <weapon> [player]

  • /oklune reload

  • Tab completion

  • Configurable settings in config.yml

  • Paper 1.21.11 Gradle setup

  • XSeries-based cross-version material, sound, particle, and potion handling

larpuro5

How do I get the recipes and use the abilities?

Kodari AI
KodariAug 20 at 4:07 pm 1

Getting the weapons

The recipes are registered automatically when the plugin starts. Use a crafting table and place the materials in these exact 3×3 patterns.

Starfall Blade

Result: Netherite Sword

  • A = Ancient Debris

  • N = Nether Star

  • E = Echo Shard

Plain Text
A N A
N E N
A N A

Ability: Arc of the Stars


Voidbreaker Axe

Result: Netherite Axe

  • A = Ancient Debris

  • E = Echo Shard

  • D = Diamond Block

  • N = Nether Star

Plain Text
A E A
D N D
A E A

Ability: Gravity Well


Frostbite Trident

Result: Trident

  • I = Ice

  • H = Heart of the Sea

  • N = Nether Star

  • E = Echo Shard

  • The empty space must remain empty.

Plain Text
· I ·
H N H
E N E

Ability: Winter’s Grasp


Emberheart Gauntlet

Result: Netherite Hoe

  • B = Blaze Rod

  • D = Dragon’s Breath

  • N = Nether Star

Plain Text
B D B
D N D
B D B

Ability: Inferno Pulse


Aether Bow

Result: Bow

  • S = String

  • E = Ender Pearl

  • N = Nether Star

Plain Text
S E S
E N E
S E S

Ability: Windstep

Using abilities

Hold the custom weapon in your main hand and right-click. Abilities do not activate from the off-hand.

  • Starfall Blade: Damages nearby enemies and launches them backward.

  • Voidbreaker Axe: Damages nearby enemies in front of you, pulls them toward the gravity point, and applies Weakness.

  • Frostbite Trident: Damages nearby enemies, applies Slowness, and freezes them.

  • Emberheart Gauntlet: Damages and burns nearby enemies. Its normal melee attacks also apply a short burn.

  • Aether Bow: Propels you forward and gives you a temporary Speed boost.

Each ability has a cooldown. The default cooldowns are:

Weapon
Cooldown
Starfall Blade
8 seconds
Voidbreaker Axe
12 seconds
Frostbite Trident
10 seconds
Emberheart Gauntlet
9 seconds
Aether Bow
10 seconds

The plugin identifies weapons using hidden item data, so renamed ordinary weapons will not gain these abilities. Enchantments are allowed by default and can be disabled in config.yml with:

YAML
settings:
  allow-enchantments: false

Administrators can also give weapons directly with:

Plain Text
/oklune give <weapon>

For example:

Plain Text
/oklune give starfall-blade
larpuro5

Can you make a new version that is an overhaul? More weapons, new techniques, and when someone has the dragon egg their hearts turn up to 20. Make everything better, basically.

Kodari AI
KodariAug 20 at 4:18 pm 3
  1. Audit the existing weapon, listener, command, and configuration architecture.

  2. Expand the arsenal and replace the ability system with more varied, configurable techniques.

  3. Add the Dragon Egg owner health bonus with safe join/respawn/item-transfer handling.

  4. Update recipes, settings, commands, and player-facing documentation.

Implemented the Oklune SMP 2.0 overhaul.

New weapons and techniques

  • Skyfall Hammer — Meteor Crash

    • Area damage

    • Launches nearby enemies upward

    • Shockwave particles and explosion effects

  • Soulchain Crossbow — Soulchain

    • Targets enemies in front of the player

    • Deals damage

    • Pulls enemies closer

    • Applies Weakness

  • Verdant Reaper — Bloomguard

    • Damages and poisons nearby enemies

    • Heals the wielder

    • Grants temporary Regeneration

  • Duskstep Dagger — Phase Step

    • Teleports the player forward

    • Grants short Invisibility and Resistance

    • Prevents teleporting into solid blocks

The original five relics remain available, bringing the total to nine custom weapons.

Dragon Egg power

Players who possess the Dragon Egg anywhere in their inventory or off-hand now receive:

  • 20 total hearts

  • Automatic health restoration when they gain the egg

  • Health safely reduced back to normal when they lose it

  • Detection after pickup, dropping, inventory movement, joining, respawning, and changing worlds

The default health values are configurable:

YAML
dragon-egg:
  enabled: true
  check-interval-ticks: 20
  normal-max-health: 20.0
  max-health: 40.0

40.0 health equals 20 hearts.

Configuration

Every new weapon has configurable:

  • Damage

  • Cooldown

  • Range or radius

  • Knockback/pull strength

  • Effect durations

  • Healing and movement values

  • Enable/disable toggles

The plugin version and Gradle project were updated to 2.0.0.

larpuro5

I don't think the abilities are working, try to fix that and in the weapon description add the ability keybind/hotkey thing that shows you what to press. Just finalize everything so I can compile.

Kodari AI
KodariAug 20 at 4:23 pm 1
  1. Repair ability input handling and cooldown execution.

  2. Add visible hotkey instructions to every weapon description.

  3. Resolve compilation/runtime issues in the final plugin wiring and package it for compilation.

  1. Fixed ability activation: abilities now trigger reliably on main-hand Right Click for both air and blocks, even when another plugin has cancelled the interaction.

  2. Added hotkey lore: every newly crafted or admin-given weapon now displays:

    • Hotkey: Right Click

    • Ability name

    • Ability description

    • Cooldown

  3. Fixed plugin.yml: corrected the invalid description indentation that could prevent the plugin from loading.

  4. Updated version: plugin and Gradle version are now 2.0.1.

Compile from the project root with:

Shell
gradle build

The compiled JAR will be located at:

Plain Text
build/libs/OkluneSMP-2.0.1.jar

Place that JAR in the server’s plugins folder, restart the server, and use /oklune give <weapon> to test an ability. Hold the weapon in your main hand and right-click.

larpuro5

make it that with the /oklune command you can see the recipes of the weapons, polish everything and add a texture pack compatibility that i wil give you later on. make the descriptions and weapons cleaner and more descriptive.

Kodari AI
KodariAug 20 at 5:57 pm 2
  1. Add /oklune recipes with readable weapon recipe previews and tab completion.

  2. Polish weapon names, lore, ability descriptions, and recipe presentation.

  3. Add texture-pack compatibility hooks using configurable custom model data, without requiring the pack yet.

  4. Finalize command/config/plugin wiring for a clean compile-ready release.

Implemented the polished Oklune SMP 2.1 overhaul.

/oklune recipes

Players can now view all enabled weapon recipes:

Plain Text
/oklune recipes

View a specific recipe:

Plain Text
/oklune recipes starfall-blade
/oklune recipes duskstep-dagger

The command displays:

  • Weapon name

  • Technique name

  • 3×3 crafting pattern

  • Ingredient key

  • Full material names

  • Final crafted result

Recipes are also tab-completable.

Command access

Recipe viewing is available to everyone:

Plain Text
/oklune recipes

Administrative commands still require oklune.admin:

Plain Text
/oklune give <weapon> [player]
/oklune reload

Reloading now refreshes both the configuration and registered recipes.

Cleaner weapon descriptions

Weapon lore now includes:

  • Oklune Relic branding

  • Technique name

  • Ability activation instruction

  • Configured cooldown

  • Detailed ability description

  • Enchantment compatibility status

Example:

Plain Text
OKLUNE RELIC
» Technique: Arc of the Stars
» Activate: Right Click
» Cooldown: 8 seconds

Release a burst of astral force that damages
nearby enemies and hurls them away.

Enchantments: Compatible

Texture-pack compatibility

Added configurable Custom Model Data support:

YAML
texture-pack:
  enabled: true
  default-model-data: 0
  models:
    starfall-blade: 0
    voidbreaker-axe: 0
    frostbite-trident: 0
    emberheart-gauntlet: 0
    aether-bow: 0
    skyfall-hammer: 0
    soulchain-crossbow: 0
    verdant-reaper: 0
    duskstep-dagger: 0

When you provide the texture pack’s model-data values, replace the corresponding 0 values. The plugin will automatically apply them to crafted and administrator-given weapons.

Updated version:

Plain Text
OkluneSMP 2.1.0

Compile with:

Shell
gradle build

The output JAR will be located at:

Plain Text
build/libs/OkluneSMP-2.1.0.jar
larpuro5

replace nether stars with netherite

Kodari AI
KodariAug 20 at 6:26 pm 1

Replacing all Nether Star recipe ingredients with Netherite Ingots. I’ll keep the existing recipe layouts and N key so the /oklune recipes display remains consistent.

larpuro5

is every nether star replaced in the latest build?

Kodari AI
KodariAug 20 at 6:27 pm 1

No. The Nether Star replacement was not actually applied or compiled in the latest build. The current build still uses Nether Stars in the recipes.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
12 1,063
src/main/java/com/oklune/smp/OkluneSMPPlugin.java
package com.oklune.smp;

import com.oklune.smp.command.OkluneCommand;
import com.oklune.smp.weapon.CooldownManager;
import com.oklune.smp.weapon.DragonEggManager;
import com.oklune.smp.weapon.DragonEggListener;
import com.oklune.smp.weapon.WeaponListener;
import com.oklune.smp.weapon.WeaponManager;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class OkluneSMPPlugin extends JavaPlugin {
    private WeaponManager weaponManager;
    private CooldownManager cooldownManager;
    private DragonEggManager dragonEggManager;

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

        cooldownManager = new CooldownManager();
        weaponManager = new WeaponManager(this, cooldownManager);
        weaponManager.registerRecipes();
        dragonEggManager = new DragonEggManager(this);
        dragonEggManager.start();

        Bukkit.getPluginManager().registerEvents(new WeaponListener(weaponManager), this);
        Bukkit.getPluginManager().registerEvents(new DragonEggListener(dragonEggManager), this);

        OkluneCommand command = new OkluneCommand(this, weaponManager);
        if (getCommand("oklune") != null) {
            getCommand("oklune").setExecutor(command);
            getCommand("oklune").setTabCompleter(command);
        }
    }

    @Override
    public void onDisable() {
        if (dragonEggManager != null) {
            dragonEggManager.stop();
        }
        if (cooldownManager != null) {
            cooldownManager.clear();
        }
    }

    public WeaponManager getWeaponManager() {
        return weaponManager;
    }
}