Ashif Khan

create a attack on titan mod with titan trasnformations odm gear custom models etc.. The paradise titans walking around and stuff

Kodari AI
KodariSep 25 at 1:05 pm 20
TitanWarfare
Adds Attack on Titan content to Minecraft. Features playable Titan transformations with multiple forms (Attack, Armored, Colossal, Female, Beast), each with unique abilities and stats. Includes functional ODM gear with grappling hooks, gas consumption, and aerial maneuvering. Custom 3D models for Titans, gear, and weapons. Pure Titans spawn and wander the world, targeting players and NPCs. Titans have weak spots (nape) for killing. Also adds Thunder Spears, blades, and a training system for new players. Fully configurable Titan spawn rates, sizes, and behaviors.

I’ll build a playable Fabric 1.21.11 starter mod with roaming hostile titans, a custom titan model, toggleable transformation, and ODM gear with grappling movement.

Created a Fabric 1.21.11 Attack on Titan starter mod. Paradise Titans spawn in the Overworld, roam, and attack players using a custom animated model. Titan Serum toggles a larger, stronger player form, while craftable ODM gear grapples toward surfaces within 48 blocks.

The titan has custom geometry but uses a vanilla husk texture; the transformation enlarges the player rather than replacing their model with a full titan morph.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
18 550
src/main/java/com/kodari/paradisetitans/ParadiseTitans.java
package com.kodari.paradisetitans;

import com.kodari.paradisetitans.entity.ParadiseTitanEntity;
import com.kodari.paradisetitans.item.OdmGearItem;
import com.kodari.paradisetitans.item.TitanSerumItem;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.biome.v1.BiomeModifications;
import net.fabricmc.fabric.api.biome.v1.BiomeSelectors;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents;
import net.fabricmc.fabric.api.itemgroup.v1.ItemGroupEvents;
import net.fabricmc.fabric.api.object.builder.v1.entity.FabricDefaultAttributeRegistry;
import net.fabricmc.fabric.api.object.builder.v1.entity.FabricEntityType;
import net.minecraft.entity.EntityType;
import net.minecraft.entity.SpawnGroup;
import net.minecraft.entity.SpawnLocationTypes;
import net.minecraft.entity.mob.MobEntity;
import net.minecraft.item.Item;
import net.minecraft.registry.Registries;
import net.minecraft.registry.Registry;
import net.minecraft.registry.RegistryKey;
import net.minecraft.registry.RegistryKeys;
import net.minecraft.util.Identifier;
import net.minecraft.world.Heightmap;

public final class ParadiseTitans implements ModInitializer {
    public static final String MOD_ID = "paradise_titans";

    private static final RegistryKey<EntityType<?>> TITAN_KEY = RegistryKey.of(RegistryKeys.ENTITY_TYPE, id("paradise_titan"));
    private static final RegistryKey<Item> SERUM_KEY = RegistryKey.of(RegistryKeys.ITEM, id("titan_serum"));
    private static final RegistryKey<Item> GEAR_KEY = RegistryKey.of(RegistryKeys.ITEM, id("odm_gear"));

    public static final EntityType<ParadiseTitanEntity> PARADISE_TITAN = Registry.register(
            Registries.ENTITY_TYPE,
            TITAN_KEY,
            FabricEntityType.Builder.createMob(ParadiseTitanEntity::new, SpawnGroup.CREATURE,
                            builder -> builder.spawnRestriction(SpawnLocationTypes.ON_GROUND,
                                    Heightmap.Type.MOTION_BLOCKING_NO_LEAVES, MobEntity::canMobSpawn))
                    .dimensions(1.2F, 4.5F)
                    .maxTrackingRange(12)
                    .build(TITAN_KEY)
    );

    public static final Item TITAN_SERUM = Registry.register(Registries.ITEM, SERUM_KEY,
            new TitanSerumItem(new Item.Settings().registryKey(SERUM_KEY).maxCount(1)));
    public static final Item ODM_GEAR = Registry.register(Registries.ITEM, GEAR_KEY,
            new OdmGearItem(new Item.Settings().registryKey(GEAR_KEY).maxDamage(320)));

    public static Identifier id(String path) {
        return Identifier.of(MOD_ID, path);
    }

    @Override
    public void onInitialize() {
        FabricDefaultAttributeRegistry.register(PARADISE_TITAN, ParadiseTitanEntity.createTitanAttributes());
        BiomeModifications.addSpawn(BiomeSelectors.foundInOverworld(), SpawnGroup.CREATURE,
                PARADISE_TITAN, 3, 1, 1);
        ItemGroupEvents.modifyEntriesEvent(RegistryKey.of(RegistryKeys.ITEM_GROUP,
                Identifier.of("minecraft", "combat"))).register(entries -> {
            entries.add(TITAN_SERUM);
            entries.add(ODM_GEAR);
        });
        ServerTickEvents.END_SERVER_TICK.register(OdmGearItem::tickGrapples);
    }
}