X Beys

So the plugin want to make is an orbital warden cannon a warden beam that goes down every time I pull 1 durability fishing rod how I get them is by using a command "/orbit stab" every time I use it does 10 hearts of damage and how I aim it is where my crosshair is facing that's where it will strike

/orbitalwarden <stab> or <nukes> <player name> <amount> the orbital nuke does the same thing as the stab but the nuke spawns beams at an 80 block radius and uses 1 durability fishing rod to spawn the nuke and it does 10 hearts of damage to the player in that radius it gets aimed the same way as the StabShot using the crosshair.

It should be triggered using a fishing rod not a command it only give you an fishing_rod if you type that command which can be used to launch the orbitals. /orbitalwarden <stab> or <nukes> <player name> <amount> the orbital nuke does the same thing as the stab but the nuke spawns beams at an 80 block radius and uses 1 durability fishing rod to spawn the nuke and it does 10 hearts of damage to the player in that radius it gets aimed the same way as the StabShot using the crosshair. So the plugin want to make is an orbital warden cannon a warden beam that goes down every time I pull 1 durability fishing rod how I get them is by using a command "/orbit stab" every time I use it does 10 hearts of damage and how I aim it is where my crosshair is facing that's where it will strike the fishing rods name is sonic boom.

The name of the stab is stab boom.

While the nukes name is nuke boom

Kodari AI
KodariSep 12 at 7:25 am 1
OrbitalWarden
A Minecraft plugin adding an orbital warden cannon system. Players receive a custom fishing rod named &quot;Sonic Boom&quot; via the /orbitalwarden command. Using the rod triggers a warden beam strike aimed at the player's crosshair, dealing 10 hearts of damage per use. Supports two modes: &quot;stab&quot; for a single targeted beam and &quot;nukes&quot; for an 80-block radius area strike, both consuming one durability per shot. Includes player-specific targeting and configurable damage amounts.

Created the OrbitalWarden plugin from scratch.

Features:

  • /orbit stab [player] [amount] gives Stab Boom fishing rods.

  • /orbit nukes [player] [amount] gives Nuke Boom fishing rods.

  • Right-click to cast the fishing rod, then reel in to fire.

  • Strikes the location under the player’s crosshair.

  • Each strike consumes 1 fishing rod durability.

  • Deals 10 hearts of damage.

  • Nuke Boom damages players within an 80-block radius and creates surrounding beam effects.

  • Includes tab completion and automatic item dropping if the inventory is full.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
10 490
src/main/java/com/kodari/orbitalwarden/OrbitalWardenPlugin.java
package com.kodari.orbitalwarden;

import org.bukkit.NamespacedKey;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public final class OrbitalWardenPlugin extends JavaPlugin {
    @Override
    public void onEnable() {
        NamespacedKey stabKey = new NamespacedKey(this, "stab_boom");
        NamespacedKey nukeKey = new NamespacedKey(this, "nuke_boom");
        OrbitalItemFactory itemFactory = new OrbitalItemFactory(stabKey, nukeKey);
        OrbitalBeamEffect beamEffect = new OrbitalBeamEffect(this);
        OrbitalService orbitalService = new OrbitalService(itemFactory, beamEffect);

        getServer().getPluginManager().registerEvents(new OrbitalListener(itemFactory, orbitalService), this);

        PluginCommand command = getCommand("orbitalwarden");
        if (command != null) {
            OrbitalCommand orbitalCommand = new OrbitalCommand(itemFactory);
            command.setExecutor(orbitalCommand);
            command.setTabCompleter(orbitalCommand);
        }
    }
}