mega_kn1ght_

TNT Arsenal Plugin

Overview

TNT Arsenal is a Minecraft plugin that adds powerful TNT-based weapons and tools using only vanilla TNT entities. Players can obtain special items through commands and unleash unique explosive attacks with custom TNT formations, effects, and mechanics.

The plugin focuses on fun, destruction, PvP, events, and SMP gameplay while remaining highly configurable.

---

Commands

Rod Commands

/givestabshot [player]

Gives the player a Stab Shot fishing rod.

/givenukeshot [player]

Gives the player a Nuke Shot fishing rod.

---

Weapon Commands

/givetntspear [player]

Gives the player a TNT Spear.

/givetntsword [player]

Gives the player a TNT Sword.

---

Stab Shot

Item

Fishing Rod

Durability

1 Use

Ability

When right-clicked:

  1. Launches a fast projectile.
  2. On impact, TNT forms a spear shape.
  3. TNT ignites immediately.
  4. Explodes from front to back.
  5. Rod breaks after use.

TNT Formation

code
■
■
■
■
■
■

Purpose

* Precision attacks * Base breaching * PvP

Effects

* Smoke trail * TNT fuse sound * Explosion particles * Action Bar:

* STAB SHOT ACTIVATED

---

Nuke Shot

Item

Fishing Rod

Durability

1 Use

Ability

When right-clicked:

  1. Launches a special projectile.
  2. Upon impact, a massive TNT mushroom cloud forms.
  3. TNT ignites after a short warning period.
  4. Entire structure explodes.

TNT Formation

Creates:

* Central TNT pillar * Large TNT dome * Circular shockwave ring

Designed to resemble a miniature nuclear explosion.

Effects

* Siren warning sound * Massive smoke cloud * Explosion particles * Screen shake effect * Title:

* ⚠ NUKE INCOMING ⚠

---

TNT Spear

Item

Trident

Ability

When thrown:

  1. Spear flies normally.
  2. Leaves a TNT particle trail.
  3. On impact:

* TNT line spawns behind target. * TNT detonates in sequence.

Purpose

* Long-range combat * Raiding * Boss fights

Effects

* Fire particles * Smoke trail * Chain explosions

---

TNT Sword

Item

Netherite Sword

Ability

Every successful hit:

* Small TNT burst appears behind enemy. * Creates a controlled explosion. * Deals knockback.

Special Ability

Sneak + Right Click:

* Summons TNT spikes around player.

TNT Formation

code
    ■
  ■ ■ ■
■ ■ P ■ ■
  ■ ■ ■
    ■

P = Player

Effects

* TNT fuse sounds * Explosion particles * Redstone sparks

---

Rare Drops

Optional configuration:

Mobs have a chance to drop:

* TNT Fragment * TNT Core * Nuclear Core

Used for crafting TNT Arsenal items.

---

Crafting System

TNT Spear

Requires:

* Trident * TNT * TNT Core

TNT Sword

Requires:

* Netherite Sword * TNT * TNT Core

Stab Shot

Requires:

* Fishing Rod * TNT Fragment

Nuke Shot

Requires:

* Fishing Rod * Nuclear Core

---

Configurable Settings

General

* Enable/Disable weapons * Enable/Disable rods * Cooldowns * Permissions * Durability usage

Explosions

* TNT amount * Explosion radius * Block damage * Entity damage * Fire spread

Visual Effects

* Particles * Sounds * Titles * Action bars * Screen shake

---

Permissions

Commands

* tntarsenal.givestabshot * tntarsenal.givenukeshot * tntarsenal.givetntspear * tntarsenal.givetntsword

Usage

* tntarsenal.use.stabshot * tntarsenal.use.nukeshot * tntarsenal.use.tntspear * tntarsenal.use.tntsword

---

Admin Features

Reload

/tntarsenal reload

Reloads configuration files.

Give Menu

/tntarsenal

Opens a GUI containing:

* Stab Shot * Nuke Shot * TNT Spear * TNT Sword

Admins can click items to receive them instantly.

---

Messages

Stab Shot

> STAB SHOT ACTIVATED

Nuke Shot

> ⚠ NUKE INCOMING ⚠

TNT Spear

> TNT SPEAR THROWN

TNT Sword

> TNT ENERGY RELEASED

---

Features

✔ Vanilla TNT only

✔ Custom weapons

✔ Custom fishing rods

✔ One-use explosive rods

✔ Unique TNT formations

✔ Custom particles

✔ Custom sounds

✔ Configurable explosions

✔ Admin GUI

✔ Permissions support

✔ SMP compatible

✔ PvP compatible

✔ Event-friendly

✔ Lightweight and optimized

Goal

TNT Arsenal aims to make TNT more exciting by transforming it into powerful weapons and tools rather than simply placing TNT blocks. Every weapon has a unique TNT formation, making each explosive attack visually memorable and fun to use.

Kodari AI
KodariAug 30 at 12:46 pm 3
TNTArsenal
A Minecraft plugin adding explosive TNT-based weapons using vanilla TNT entities. Includes Stab Shot and Nuke Shot fishing rods that launch projectiles creating spear-shaped or mushroom cloud TNT formations that detonate in sequence. Features TNT Spear trident with particle trail and chain explosions, plus TNT Sword with burst attacks and sneak-right-click spike formation. Includes admin GUI, crafting recipes, configurable explosions, permissions, cooldowns, custom particles, sounds, titles, action bars, and screen shake effects. Mobs can drop TNT Fragments, TNT Cores, and Nuclear Cores for crafting. Fully configurable for SMP, PvP, and events.
  1. Create the Gradle/Paper project metadata and plugin configuration.

  2. Add item definitions, cooldowns, recipes, TNT formation mechanics, and event listeners.

  3. Add commands and the admin give menu, then register everything from the main plugin class.

  1. Created the Paper plugin project with Gradle, plugin.yml, configurable settings, permissions, recipes, and messages.

  2. Added custom Stab Shot, Nuke Shot, TNT Spear, and TNT Sword items using persistent item data.

  3. Implemented projectile handling, TNT formations, sequential fuses, particles, sounds, titles, action bars, cooldowns, optional rare drops, and explosion settings.

  4. Added /tntarsenal, all four give commands, reload support, tab completion, and the admin GUI.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
15 997
src/main/java/com/kodari/tntarsenal/TntArsenalPlugin.java
package com.kodari.tntarsenal;

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

public final class TntArsenalPlugin extends JavaPlugin {
    @Override
    public void onEnable() {
        saveDefaultConfig();

        ItemFactory items = new ItemFactory(this);
        CooldownManager cooldowns = new CooldownManager();
        ExplosionManager explosions = new ExplosionManager(this);
        GiveMenu menu = new GiveMenu(this, items);
        ArsenalCommand command = new ArsenalCommand(this, items, menu);

        ArsenalListener arsenalListener = new ArsenalListener(this, items, cooldowns, explosions);
        Bukkit.getPluginManager().registerEvents(arsenalListener, this);
        Bukkit.getPluginManager().registerEvents(new MenuListener(menu), this);
        new RecipeManager(this, items).register();

        registerCommand("tntarsenal", command);
        registerCommand("givestabshot", command);
        registerCommand("givenukeshot", command);
        registerCommand("givetntspear", command);
        registerCommand("givetntsword", command);
    }

    private void registerCommand(String name, ArsenalCommand command) {
        PluginCommand pluginCommand = getCommand(name);
        if (pluginCommand != null) {
            pluginCommand.setExecutor(command);
            pluginCommand.setTabCompleter(command);
        }
    }
}