Albert Landaeta
📎 1 file 1,819 chars
📄
pasted-code-1792864433494.txt
txt 1 lines
▶
Generate a complete custom boss entity mod for Minecraft 1.21.1 (compatible with Fabric / NeoForge 1.21.1 standards).Entity Name: GigaCatEntity ("Giga Cat")1. Entity Stats & Attributes:Max Health: 500.0DAttack Damage: 30.0D (15 hearts)Movement Speed: 0.35FKnockback Resistance: 1.0D (100% immune)Armor: 10.0DUse 1.21.1 attribute registration format (createAttributes()).2. BossBar Setup:Use ServerBossEvent with BossInfo.Color.PURPLE and BossInfo.Overlay.NOTCHED_12.Name: "§c§lGIGA CAT - THE ULTIMATE FELINE"Track players correctly on server side using 1.21.1 tracking methods.3. Visual / Model Concept:A massive, hyper-muscular bipedal cat (Gigachad physique, huge biceps, broad chest, feline head).Set up GigaCatRenderer with custom scale ($1.4\times$) and model binding.4. AI Goals & Custom Boss Attacks (1.21.1 Syntax):Aggro: Targets players aggressively within range.Heavy Melee: Applies extra knockback force on hit.Phase 2 Enrage: When HP falls below 50% ($< 250$ HP), apply permanent Strength II (MobEffects.DAMAGE_BOOST) and Speed I (MobEffects.MOVEMENT_SPEED).Ground Slam Skill: Every 200 ticks (10s), perform a 6-block radius AoE attack dealing 10 damage, summoning explosion particles (ParticleTypes.EXPLOSION), and applying Slowness II (MobEffects.MOVEMENT_SLOWDOWN) for 3 seconds.5. 1.21.1 Data Component Item & Loot Table:Register a custom consumable item: CatProteinShakeItem using 1.21.1 FoodProperties and Consumable / Data Components system, giving Strength III (MobEffects.DAMAGE_BOOST) for 30 seconds (600 ticks).Configure the boss death loot table to drop 1 Netherite Ingot, 1 Cat Protein Shake, and 500 Experience points.Please generate all Java classes, registrations, renderer classes, and texture path bindings (assets/modid/textures/entity/giga_cat.png) following strict 1.21.1 API standards.
Kodari AI
KodariOct 24 at 6:05 pm 12
GigaCatBossMod
Adds a custom GigaCat boss entity with 500 HP, 30 damage melee attacks, and full knockback immunity. Features a purple notched boss bar, custom renderer with 1.4x scale, and aggressive player targeting AI. Includes Phase 2 enrage below 50% HP granting Strength II and Speed I, plus a ground slam AoE every 10 seconds dealing 10 damage with slowness. Registers a CatProteinShake consumable item granting Strength III for 30 seconds, and configures death loot dropping Netherite Ingot, protein shake, and 500 XP using 1.21.1 data components.
  1. Register the boss entity, consumable, spawn egg, and attributes using NeoForge 1.21.1 APIs.

  2. Implement the boss AI, phase change, slam, boss bar, and survival summon path.

  3. Add a custom bipedal feline model/renderer and its texture.

  4. Add item models, recipe, loot table, localization, and required mod metadata.

Implemented a NeoForge 1.21.1 Giga Cat boss mod. It is NeoForge-specific, not Fabric.

  • Added the boss with the requested attributes, player targeting, heavy melee knockback, a purple notched boss bar, the under-50% enrage effects, and a 6-block ground slam every 200 ticks.

  • Added a custom bipedal feline model, 1.4× renderer scale, and textures for the boss and protein shake.

  • Added the Cat Protein Shake with Strength III for 600 ticks. For 1.21.1, it uses FoodProperties and the food data component; this version does not have the later Consumable component API.

  • Added survival access: craft the spawn egg with a Nether Star in the center, four Gold Blocks in the corners, and four Cooked Beef in the remaining slots. The boss drops one Netherite Ingot, one Cat Protein Shake, and 500 XP.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
16 490
src/main/java/com/kodari/gigacat/GigaCatMod.java
package com.kodari.gigacat;

import com.kodari.gigacat.entity.GigaCatEntity;
import com.kodari.gigacat.item.CatProteinShakeItem;
import net.minecraft.core.registries.Registries;
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.entity.MobCategory;
import net.minecraft.world.item.CreativeModeTabs;
import net.minecraft.world.item.Item;
import net.neoforged.bus.api.IEventBus;
import net.neoforged.fml.ModContainer;
import net.neoforged.fml.common.Mod;
import net.neoforged.neoforge.common.DeferredSpawnEggItem;
import net.neoforged.neoforge.event.BuildCreativeModeTabContentsEvent;
import net.neoforged.neoforge.event.entity.EntityAttributeCreationEvent;
import net.neoforged.neoforge.registries.DeferredHolder;
import net.neoforged.neoforge.registries.DeferredItem;
import net.neoforged.neoforge.registries.DeferredRegister;

@Mod(GigaCatMod.MOD_ID)
public class GigaCatMod {
    public static final String MOD_ID = "gigacat";

    private static final DeferredRegister<EntityType<?>> ENTITY_TYPES = DeferredRegister.create(Registries.ENTITY_TYPE, MOD_ID);
    private static final DeferredRegister.Items ITEMS = DeferredRegister.createItems(MOD_ID);

    public static final DeferredHolder<EntityType<?>, EntityType<GigaCatEntity>> GIGA_CAT = ENTITY_TYPES.register(
        "giga_cat",
        () -> EntityType.Builder.<GigaCatEntity>of(GigaCatEntity::new, MobCategory.MONSTER)
            .sized(1.6F, 2.8F)
            .clientTrackingRange(10)
            .updateInterval(2)
            .build("gigacat:giga_cat")
    );

    public static final DeferredItem<CatProteinShakeItem> CAT_PROTEIN_SHAKE = ITEMS.registerItem(
        "cat_protein_shake",
        CatProteinShakeItem::new
    );

    public static final DeferredItem<DeferredSpawnEggItem> GIGA_CAT_SPAWN_EGG = ITEMS.register(
        "giga_cat_spawn_egg",
        () -> new DeferredSpawnEggItem(GIGA_CAT, 0x62564D, 0xD69A42, new Item.Properties())
    );

    public GigaCatMod(IEventBus modEventBus, ModContainer modContainer) {
        ENTITY_TYPES.register(modEventBus);
        ITEMS.register(modEventBus);
        modEventBus.addListener(EntityAttributeCreationEvent.class, this::registerEntityAttributes);
        modEventBus.addListener(BuildCreativeModeTabContentsEvent.class, this::buildCreativeTabs);
    }

    private void registerEntityAttributes(EntityAttributeCreationEvent event) {
        event.put(GIGA_CAT.get(), GigaCatEntity.createAttributes().build());
    }

    private void buildCreativeTabs(BuildCreativeModeTabContentsEvent event) {
        if (event.getTabKey().equals(CreativeModeTabs.FOOD_AND_DRINKS)) {
            event.accept(CAT_PROTEIN_SHAKE);
        }
        if (event.getTabKey().equals(CreativeModeTabs.SPAWN_EGGS)) {
            event.accept(GIGA_CAT_SPAWN_EGG);
        }
    }
}