just_getto

Custom Entity Mob that looks like: Use the main creature or character in the uploaded image and acts like: Please make a Moonkin from WOW, taking this img from reference, make it detailed but simple, and also make it with this topics:

  • Aggresive, he doesnt attack, but if he is being attacked, he is going to attack what attacked him
  • He is tameable, if i give him 20 berries from MC, he would be "My Pet"
  • Spawn its BIOME Taiga Woods, rare entity, can spawn with a 30% of chance every 6 minutes
  • Have animation for IDLE, WALK, SWIM ANIMATION AND ALSO JUMP ANIMATION
  • AFTER I TAME HIM, I WANT HIM TO FOLLOW ME, AND IF SOMETHING ATTACKS ME, HE NEED TO ATTACK WHAT MADE ME DAMAGE
  • He needs to have 12 hearts of life and 10 of armor
  • If hes damaged, i can cure and heal him giving him berries
Kodari AI
KodariOct 28 at 1:43 pm 14
MoonkinCompanion
Adds a tameable Moonkin creature inspired by WoW to Minecraft NeoForge 1.21.1. The Moonkin spawns rarely in Taiga biomes (30% chance every 6 minutes). It is passive until attacked, then retaliates against its attacker. Taming requires feeding 20 sweet berries, after which it becomes a loyal pet that follows the player and defends them from attackers. Features custom idle, walk, swim, and jump animations. The Moonkin has 12 hearts of health and 10 armor points. Feeding berries to a tamed Moonkin heals it.
  1. Create the Grove Warden entity, taming, healing, owner-defense combat, and rare taiga spawning.

  2. Add its vanilla model/renderer with idle, walk, swim, and jump motion, plus survival/creative access and project metadata.

Created the Grove Warden mod with a custom bird guardian model and texture, plus idle, walking, swimming, and jumping animations.

  • Behavior: It won’t seek fights, but retaliates when attacked. Once tamed, it follows its owner and defends them.

  • Taming and healing: Feed it 20 sweet berries to tame it. Berries also heal 2 hearts each when it’s injured.

  • Stats: 12 hearts and 10 armor.

  • Spawning: Each six in-game minutes, there’s a 30% chance for one to spawn near players in a taiga biome.

  • Survival access: Craft its spawn egg using an egg, a feather, a gold nugget, and two sweet berries.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
15 467
src/main/java/com/example/grovewarden/GroveWardenMod.java
package com.example.grovewarden;

import com.example.grovewarden.entity.GroveWardenEntity;
import com.example.grovewarden.registry.GroveWardenEntities;
import com.example.grovewarden.registry.GroveWardenItems;
import com.example.grovewarden.world.GroveWardenSpawner;
import net.minecraft.world.entity.ai.attributes.AttributeSupplier;
import net.minecraft.world.item.CreativeModeTabs;
import net.neoforged.bus.api.IEventBus;
import net.neoforged.fml.common.Mod;
import net.neoforged.neoforge.common.NeoForge;
import net.neoforged.neoforge.event.BuildCreativeModeTabContentsEvent;
import net.neoforged.neoforge.event.entity.EntityAttributeCreationEvent;

@Mod(GroveWardenMod.MOD_ID)
public class GroveWardenMod {
    public static final String MOD_ID = "grovewarden";

    public GroveWardenMod(IEventBus modEventBus) {
        GroveWardenEntities.ENTITY_TYPES.register(modEventBus);
        GroveWardenItems.ITEMS.register(modEventBus);
        modEventBus.addListener(GroveWardenMod::registerAttributes);
        modEventBus.addListener(GroveWardenMod::addCreative);
        NeoForge.EVENT_BUS.addListener(GroveWardenSpawner::onServerTick);
    }

    private static void registerAttributes(EntityAttributeCreationEvent event) {
        AttributeSupplier attributes = GroveWardenEntity.createAttributes().build();
        event.put(GroveWardenEntities.GROVE_WARDEN.get(), attributes);
    }

    private static void addCreative(BuildCreativeModeTabContentsEvent event) {
        if (event.getTabKey().equals(CreativeModeTabs.SPAWN_EGGS)) {
            event.accept(GroveWardenItems.GROVE_WARDEN_SPAWN_EGG);
        }
    }
}