guardianj8

Create a custom items, its name is shrieker, basically it will shoot a sonic blast like the warden whenever you shoot it, it also its named "Shrieker" with a dark blue name, it also cant be spammed, with you having to shoot the crossbow for the sonic blast to occur, simply clicking wont do anything, you must shoot the Shrieker Crossbow

Kodari AI
KodariJul 6 at 9:16 am 1

I’ll create a plugin that adds the Shrieker custom crossbow with sonic blast effects.

Shrieker
A custom crossbow that fires a warden-style sonic blast when shot. The Shrieker crossbow has a dark blue name and cannot be spammed due to a configurable cooldown. Simply clicking does nothing — the player must fully charge and shoot the crossbow to trigger the sonic blast, which deals damage and knockback to entities in a cone ahead of the player.
Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
7 326
src/main/java/com/shrieker/ShriekerPlugin.java
package com.shrieker;

import org.bukkit.plugin.java.JavaPlugin;

public class ShriekerPlugin extends JavaPlugin {

    private static ShriekerPlugin instance;

    @Override
    public void onEnable() {
        instance = this;
        saveDefaultConfig();
        getCommand("shrieker").setExecutor(new ShriekerCommand());
        getServer().getPluginManager().registerEvents(new ShriekerListener(), this);
    }

    @Override
    public void onDisable() {
        instance = null;
    }

    public static ShriekerPlugin getInstance() {
        return instance;
    }
}