emeraldwolff348

create a mod that adds a quadruped wolf with black fur, bright purple eyes, makes wolf sounds, has it's own inventory, and has a custom 3d model and animations

Kodari AI
KodariOct 19 at 12:30 pm 10
ShadowHowlCompanion
Adds a custom quadruped wolf companion with black fur and glowing purple eyes. Features a fully custom 3D model with unique walk, run, idle, and attack animations. The wolf emits authentic howling and barking sounds. It possesses its own 32-slot inventory accessible via interaction, allowing players to store items within the creature. The wolf can be tamed and follows the player, with configurable behavior for sitting, following, and guarding. Includes custom AI for pathfinding and combat assistance, plus integration with vanilla wolf mechanics for breeding and health regeneration.
  1. Scaffold the 26.2 mod and register the wolf, spawn egg, and survival spawning.

  2. Add a persistent, usable inventory for the wolf.

  3. Connect the custom model and animations after you create them in Kodari Studio and bring them into this project through a workspace; I can’t create 3D models or animations here.

For the first pass, I’ll use Minecraft’s wolf model/behavior as the in-game stand-in.

Created the Shadow Wolf Fabric 26.2 mod with black fur, bright purple eyes, inherited wolf sounds and behavior, and a persistent 27-slot inventory. The owner opens it by crouching and interacting with an empty hand; the inventory screen uses owo-ui.

In survival, black wolves spawn naturally in forest and taiga biomes and can be tamed with bones. A spawn egg is also available in the creative Spawn Eggs tab.

The wolf currently uses Minecraft’s vanilla 3D model and animations. To give it the custom model and animations you requested, create them in Kodari Studio and bring them into this project through a workspace.

emeraldwolff348

use these files for the mob's model and texture

--- 📎 Attached 1 file(s):

File: wolf - Converted.java

java
// Made with Blockbench 5.2.2
// Exported for Minecraft version 1.17 or later with Mojang mappings
// Paste this class into your mod and generate all required imports


public class wolf - Converted<T extends Entity> extends EntityModel<T> {
	// This layer location should be baked with EntityRendererProvider.Context in the entity renderer and passed into this model's constructor
	public static final ModelLayerLocation LAYER_LOCATION = new ModelLayerLocation(new ResourceLocation("modid", "wolf_- converted"), "main");
	private final ModelPart head;
	private final ModelPart mane;
	private final ModelPart body;
	private final ModelPart leg1;
	private final ModelPart leg2;
	private final ModelPart leg3;
	private final ModelPart leg4;
	private final ModelPart tail;

	public wolf - Converted(ModelPart root) {
		this.head = root.getChild("head");
		this.mane = root.getChild("mane");
		this.body = root.getChild("body");
		this.leg1 = root.getChild("leg1");
		this.leg2 = root.getChild("leg2");
		this.leg3 = root.getChild("leg3");
		this.leg4 = root.getChild("leg4");
		this.tail = root.getChild("tail");
	}

	public static LayerDefinition createBodyLayer() {
		MeshDefinition meshdefinition = new MeshDefinition();
		PartDefinition partdefinition = meshdefinition.getRoot();

		PartDefinition head = partdefinition.addOrReplaceChild("head", CubeListBuilder.create().texOffs(0, 0).addBox(-2.0F, -3.0F, -2.0F, 6.0F, 6.0F, 4.0F, new CubeDeformation(0.0F))
		.texOffs(16, 14).addBox(2.0F, -5.0F, 0.0F, 2.0F, 2.0F, 1.0F, new CubeDeformation(0.0F))
		.texOffs(16, 14).addBox(-2.0F, -5.0F, 0.0F, 2.0F, 2.0F, 1.0F, new CubeDeformation(0.0F))
		.texOffs(0, 10).addBox(-0.5F, -0.02F, -5.0F, 3.0F, 3.0F, 4.0F, new CubeDeformation(0.0F)), PartPose.offset(-1.0F, 13.5F, -7.0F));

		PartDefinition mane = partdefinition.addOrReplaceChild("mane", CubeListBuilder.create().texOffs(21, 0).addBox(-3.0F, -3.0F, -3.0F, 8.0F, 6.0F, 7.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-1.0F, 14.0F, -3.0F, 1.5708F, 0.0F, 0.0F));

		PartDefinition body = partdefinition.addOrReplaceChild("body", CubeListBuilder.create().texOffs(18, 14).addBox(-3.0F, -2.0F, -3.0F, 6.0F, 9.0F, 6.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(0.0F, 14.0F, 2.0F, 1.5708F, 0.0F, 0.0F));

		PartDefinition leg1 = partdefinition.addOrReplaceChild("leg1", CubeListBuilder.create().texOffs(0, 18).addBox(0.0F, 0.0F, -1.0F, 2.0F, 8.0F, 2.0F, new CubeDeformation(0.0F)), PartPose.offset(-2.5F, 16.0F, 7.0F));

		PartDefinition leg2 = partdefinition.addOrReplaceChild("leg2", CubeListBuilder.create().texOffs(0, 18).addBox(0.0F, 0.0F, -1.0F, 2.0F, 8.0F, 2.0F, new CubeDeformation(0.0F)), PartPose.offset(0.5F, 16.0F, 7.0F));

		PartDefinition leg3 = partdefinition.addOrReplaceChild("leg3", CubeListBuilder.create().texOffs(0, 18).addBox(0.0F, 0.0F, -1.0F, 2.0F, 8.0F, 2.0F, new CubeDeformation(0.0F)), PartPose.offset(-2.5F, 16.0F, -4.0F));

		PartDefinition leg4 = partdefinition.addOrReplaceChild("leg4", CubeListBuilder.create().texOffs(0, 18).addBox(0.0F, 0.0F, -1.0F, 2.0F, 8.0F, 2.0F, new CubeDeformation(0.0F)), PartPose.offset(0.5F, 16.0F, -4.0F));

		PartDefinition tail = partdefinition.addOrReplaceChild("tail", CubeListBuilder.create().texOffs(9, 18).addBox(0.0F, 0.0F, -1.0F, 2.0F, 8.0F, 2.0F, new CubeDeformation(0.0F)), PartPose.offset(-1.0F, 12.0F, 10.0F));

		return LayerDefinition.create(meshdefinition, 64, 32);
	}

	@Override
	public void setupAnim(Entity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) {

	}

	@Override
	public void renderToBuffer(PoseStack poseStack, VertexConsumer vertexConsumer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) {
		head.render(poseStack, vertexConsumer, packedLight, packedOverlay, red, green, blue, alpha);
		mane.render(poseStack, vertexConsumer, packedLight, packedOverlay, red, green, blue, alpha);
		body.render(poseStack, vertexConsumer, packedLight, packedOverlay, red, green, blue, alpha);
		leg1.render(poseStack, vertexConsumer, packedLight, packedOverlay, red, green, blue, alpha);
		leg2.render(poseStack, vertexConsumer, packedLight, packedOverlay, red, green, blue, alpha);
		leg3.render(poseStack, vertexConsumer, packedLight, packedOverlay, red, green, blue, alpha);
		leg4.render(poseStack, vertexConsumer, packedLight, packedOverlay, red, green, blue, alpha);
		tail.render(poseStack, vertexConsumer, packedLight, packedOverlay, red, green, blue, alpha);
	}
}
Kodari AI
KodariOct 20 at 11:30 am 7
  1. Convert the supplied Blockbench geometry to a valid 26.2 entity model and add simple quadruped movement animations.

  2. Wire the model and provided wolf texture into the client renderer, reusing the attached image as the texture reference.

The supplied geometry is convertible; the current wolf Java source is stored as an uncompiled diff, so I’m restoring it as valid source while wiring in the custom model and attached texture.

Integrated the supplied Blockbench geometry as the Shadow Wolf’s custom model and connected your texture at assets/shadowwolf/entity/blackwolf.png. Added walking, head-look, tail, sitting, and shake animations.

I also restored BlackWolf.java, which was stored as diff text, so the entity source is valid Java. The existing survival behavior remains: wolves spawn in forests and taigas and can be tamed with bones.

emeraldwolff348

can you update it for 26.3

Kodari AI
KodariOct 21 at 11:21 am 2
  1. Check the project’s Minecraft, Loader, Fabric API, and Loom version settings.

  2. Update the version metadata and dependency versions for 26.3.

Updated the project to Minecraft 26.3: Minecraft and mod compatibility metadata, Fabric Loader 0.19.5, Fabric API 0.162.0+26.3, and Loom 1.18-SNAPSHOT.

emeraldwolff348

i need the inventory removed

Kodari AI
KodariOct 21 at 11:37 am 1

The generation was stopped before any content could be produced.

emeraldwolff348

can you make it so the entity has no inventory

Kodari AI
KodariOct 22 at 11:52 am 1
  1. Remove the wolf’s inventory field, persistence, and interaction that opens it.

  2. Remove the inventory menu and screen registrations, files, and unused translation.

Removed the Black Wolf’s custom inventory, its save/load handling, and the inventory menu and screen. Interactions now use the normal wolf behavior.

emeraldwolff348

and remove the owo lib from the mod

Kodari AI
KodariOct 22 at 11:52 am 1

Removed owo-lib from the mod’s dependency metadata and deleted manifest.kod, since it no longer lists any libraries.

emeraldwolff348

can you make it so that the entity has the same teleportation ability when tamed as vanilla wolves

Kodari AI
KodariOct 23 at 11:10 am 1
  1. Inspect how the custom entity handles taming and teleportation.

  2. Match the relevant vanilla wolf behavior and patch the entity.BlackWolf already inherits vanilla wolf AI. When tamed and at least 12 blocks from its owner, vanilla’s follow goal attempts to teleport it to a safe spot nearby. No code change is needed.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
17 421
src/main/java/com/kodari/shadowwolf/ShadowWolfMod.java
package com.kodari.shadowwolf;

import com.kodari.shadowwolf.entity.ModEntityTypes;
import com.kodari.shadowwolf.item.ModItems;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.biome.v1.BiomeModifications;
import net.fabricmc.fabric.api.biome.v1.BiomeSelectors;
import net.minecraft.tags.BiomeTags;
import net.minecraft.world.entity.MobCategory;

public class ShadowWolfMod implements ModInitializer {

    public static final String MOD_ID = "shadowwolf";

    @Override
    public void onInitialize() {
        ModEntityTypes.initialize();
        ModItems.initialize();

        BiomeModifications.addSpawn(
                BiomeSelectors.tag(BiomeTags.IS_FOREST).or(BiomeSelectors.tag(BiomeTags.IS_TAIGA)),
                MobCategory.CREATURE,
                ModEntityTypes.BLACK_WOLF,
                4,
                2,
                4
        );
    }
}