Vasuphan H.

Custom weapons like the scythe that dashes you, a battle axe the swings

Kodari AI
KodariOct 14 at 8:31 am 2
WeaponMastery
WeaponMastery introduces custom weapons to Minecraft servers, each with unique active abilities. The Scythe performs a dash attack, launching the player forward while dealing damage to enemies in the path. The Battle Axe executes a powerful sweeping swing, damaging all nearby mobs in a wide arc with knockback. Players trigger abilities via right-click, with configurable cooldowns, damage values, and particle effects. The plugin includes a crafting recipe system for obtaining weapons, permission-based access, and full configuration files for balancing. Custom item models and lore display weapon stats, while cooldown indicators show readiness. Built for Paper/Spigot 1.20+, WeaponMastery enhances combat with skill-based mechanics that reward timing and positioning.

I built both weapons as a single plugin, with the Reaper Scythe and the Battle Axe configurable in config.yml.

  • Reaper Scythe (IRON_HOE): Right-click to dash forward horizontally. For the next 8 ticks it damages each living entity that comes within 1.6 blocks, once per dash. Default cooldown is 4 seconds.

  • Battle Axe (IRON_AXE): Right-click to swing in a 120° arc up to 3 blocks out. Every foe in the arc takes damage and is knocked back. Default cooldown is 2 seconds.

  • Giving the weapons: /weapons give <scythe|battle-axe> [player], which requires the weapons.give permission (op by default).

Right-clicking with either weapon is cancelled, so the hoe won’t till dirt and the axe won’t strip logs. Weapons are recognised by their display name, so renaming one on an anvil will stop it working as a weapon.

Files are in src/main/java/com/example/weapons/ with plugin.yml and config.yml under src/main/resources/. Damage, dash speed, range, arc, knockback and cooldowns are all tunable in config.yml. Compile from the top bar to get the jar.

Kodari can make mistakes. Review important code before using.
Files
src
Code
8 431
src/main/java/com/example/weapons/WeaponsPlugin.java
package com.example.weapons;

import com.example.weapons.command.WeaponCommand;
import com.example.weapons.listener.WeaponListener;
import com.example.weapons.manager.WeaponManager;
import org.bukkit.plugin.java.JavaPlugin;

public class WeaponsPlugin extends JavaPlugin {

    private WeaponManager weaponManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        weaponManager = new WeaponManager(this);
        getServer().getPluginManager().registerEvents(new WeaponListener(this), this);
        WeaponCommand command = new WeaponCommand(this);
        getCommand("weapons").setExecutor(command);
        getCommand("weapons").setTabCompleter(command);
    }

    public WeaponManager getWeaponManager() {
        return weaponManager;
    }
}