epicxd76

Turn "Danny's AOT" mod into a usable plugin for minecraft 1.21.11. make sure it works with other plugins especially with VIA Version and Via Backwards.

Kodari AI
KodariJul 27 at 10:32 am 1

I’ll create an Attack on Titan plugin with ODM gear mechanics, titans, and full ViaVersion compatibility.

AOTPlugin
An Attack on Titan themed Minecraft plugin featuring 3D Maneuver Gear mechanics with grappling hooks, gas propulsion, and blade combat. Players can equip ODM gear to swing between locations, boost through the air, and fight titans with specialized blade damage including nape-hit criticals. Fully compatible with ViaVersion and ViaBackwards for cross-version support across 1.8–1.21+ clients.

Let me create all the project files

I’ll create a complete Attack on Titan plugin for 1.21.1 with full ViaVersion/ViaBackwards compatibility.

AttackOnTitan
A fully-featured Attack on Titan plugin for Minecraft 1.21.1 featuring ODM gear with grappling hooks, gas-propelled 3D maneuverability, and Titan combat. Includes customizable titan types (Normal, Abnormal, Armored, Beast), blade durability system, nape weak-point combat mechanics, and full ViaVersion/ViaBackwards compatibility. No NMS code ensures cross-version stability with all proxy protocols.

Let me build this systematically. Starting with build files and core infrastructure

epicxd76

do

Kodari AI
KodariJul 27 at 10:42 am 2
AttackOnTitan
Attack on Titan plugin for Minecraft 1.21.1 featuring 3D Maneuver Gear with grappling hooks, gas propulsion, and blade combat. Players can equip ODM gear to swing through the world, boost with gas, and fight titans including Normal, Abnormal, Armored, and Beast variants. Nape-hit criticals, blade durability, and titan AI with full ViaVersion/ViaBackwards compatibility. Uses only standard Bukkit/Paper API with no NMS for cross-version stability.

I’ll create the full project now. Let me start with build files, then core infrastructure, then mechanics.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
settings.gradle
Code
19 1,659
src/main/java/com/aot/plugin/AOTPlugin.java
package com.aot.plugin;

import com.aot.plugin.command.AOTCommand;
import com.aot.plugin.combat.CombatManager;
import com.aot.plugin.config.ConfigManager;
import com.aot.plugin.gear.ODMGearManager;
import com.aot.plugin.listener.GearListener;
import com.aot.plugin.listener.PlayerListener;
import com.aot.plugin.listener.TitanListener;
import com.aot.plugin.player.PlayerData;
import com.aot.plugin.player.PlayerManager;
import com.aot.plugin.titan.TitanManager;
import com.aot.plugin.util.CooldownManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scheduler.BukkitRunnable;

@Getter
public final class AOTPlugin extends JavaPlugin {

    private static AOTPlugin instance;
    private ConfigManager configManager;
    private PlayerManager playerManager;
    private ODMGearManager odmGearManager;
    private TitanManager titanManager;
    private CombatManager combatManager;
    private CooldownManager cooldownManager;
    private boolean viaVersionEnabled;

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

        saveDefaultConfig();

        this.configManager = new ConfigManager(this);
        this.playerManager = new PlayerManager();
        this.cooldownManager = new CooldownManager();
        this.odmGearManager = new ODMGearManager(this);
        this.titanManager = new TitanManager(this);
        this.combatManager = new CombatManager(this);

        getCommand("aot").setExecutor(new AOTCommand(this));

        Bukkit.getPluginManager().registerEvents(new PlayerListener(this), this);
        Bukkit.getPluginManager().registerEvents(new GearListener(this), this);
        Bukkit.getPluginManager().registerEvents(new TitanListener(this), this);

        titanManager.startSpawnTask();
        startGasRegenTask();

        viaVersionEnabled = Bukkit.getPluginManager().getPlugin("ViaVersion") != null;
        if (viaVersionEnabled) {
            getLogger().info("ViaVersion detected - cross-version compatibility active");
        }

        getLogger().info("Attack on Titan v" + getDescription().getVersion() + " enabled!");
    }

    @Override
    public void onDisable() {
        if (titanManager != null) {
            titanManager.killAllTitans();
            titanManager.stopTasks();
        }
        if (playerManager != null) {
            for (Player player : Bukkit.getOnlinePlayers()) {
                odmGearManager.releaseHook(player);
            }
            playerManager.cleanupAll();
        }
        getLogger().info("Attack on Titan disabled!");
    }

    private void startGasRegenTask() {
        new BukkitRunnable() {
            @Override
            public void run() {
                double regen = configManager.getGasRefillPerSecond();
                for (Player player : Bukkit.getOnlinePlayers()) {
                    PlayerData data = playerManager.getPlayerData(player.getUniqueId());
                    if (data != null) {
                        data.refillGas(regen);
                    }
                }
            }
        }.runTaskTimer(this, 20L, 20L);
    }

    public static AOTPlugin getInstance() {
        return instance;
    }
}