the_cultest_of_minecraft

can you make a minecraft 1.21.11 minhut paper script that makes it so it spawns obsidian towers at the cords 10000 25 10000 and make sure it spawns the amount of players there are about 50 blocks high and make it so when the game starts all players that are in the game get a item every 5 secconds if you die you lose make the items random but also make it so after a round ends the last player stand gets the name in chat like "(Player) has won the game" and make it so after 30 secconds another round starts but delete the old towers after someone wins

Kodari AI
KodariJul 4 at 1:54 am 1

The generation was stopped before any content could be produced.

the_cultest_of_minecraft

can you also add blocks to the loot pool also all spawn eggs etc

Kodari AI
KodariJul 4 at 1:57 am 1

The generation was stopped before any content could be produced.

the_cultest_of_minecraft

can you make it so the game only starts when there is atleast 3 players in the server

Kodari AI
KodariJul 4 at 2:00 am 1

I’ll build a Paper 1.21.1 battle royale plugin with obsidian towers, timed item drops, and auto-cycling rounds.

ObsidianTowerBattle
A battle royale minigame for Paper 1.21.1 where each player spawns on their own 1x1x50 obsidian pillar. Players receive random items (blocks, spawn eggs, weapons, armor, tools) every 5 seconds. Last player standing wins with a chat announcement. Old towers are cleared and a new round starts automatically after 30 seconds. Eliminated players become spectators.
the_cultest_of_minecraft

can you make it so the game only starts when there is atleast 3 players in the server

Kodari AI
KodariJul 4 at 2:02 am 2

I’ll build a TowerBattle plugin — a last-man-standing game on obsidian towers with random loot drops every 5 seconds, blocks + spawn eggs in the loot pool, and auto-restart rounds.

All 10 files created. Here’s what the plugin does:

Game flow:

  1. Server waits in WAITING state — checks every second for 3+ online players

  2. When 3+ players are online → 30-second countdown (cancels if players drop below 3)

  3. Countdown ends → builds obsidian towers (5×5 pillar, 50 blocks tall) arranged in a circle around 10000 25 10000, one tower per player

  4. Teleports each player to their tower top with a sword and food

  5. ACTIVE state: every 5 seconds, each alive player receives a random item (weapons, armor, blocks, spawn eggs, food, specials)

  6. Death → elimination (spectator mode, items lost), broadcast to all

  7. Last player standing → “(Player) has won the game!” in chat

  8. 30-second restart timer → towers removed → back to WAITING

Loot pool (~130 items): swords, axes, bows, all armor tiers, 20 block types, 55+ spawn eggs (hostile + passive mobs), food, enchanted gear, ender pearls, TNT, buckets, shields, tridents, fireworks, cobwebs, and more.

Commands (op only): /towerbattle start, /towerbattle stop, /towerbattle reload, aliased as /tb.

Config (config.yml): tower height/spacing/size, countdown/loot/restart timers, min players, center coordinates — all adjustable.

Build with ./gradlew build, drop the jar into Minehut’s plugins folder, restart.

the_cultest_of_minecraft

how do I know it worked

Kodari AI
KodariJul 4 at 2:04 am 1

On Minehut:

  1. Upload the .jar from build/libs/ to your server’s plugins/ folder

  2. Run /restart (or use Minehut panel restart)

  3. After restart, type /plugins — you should see ObsidianTowerBattle in green

  4. Get 2 other friends online (3 total minimum) — you’ll see “⏰ Round starting in 30 seconds!” in chat

  5. Watch the obsidian towers spawn, items drop every 5 seconds, and elimination cycle run

Quick dev test (local Paper server):

Shell
# From the project root
./gradlew build

Then grab build/libs/ObsidianTowerBattle-1.0.jar, drop it in a Paper 1.21.1 server’s plugins/, start server, /op yourself, get 2 others on, and test.

See it’s running:

  • /towerbattle start (op only) — manually force a round

  • /tb start — same thing, shorter alias

  • Check the console for log messages like [ObsidianTowerBattle] Game state: COUNTDOWN, players online: 3

If the .jar doesn’t build or you want me to verify the build compiles clean — want me to run it?

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
16 1,258
src/main/java/com/towerbattle/TowerBattle.java
package com.towerbattle;

import org.bukkit.plugin.java.JavaPlugin;

public class TowerBattle extends JavaPlugin {
    private static TowerBattle instance;
    private GameManager gameManager;
    private TowerBuilder towerBuilder;
    private LootManager lootManager;

    @Override
    public void onEnable() {
        instance = this;
        saveDefaultConfig();

        this.towerBuilder = new TowerBuilder();
        this.lootManager = new LootManager();
        this.gameManager = new GameManager(this, towerBuilder, lootManager);

        getServer().getPluginManager().registerEvents(new GameListener(gameManager), this);
        getCommand("towerbattle").setExecutor(new TowerBattleCommand(this, gameManager));

        gameManager.startGameLoop();

        getLogger().info("TowerBattle v" + getDescription().getVersion() + " enabled!");
    }

    @Override
    public void onDisable() {
        if (gameManager != null) {
            gameManager.shutdown();
        }
        getLogger().info("TowerBattle disabled!");
    }

    public static TowerBattle getInstance() { return instance; }
    public GameManager getGameManager() { return gameManager; }
}