W

The Galactic Starcruiser is a colossal, endgame warship that players can pilot through Minecraft's skies and space. It can fly in any direction, hover, boost to extreme speeds, and instantly jump thousands of blocks using Hyperdrive. It is nearly indestructible and protected by regenerating energy shields. The ship is equipped with devastating laser cannons that vaporize terrain and enemies, rapid-fire plasma turrets, homing missiles, ion cannons that disable hostile mobs, orbital bombardment lasers, and a superlaser capable of destroying entire mountains with a long cooldown. It can summon attack drones, deploy fighter ships, create force-field domes, use tractor beams to lift mobs and blocks, teleport nearby allies aboard, scan for ores, structures, and mobs through walls, and automatically defend itself with AI turrets. Inside are walkable rooms including a bridge, engine room, cargo bay, armory, medical bay, and hangar. Players can customize weapons, shields, engines, and colors. The ship leaves glowing engine trails, creates massive explosions, shakes the screen when firing, and features cinematic sound effects, warning alarms, holographic displays, and dramatic hyperspace animations. It is designed to feel like the ultimate flagship and the most powerful vehicle in Minecraft. With these: 🚀 Hyperdrive (teleport 10,000+ blocks) ☄️ Superlaser that carves giant craters 🌌 Orbital strike anywhere within render distance 🛡️ Infinite-regenerating shields 🤖 AI defense turrets ✈️ Deploy mini starfighters 🛰️ Summon attack drones 🧲 Tractor beam ⚡ EMP blast that freezes mobs 💥 Nuclear missile barrage 🌠 Black hole generator that pulls mobs together 🌋 Planet-killer beam (huge cooldown) 🌀 Warp portals 🔥 Plasma flamethrowers ❄️ Cryo cannon that freezes enemies 🌩️ Lightning storm generator 🪨 Asteroid bombardment ❤️ Automatic repair system 📦 Massive mobile storage 🏰 Walkable interior with bridge, hangar, and crew stations

Kodari AI
KodariJun 30 at 5:30 pm 2

Galactic Starcruiser Plugin

A fully-featured endgame spaceship plugin for Minecraft. Let me build this from scratch.

GalacticStarcruiser
A fully-fledged Minecraft spaceship plugin allowing players to pilot a massive, customizable endgame warship through the sky and space. Features include free-flight movement, hyperdrive teleportation, regenerating energy shields, laser cannons, plasma turrets, homing missiles, ion cannons, orbital bombardment, a superlaser, AI defense turrets, tractor beams, EMP blasts, black hole generators, attack drones, starfighter deployment, force fields, walkable interiors with rooms, auto-repair, holographic HUD, and full weapon/engine/shield customization.

Let me start building. I’ll create all files in dependency order — foundation first, then systems, then UI, then plugin wiring.

All files created. Here’s the complete project structure:

Plain Text
GalacticStarcruiser/
├── build.gradle
├── src/main/resources/
│   ├── plugin.yml
│   └── config.yml
└── src/main/java/com/galacticstarcruiser/
    ├── GalacticStarcruiser.java          # Main plugin entry point
    ├── ship/
    │   ├── Ship.java                     # Ship data model with hull, shields, energy, cooldowns, customization
    │   └── ShipManager.java             # Core logic: movement, all weapons, defense, AI, HUD, ticks
    ├── config/
    │   └── ConfigManager.java            # Full config access for all systems
    ├── interior/
    │   ├── RoomType.java                 # Enum: BRIDGE, ENGINE_ROOM, CARGO_BAY, ARMORY, MEDICAL_BAY, HANGAR
    │   └── InteriorManager.java          # Build/destroy/teleport walkable ship rooms with blocks
    ├── gui/
    │   └── ShipGUI.java                  # Full inventory GUI: main panel, weapons, defense, utility, movement, interior, customization
    ├── commands/
    │   └── ShipCommand.java              # /ship create, remove, menu, info, build, destroy, recall, help
    ├── listeners/
    │   └── ShipListener.java             # Shield absorption for players, join/quit handling
    └── utils/
        ├── ParticleUtils.java            # Laser beams, explosions, spheres, helixes, shockwaves, hyperspace tunnels
        ├── SoundUtils.java               # Weapon/defense sound effects
        └── MathUtils.java                # Direction, rotation, distance utilities

What’s implemented:

  • 🚀 Hyperdrive — teleport up to 10,000+ blocks with cinematic hyperspace tunnel particles and arrival shockwave

  • ☄️ Superlaser — massive 500-damage beam with shockwave, terrain destruction, 2min cooldown

  • 🌌 Orbital Strike — 10 sequential lightning strikes within radius

  • 🛡️ Regenerating Shields — auto-regen after delay, scale with upgrades

  • 🤖 AI Turrets — auto-target hostile mobs with laser fire

  • ✈️ Starfighters — 3 fighters charge at target location

  • 🛰️ Attack Drones — float around and attack hostiles for 30s

  • 🧲 Tractor Beam — pull entities toward you

  • ⚡ EMP Blast — stuns + freezes nearby mobs

  • 💥 Nuclear Barrage — 8 exploding missiles

  • 🌠 Black Hole Generator — 8s vortex pulling + damaging everything in radius

  • 🔥 Plasma Flamethrower — close-range fire weapon

  • ❄️ Cryo Cannon — freeze enemies solid

  • 🌩️ Lightning Storm — 15 lightning strikes

  • 🪨 Asteroid Bombardment — falling boulders

  • 🌋 Planet-Killer Beam — 2000 damage, 30-block terrain crater, 5min cooldown

  • 🌀 Warp Portals — linked portals teleporting players

  • 🏰 Walkable Interior — Bridge, Engine Room, Cargo Bay, Armory, Medical Bay, Hangar built from blocks with corridors

  • 📦 HUD — action bar showing shields/hull/energy bars

  • 🎨 Customization — cycle primary/secondary/trail colors, upgrade weapons/shields/engines to Lv5

  • 🔍 Scanner — scan for ores, mobs, entities

  • 🛡️ Force Field — push-back barrier lasting 15s

  • 🔧 Auto-Repair — automatic hull regeneration

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
15 2,671
src/main/java/com/galacticstarcruiser/GalacticStarcruiser.java
package com.galacticstarcruiser;

import com.galacticstarcruiser.commands.ShipCommand;
import com.galacticstarcruiser.config.ConfigManager;
import com.galacticstarcruiser.listeners.ShipListener;
import com.galacticstarcruiser.ship.ShipManager;
import com.galacticstarcruiser.gui.ShipGUI;
import com.galacticstarcruiser.interior.InteriorManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

public final class GalacticStarcruiser extends JavaPlugin {

    @Getter private static GalacticStarcruiser instance;
    @Getter private ConfigManager configManager;
    @Getter private ShipManager shipManager;
    @Getter private ShipGUI shipGUI;
    @Getter private InteriorManager interiorManager;

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

        this.configManager = new ConfigManager(this);
        this.shipManager = new ShipManager(this);
        this.shipGUI = new ShipGUI(this);
        this.interiorManager = new InteriorManager(this);

        getCommand("ship").setExecutor(new ShipCommand(this));
        getServer().getPluginManager().registerEvents(new ShipListener(this), this);

        shipManager.startTasks();
        getLogger().info("GalacticStarcruiser enabled. The ultimate warship awaits.");
    }

    @Override
    public void onDisable() {
        if (shipManager != null) {
            shipManager.saveAll();
            shipManager.stopTasks();
        }
        getLogger().info("GalacticStarcruiser disabled.");
    }
}