cometgaming_

i want u to make like i need u to make me a fishing rod that wont break like the dura on it will keep depleting but when it gets to 0 and breaks a new one its like 10 dura spawn right back instantly in the exact slot it breaked from and i want this fishing rod to work as a switch like u need too left click to change between mods like there will be stab and nuke that ur gonna use from the plugin above and i need the fishing rod to have a cooldown after usage like if i use the stab shot from the stab mode it will have like a 1 min cooldown and if i use the nuke shot from the nuke mode i want it to put it on a 2 min cooldown and i want it to display like a sub title the mode im in when im switching and i want the nuke shot and the stab shot to be used when right clicking with the fishing rod like i deploy the fishing rod and when i retract it it will go of right at the block im looking at and thats preatty much it and the nuke is like 5 rings of tnt that are each smaller then the other one and a stab is a line of tnt that goes all the way to the bedrock and blows up instantly and by the way the nuke has too spawn like 70 block above the block that i looked at to deploy it

Kodari AI
KodariSep 23 at 1:15 pm 1
  1. Set up a standalone Paper plugin and /modrod command to give the custom rod.

  2. Add left-click mode switching, subtitle feedback, and separate 1-minute/2-minute cooldowns.

  3. Trigger shrinking TNT rings 70 blocks above the targeted block for Nuke, and an instant vertical TNT line to bedrock for Stab; replace a broken rod with one at 10 durability in the same slot.

Created a Paper plugin with /modrod (OP-only), which gives a fishing rod that switches between STAB and NUKE modes on left-click and shows the active mode in the subtitle.

Cast and reel in while looking at a block to fire: STAB launches a vertical TNT line toward bedrock with a 1-minute cooldown; NUKE spawns five shrinking TNT rings 70 blocks above the target with a 2-minute cooldown. When the special rod would break, its damage resets to leave 10 durability in the same slot.

The plugin targets Paper 1.20.4 and Java 17. I haven’t run a build or tested it in-game.

cometgaming_

ok so i want the mode to be able to switch even by left click-ing in air and i want the stab to go all the way to bedrock with all being tnts and i want that line to have like 200 tnts that all explode at the same time and the nuke i need it to have 5 rings and a tnt in the middle like i need the nuke too spawn like this there are akk tnts in a single block and the a tnt explodes and knocks all the tnts like this 1 in the middle the it comes the first ring that has 10 tnts then the second that has 30 then the third that has 70 tnts then the fourth that has 150 and then the fifth that has 270 tnts and keep in mind that all the rings are deployed at the same time i just told u the order and the amount of tnts and dont display the mode like a title keep it only the subtitle above the hotbar and make the cooldown be on the rod like item cooldown like if i use an ability i cant use the other one

Kodari AI
KodariSep 23 at 1:33 pm 1
  1. Switch modes on left-clicks in air or on blocks, keeping mode feedback in the action bar only.

  2. Make Stab launch 200 TNTs toward bedrock simultaneously.

  3. Make Nuke spawn its center TNT and five specified rings simultaneously; share one item cooldown across both abilities.

Updated the rod: left-clicking in air or on a block switches modes and shows the mode only in the action bar. Stab now spawns 200 TNTs down to bedrock with a 1-tick fuse. Nuke spawns a center TNT plus rings of 10, 30, 70, 150, and 270 TNTs, all at once, 70 blocks above the target. Both abilities now use the fishing rod’s item cooldown, so either ability blocks the other until its cooldown expires.

cometgaming_

i want the nuke to look like this like the tnts positioned and the stab i need it to replace an entire line from bedrock to like 10 blocks above the block i deployed it at and instead of every block i want to be 3 primed tnt that instantly explodes the line doesnt also replaces bedrock btw and change the name of the rod from modrod to Orbit

1 image attached
Kodari AI
KodariSep 23 at 1:39 pm 1
  1. Match the Nuke TNT placement to the image: a center TNT with five concentric rings.

  2. Change Stab to a vertical column from bedrock level up to 10 blocks above the target, with three instantly primed TNTs per block and no bedrock replacement.

  3. Rename the rod to Orbit.

Updated the rod name to Orbit. The Nuke now places its center TNT and five evenly spaced circular rings at radii based on their TNT counts, all at the same time. Stab now spawns three instantly primed TNTs at each vertical position from just above bedrock to 10 blocks above the target; bedrock itself is not replaced.

cometgaming_

ok u switched the nuke shot to the stab mode and the stab to the nuke mode like swap them back like they need to be and make the cooldown on the nuke 20 seconds and the cooldown on the stab 15 seconds

Kodari AI
KodariSep 23 at 1:45 pm 1
  1. Restore the correct ability-to-mode mapping for Stab and Nuke.

  2. Set Nuke’s cooldown to 20 seconds and Stab’s to 15 seconds.

[Generation stopped]

cometgaming_

and also make the tnt rings more spread out like the image and more gathered around like dont leave too much space between the rings

Kodari AI
KodariSep 23 at 1:46 pm 1
  1. Restore the Stab and Nuke abilities to their matching modes.

  2. Set Nuke cooldown to 20 seconds and Stab cooldown to 15 seconds.

  3. Adjust the Nuke rings to be more spread out while keeping the gaps between rings small.

Updated Orbit’s cooldowns: Stab 15 seconds, Nuke 20 seconds. The mode mapping remains correct—STAB fires the vertical TNT line, and NUKE fires the rings. I tightened the ring spacing to 3 blocks between rings while spreading them across radii of 5–17 blocks.

cometgaming_

make the nuke look exactly like this t he exact same like this

1 image attached
Kodari AI
KodariSep 23 at 1:50 pm 1
  • Keep the center TNT and the five existing ring counts.

  • Resize the ring radii to match the screenshot’s expanding circular layout while keeping neighboring rings close together.

Adjusted the Nuke to use five increasingly wider, evenly spaced circular rings (radii 5, 12, 22, 34, and 48 blocks) around the center TNT, matching the screenshot’s overall shape more closely. The ring TNT counts are unchanged.

cometgaming_

make the stab shot only go 4 blocks above the target instead of 10 and make the nuke more compacted like leave 1 block space between the rings and make the rings be less overloaded with tnt and make the center also have tnts so make the nuke like this there will be more tnt to the center and as it goes farther it gets less and less like the image i sent you

1 image attached
Kodari AI
KodariSep 23 at 1:57 pm 1
  1. Lower Stab’s top endpoint to 4 blocks above the target.

  2. Make Nuke denser at the center, with fewer TNTs outward and roughly 1-block gaps between rings.

Updated Stab to reach 4 blocks above the target. Nuke now has a denser center of 20 TNTs, with five progressively lighter rings of 16, 12, 8, 6, and 4 TNTs at radii 2, 4, 6, 8, and 10 blocks. All rings still spawn together.

cometgaming_

make it change modes only when u left click and when its in stab mode make it anly stab shot no matter what and when its nuke mode make it nuke no matter what

Kodari AI
KodariSep 23 at 2:02 pm 1

Orbit already switches modes only on left-clicking in air or on a block. When you reel in, STAB mode fires only Stab and NUKE mode fires only Nuke; right-clicking to cast does not change the mode.

cometgaming_

https://modrinth.com/plugin/orbitalstrike-plugin?version=1.21.11&loader=paper use the nukes and stabs from this plugin

Kodari AI
KodariSep 23 at 2:07 pm 1
  1. Adapt the reference Nuke: one center TNT plus 10 expanding rings, spawned overhead and launched together.

  2. Adapt its Stab tunnel: two offset, instant TNTs every other block down to minimum world height.

  3. Keep Orbit’s existing mode selection and per-mode cooldowns; include the reference project’s MIT license notice.

Adapted Orbit’s Nuke and Stab to the linked plugin’s strike mechanics. Nuke now spawns a center TNT and 10 overhead rings (42–60 TNTs per ring), holds them briefly, then releases them outward together. Stab now sends two offset, instant-fuse TNTs downward every other block to the world’s minimum height. Added the reference project’s MIT license notice.

cometgaming_

ok revert the stab shot and keep only the nuke shot from the plugin i sent u but make the nuke have only 1-2 blocks of air between rings and make the rings Circuit Breaked like the rings doesnt have to be exactly perfect circle

Kodari AI
KodariSep 23 at 2:12 pm 1
  1. Revert Stab to Orbit’s previous vertical TNT shot, keeping its 4-block-above-target limit.

  2. Keep the reference Nuke, but compact its rings and break up their circular outlines.

Restored Stab to Orbit’s vertical TNT shot, with three TNTs per level from bedrock level up to 4 blocks above the target; bedrock is left intact. Kept the reference-style Nuke, tightened ring spacing to 3 blocks, and added uneven gaps and slight irregularity so the rings look broken rather than perfectly circular.

cometgaming_

the stab doesnt work anymore can u make the stab be used on the stab mode and only on the stab mode and the nuke shot only on the nuke mode and not stab mode please?

Kodari AI
KodariSep 23 at 2:18 pm 1

STAB mode now launches only the Stab shot, and NUKE mode launches only the Nuke shot. Each keeps its own cooldown: 15 seconds for Stab and 20 seconds for Nuke.

cometgaming_

can u use the old stab shot that was spawning 3 primed tnt per block and all the tnt exploded at the same time and it gone just 4 blocks above the surface

Kodari AI
KodariSep 23 at 3:17 pm 1

Restored Stab to spawn 3 primed TNT per block, all with the same fuse timing, from the target’s surface up to 4 blocks above it.

cometgaming_

the stab ability doesnt work anymore because the mod changes when u right click and it shouldnt

Kodari AI
KodariSep 23 at 3:21 pm 1

Right-clicking no longer switches modes. The rod only changes modes on a main-hand left-click, so right-click can be used to cast while keeping the selected STAB or NUKE mode.

Kodari can make mistakes. Review important code before using.
Files
build.gradle
ORBITALSTRIKE-MIT-LICENSE.txt
plugin.yml
settings.gradle
TntModesPlugin.java
Code
5 357
TntModesPlugin.java
package com.kodari.tntmodes;

import com.cryptomorin.xseries.XMaterial;
import net.md_5.bungee.api.ChatMessageType;
import net.md_5.bungee.api.chat.TextComponent;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.NamespacedKey;
import org.bukkit.World;
import org.bukkit.block.Block;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.entity.TNTPrimed;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.block.Action;
import org.bukkit.event.player.PlayerFishEvent;
import org.bukkit.event.player.PlayerItemDamageEvent;
import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.inventory.EquipmentSlot;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.Damageable;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.persistence.PersistentDataType;
import org.bukkit.util.Vector;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Objects;

public final class TntModesPlugin extends org.bukkit.plugin.java.JavaPlugin implements Listener, CommandExecutor {
    private static final int STAB_COOLDOWN_TICKS = 15 * 20;
    private static final int NUKE_COOLDOWN_TICKS = 20 * 20;

    private Material fishingRodMaterial;
    private NamespacedKey rodKey;
    private NamespacedKey modeKey;

    @Override
    public void onEnable() {
        fishingRodMaterial = XMaterial.matchXMaterial("FISHING_ROD")
                .map(XMaterial::parseMaterial)
                .orElseThrow(() -> new IllegalStateException("Fishing rod material is unavailable"));
        rodKey = new NamespacedKey(this, "mode_rod");
        modeKey = new NamespacedKey(this, "rod_mode");

        getServer().getPluginManager().registerEvents(this, this);
        Objects.requireNonNull(getCommand("modrod")).setExecutor(this);
    }

    @EventHandler
    public void onModeSwitch(PlayerInteractEvent event) {
        // Mode switching only happens on a left-click. Right-click (air or block) is reserved
        // for casting the rod and must never change the mode.
        if (event.getHand() != EquipmentSlot.HAND ||
                (event.getAction() != Action.LEFT_CLICK_AIR && event.getAction() != Action.LEFT_CLICK_BLOCK)) {
            return;
        }

        Player player = event.getPlayer();
        ItemStack heldItem = player.getInventory().getItemInMainHand();
        if (!isModeRod(heldItem)) {
            return;
        }

        RodMode nextMode = getMode(heldItem) == RodMode.STAB ? RodMode.NUKE : RodMode.STAB;
        player.getInventory().setItemInMainHand(withMode(heldItem, nextMode));
        sendModeActionBar(player, nextMode);
        event.setCancelled(true);
    }

    @EventHandler
    public void onRodRetract(PlayerFishEvent event) {
        if (event.getState() != PlayerFishEvent.State.REEL_IN) {
            return;
        }

        Player player = event.getPlayer();
        ItemStack heldItem = player.getInventory().getItemInMainHand();
        if (!isModeRod(heldItem)) {
            return;
        }

        Block targetBlock = player.getTargetBlockExact(256);
        if (targetBlock == null) {
            player.sendMessage(color("&cLook at a block to use this shot."));
            return;
        }

        if (player.hasCooldown(fishingRodMaterial)) {
            int secondsLeft = (player.getCooldown(fishingRodMaterial) + 19) / 20;
            player.sendMessage(color("&cThis rod is on cooldown for " + secondsLeft + "s."));
            return;
        }

        RodMode mode = getMode(heldItem);
        Location target = targetBlock.getLocation().add(0.5, 0.5, 0.5);
        switch (mode) {
            case STAB -> {
                launchStab(target);
                player.setCooldown(fishingRodMaterial, STAB_COOLDOWN_TICKS);
            }
            case NUKE -> {
                launchNuke(target);
                player.setCooldown(fishingRodMaterial, NUKE_COOLDOWN_TICKS);
            }
        }
    }

    @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
    public void onRodDamage(PlayerItemDamageEvent event) {
        ItemStack rod = event.getItem();
        if (!isModeRod(rod)) {
            return;
        }

        ItemMeta meta = rod.getItemMeta();
        if (meta instanceof Damageable damageable) {
            int remainingDurability = fishingRodMaterial.getMaxDurability() - damageable.getDamage();
            if (event.getDamage() >= remainingDurability) {
                event.setCancelled(true);
                damageable.setDamage(Math.max(0, fishingRodMaterial.getMaxDurability() - 10));
                rod.setItemMeta(meta);
            }
        }
    }

    @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 rod = createRod(RodMode.STAB);
        Map<Integer, ItemStack> leftovers = player.getInventory().addItem(rod);
        leftovers.values().forEach(item -> player.getWorld().dropItemNaturally(player.getLocation(), item));
        player.sendMessage(color("&aYou received the Orbit fishing rod."));
        sendModeActionBar(player, RodMode.STAB);
        return true;
    }

    private void launchNuke(Location target) {
        World world = target.getWorld();
        Location spawnCenter = target.clone().add(0, 80, 0);
        List<TNTPrimed> tnts = new ArrayList<>(511);
        spawnNukeTnt(world, spawnCenter.clone(), tnts);

        for (int ring = 1; ring <= 10; ring++) {
            int count = 40 + ring * 2;
            int firstBreak = Math.floorMod(ring * 7, count);
            int secondBreak = Math.floorMod(ring * 17 + count / 2, count);
            for (int point = 0; point < count; point++) {
                if (point == firstBreak || point == (firstBreak + 1) % count || point == secondBreak) {
                    continue;
                }
                double radius = ring * 3.0 + ((point % 3) - 1) * 0.18;
                double angle = Math.toRadians(ring * 13.0 + point * 360.0 / count);
                Location spawnLocation = spawnCenter.clone().add(
                        Math.cos(angle) * radius,
                        0,
                        Math.sin(angle) * radius
                );
                spawnNukeTnt(world, spawnLocation, tnts);
            }
        }

        getServer().getScheduler().runTaskLater(this, () -> {
            for (TNTPrimed tnt : tnts) {
                if (!tnt.isDead()) {
                    tnt.setGravity(true);
                    if (tnt.getLocation().distanceSquared(spawnCenter) > 0.01) {
                        double dx = tnt.getLocation().getX() - spawnCenter.getX();
                        double dz = tnt.getLocation().getZ() - spawnCenter.getZ();
                        tnt.setVelocity(new Vector(dx / 30.0, 0, dz / 30.0));
                    }
                }
            }
        }, 30L);

        getServer().getScheduler().runTaskLater(this, () -> {
            for (TNTPrimed tnt : tnts) {
                if (!tnt.isDead()) {
                    tnt.setFuseTicks(1);
                }
            }
        }, 160L);
    }

    private void spawnNukeTnt(World world, Location location, List<TNTPrimed> tnts) {
        TNTPrimed tnt = world.spawn(location, TNTPrimed.class);
        tnt.setFuseTicks(10000);
        tnt.setVelocity(new Vector(0, 0, 0));
        tnt.setGravity(false);