1nonlyhydro

Make a plugin, And make it so when a player named Hydrolysed pulls a fishing rod renamed in a anvil into the name ''minecart rod'' it summons 100 tnt minecarts to his exact location and where hes actively aiming and make it so it summons 50 blocks in the air in 5 rings.

Kodari AI
KodariMay 5 at 3:25 pm 4,400 (v2)

I’ll create a plugin that spawns TNT minecarts in rings when a specific player uses a renamed fishing rod.

MinecartRodPlugin
A specialized plugin that detects when player Hydrolysed uses a fishing rod renamed to "minecart rod". Upon casting, it spawns 100 TNT minecarts arranged in 5 circular rings 50 blocks above where the player is aiming. Features precise spawn location calculation, ring formation geometry, and custom item detection.

Plugin created! Here’s what it does:

Key Features:

  • Detects when player “Hydrolysed” casts a fishing rod named “minecart rod”

  • Spawns 100 TNT minecarts in 5 rings 50 blocks above the target location

  • Uses raycasting to determine where the player is aiming

  • Rings expand outward with different radii (2, 4, 6, 8, 10 blocks)

  • Each ring contains 20 TNT minecarts evenly distributed in a circle

Configuration: All values are configurable in config.yml including player name, rod name, minecart count, ring count, and spawn height.

Usage: Rename a fishing rod to “minecart rod” in an anvil, then cast it to trigger the TNT minecart spawn.

1nonlyhydro

make it drop tnt instead of tnt minecarts

Kodari AI
KodariMay 5 at 3:28 pm 3,802 (v2)

Done! Changed the plugin to spawn primed TNT entities instead of TNT minecarts. The TNT will now spawn in 5 rings 50 blocks above where Hydrolysed is aiming, and since it’s primed TNT, it will fall and explode on impact.

1nonlyhydro

make it spawn 500 tnt instead of 100 and make it into 10 rings

Kodari AI
KodariMay 5 at 3:34 pm 937 (v2)

Updated! The plugin will now spawn 500 TNT entities arranged in 10 rings instead of 100 TNT in 5 rings.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
6 243
src/main/java/com/hydrolysed/minecartrod/MinecartRodPlugin.java
package com.hydrolysed.minecartrod;

import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class MinecartRodPlugin extends JavaPlugin {
    
    private MinecartRodListener listener;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        listener = new MinecartRodListener(this);
        getServer().getPluginManager().registerEvents(listener, this);
        
        getCommand("minecartrod").setExecutor(new MinecartRodCommand(this));
        
        getLogger().info("MinecartRodPlugin has been enabled!");
    }
    
    @Override
    public void onDisable() {
        getLogger().info("MinecartRodPlugin has been disabled!");
    }
    
    public void reloadConfiguration() {
        reloadConfig();
        getLogger().info("Configuration reloaded!");
    }
}