Solomon Marsh

Put three blades on a Minecraft Bow, two for the arms, one for the front

[Viewing 1 image]

1 image attached
Kodari AI
KodariSep 30 at 4:05 pm 1
TriBladeBow
TriBladeBow is a Minecraft plugin that transforms a standard bow into a devastating three-bladed weapon. When a player equips a bow with this enchantment, three distinct blade visuals are rendered on the bow model — two positioned on the arms and one on the front. The plugin adds a custom enchantment, "Tri-Blade," obtainable through enchanting or a command. Upon firing, the bow launches three arrows in a spread pattern, dealing increased damage. The plugin includes configurable settings for blade appearance, damage multipliers, and arrow spread angles, all adjustable via a config file. Compatible with Minecraft 1.16+ and requires no external dependencies.
  • Add a Paper plugin command that gives players a tagged three-blade bow.

  • Include a resource pack model that places two blades along the bow arms and one in front, with pull-state models.

  • Set up the project for Paper 1.20.4 and Java 17.

Added the BladeBow plugin and a matching resource pack. /bladebow gives players a bow with two blades along its arms and one mounted at the front; the model also has separate draw-stage variants.

Install the resource-pack/ pack on the client for the blades to appear. The plugin targets Paper 1.20.4.

Kodari can make mistakes. Review important code before using.
Files
resource-pack
src
build.gradle
settings.gradle
Code
11 231
src/main/java/com/kodari/bladebow/BladeBowPlugin.java
package com.kodari.bladebow;

import com.cryptomorin.xseries.XMaterial;
import java.util.Arrays;
import java.util.Objects;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.plugin.java.JavaPlugin;

public final class BladeBowPlugin extends JavaPlugin implements CommandExecutor {
    private static final int MODEL_DATA = 77001;

    @Override
    public void onEnable() {
        Objects.requireNonNull(getCommand("bladebow")).setExecutor(this);
    }

    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        if (!(sender instanceof Player player)) {
            sender.sendMessage("This command can only be used by a player.");
            return true;
        }

        ItemStack bow = XMaterial.matchXMaterial("BOW")
                .map(XMaterial::parseItem)
                .orElseThrow(() -> new IllegalStateException("BOW is unavailable."));
        ItemMeta meta = Objects.requireNonNull(bow.getItemMeta());
        meta.setDisplayName(ChatColor.GOLD + "Tri-Blade Bow");
        meta.setLore(Arrays.asList(
                ChatColor.GRAY + "Two blades guard the arms.",
                ChatColor.GRAY + "A third blade leads the front."
        ));
        meta.setCustomModelData(MODEL_DATA);
        bow.setItemMeta(meta);

        player.getInventory().addItem(bow).values().forEach(item ->
                player.getWorld().dropItemNaturally(player.getLocation(), item));
        player.sendMessage(ChatColor.GREEN + "You received the Tri-Blade Bow.");
        return true;
    }
}