Silly waffle

Make a Minecraft bedrock addon called waffle pet. The addon is about a cat named waffles and I gave you the texture and the model and he can also give items and can chat in text but he only talks in text if you do something. Like if you hit him he says ouch and if you craft an item he says I hope it’s food. And if you drop an item he’ll run to it and steal it for no reason and eats it. He can also he can eat any item in the game. And He will sometimes say I’m hungry and will eat blocks on the ground. His name will be waffles in the game and he can eat mobs too sometimes and it looks like the mob disappeared and he does not take damage from fire

--- 📎 Attached 1 file(s):

File: model.geo 19.json

```json { "format_version": "1.12.0", "minecraft:geometry": [ { "description": { "identifier": "geometry.unknown", "texture_width": 64, "texture_height": 64, "visible_bounds_width": 2, "visible_bounds_height": 2.5, "visible_bounds_offset": [0, 0.75, 0] }, "bones": [ { "name": "bb_main", "pivot": [0, 0, 0], "cubes": [ {"origin": [-6, 0, -7], "size": [12, 8, 14], "uv": [0, 0]}, {"origin": [-4, 7, -10], "size": [8, 7, 7], "uv": [0, 22]}, {"origin": [2, 13, -8], "size": [2, 4, 2], "pivot": [3, 13, -7], "rotation": [0, 0, 22.5], "uv": [30, 22]}, {"origin": [-4, 13, -8], "size": [2, 4, 2], "pivot": [-3, 13, -7], "rotation": [0, 0, -20], "uv": [30, 22]} ] } ] } ] }

[Viewing 1 image]

1 image attached
Kodari AI
KodariSep 26 at 9:40 pm 1
WafflesCatCompanion
A Minecraft Bedrock addon introducing Waffles, an interactive pet cat with custom texture and model. Waffles chats via text messages triggered by player actions: he says "ouch" when hit, comments on crafting, and steals dropped items to eat them. He consumes any item, block, or mob in the game, occasionally announcing hunger and eating ground blocks. He is immune to fire damage and features custom animations and behaviors.

I’ll create the behavior pack, resource pack, Waffles entity model, and a script for reactions, item-eating, hunger, and occasional mob-eating.

Created the Bedrock behavior and resource pack for Waffles. Activate both packs, then spawn him with /summon waffle_pet:waffles.

  • Waffles is tameable, follows his owner, and is fire-immune.

  • He chases dropped items and eats them, occasionally eats nearby mobs, and has text reactions for being hit, hunger, and crafting-table activity.

  • The provided model is included. The texture itself needs to be placed at resource_pack/textures/entity/waffles.png; I couldn’t embed the attached image as a PNG in these text-file creations.

  • Item gifting isn’t implemented yet. Crafting chat is approximated by detecting an inventory increase shortly after using a crafting table.

Silly waffle

Here’s the model

📎 1 file 753 chars
📄
model.geo 19.json
json 27 lines
▶
{
	"format_version": "1.12.0",
	"minecraft:geometry": [
		{
			"description": {
				"identifier": "geometry.unknown",
				"texture_width": 64,
				"texture_height": 64,
				"visible_bounds_width": 2,
				"visible_bounds_height": 2.5,
				"visible_bounds_offset": [0, 0.75, 0]
			},
			"bones": [
				{
					"name": "bb_main",
					"pivot": [0, 0, 0],
					"cubes": [
						{"origin": [-6, 0, -7], "size": [12, 8, 14], "uv": [0, 0]},
						{"origin": [-4, 7, -10], "size": [8, 7, 7], "uv": [0, 22]},
						{"origin": [2, 13, -8], "size": [2, 4, 2], "pivot": [3, 13, -7], "rotation": [0, 0, 22.5], "uv": [30, 22]},
						{"origin": [-4, 13, -8], "size": [2, 4, 2], "pivot": [-3, 13, -7], "rotation": [0, 0, -20], "uv": [30, 22]}
					]
				}
			]
		}
	]
}
Kodari AI
KodariSep 26 at 9:40 pm 1

The provided model is already included at resource_pack/models/entity/waffles.geo.json. Its geometry matches your attachment; I changed only the identifier from geometry.unknown to geometry.waffle_pet.waffles so it matches the addon.

Silly waffle

Is it ready?

Kodari AI
KodariSep 26 at 9:43 pm 1

Almost, but not fully ready to play: the model and pack files are in place, but Waffles still needs his texture at resource_pack/textures/entity/waffles.png. Item gifting also isn’t implemented, and crafting reactions are an approximation. I haven’t verified the packs in-game.

Silly waffle

Wait. I just wanna make it so he only eats blocks but he can still talk

Kodari AI
KodariSep 26 at 9:45 pm 1

Waffles now eats nearby ground blocks only when he gets hungry. He no longer picks up or eats dropped items, clears inventory, or eats mobs. His text reactions—including “Ouch!”, crafting comments, and “I’m hungry!”—remain.

Silly waffle

But he will only eats mobs when he says he’s hungry. He will eat blocks and mobs

Kodari AI
KodariSep 26 at 9:46 pm 1

I’ll keep his existing text reactions and block-eating, and make mob-eating a rare extra action during his “I’m hungry!” moment only.

Waffles still talks and eats a nearby block when he says “I’m hungry!” He now has a 25% chance to also eat a nearby mob during that hungry moment; mobs won’t be eaten at other times.

Silly waffle

I think that’s it.

Kodari AI
KodariSep 26 at 9:47 pm 1

Waffles is set to keep talking and eat blocks, with a 25% chance of eating a nearby mob only when he says “I’m hungry!”

Silly waffle

Did I give you the texture?

Kodari AI
KodariSep 26 at 9:47 pm 1

You attached an image preview, but the available file was only model.geo 19.json—the model, not a texture PNG. So Waffles’s texture still hasn’t been added.

Silly waffle

Here

1 image attached
Kodari AI
KodariSep 26 at 9:48 pm 1

Yes—I can see the texture image now. It wasn’t available as a PNG file in the addon’s project, though, so I can’t place it into the resource pack yet. Please upload it as a PNG file attachment so it can be added as resource_pack/textures/entity/waffles.png.

Silly waffle

It is a png

Kodari AI
KodariSep 26 at 9:48 pm 1

You’re right—it’s a PNG. I was wrong to imply otherwise. The image shows in chat, but it isn’t available as a file in the project, so I can’t add it to Waffles’s resource pack from here.

Silly waffle

Try your best

1 image attached
Kodari AI
KodariSep 26 at 9:49 pm 1

I can see the texture image, but it isn’t available as a file in the project—I checked for PNGs, and none are there. I can’t turn the chat preview into a texture file from here. It needs to be added to resource_pack/textures/entity/waffles.png as an actual file.

Silly waffle

What about a jpg

Kodari AI
KodariSep 26 at 9:50 pm 1

A JPG won’t work directly as a Minecraft texture—resource packs expect PNGs. If you upload the JPG as a file, I can try to convert it to PNG; the image preview alone isn’t available to add to the pack.

Silly waffle

Aw man…

Kodari AI
KodariSep 26 at 9:50 pm 1

Aw, I know 😕 You shouldn’t have to redo the texture. If you can attach the original image as a file—not just an inline preview—I can help get it into the pack. A JPG is fine as the source; Minecraft will just need it converted to PNG.

Silly waffle

Can I add the texture. Give me the addon and I’ll do it. It’s ok man

Kodari AI
KodariSep 26 at 9:51 pm 1

Absolutely—add the texture yourself. The addon files are in behavior_pack/ and resource_pack/. Save the image as:

resource_pack/textures/entity/waffles.png

The model is set up for a 64×64 texture. The image preview isn’t included as a project file, but the resource pack already points to that filename.

Silly waffle

Should I download it to edit the texture?

Kodari AI
KodariSep 26 at 9:52 pm 1

Yes. Download and unzip the addon, then put your texture here:

resource_pack/textures/entity/waffles.png

Make it a 64×64 PNG, then repackage or import the addon into Minecraft.

Silly waffle

Ok

Kodari AI
KodariSep 26 at 9:52 pm 1

Sounds good. If you get stuck adding the texture or importing the addon, I can help.

Silly waffle

Is it for bedrock?

Kodari AI
KodariSep 26 at 9:52 pm 1

Yes—it’s for Minecraft Bedrock Edition. The behavior_pack/ and resource_pack/ folders contain Bedrock add-on files.

Kodari can make mistakes. Review important code before using.
Files
behavior_pack
resource_pack
Code
7 304
behavior_pack/scripts/main.js
import { system, world } from "@minecraft/server";

const WAFFLES_ID = "waffle_pet:waffles";
const craftingTableTicks = new Map();
const inventoryCounts = new Map();
const hungerTimes = new Map();

function countInventory(player) {
  const inventory = player.getComponent("minecraft:inventory");
  const container = inventory?.container;
  if (!container) return 0;

  let count = 0;
  for (let slot = 0; slot < container.size; slot++) {
    count += container.getItem(slot)?.amount ?? 0;
  }
  return count;
}

function isNearWaffles(player) {
  return player.dimension.getEntities({
    type: WAFFLES_ID,
    location: player.location,
    maxDistance: 12
  }).length > 0;
}

function eatNearbyBlock(waffles) {
  const blockY = Math.floor(waffles.location.y) - 1;
  const candidates = [];

  for (let xOffset = -1; xOffset <= 1; xOffset++) {
    for (let zOffset = -1; zOffset <= 1; zOffset++) {
      if (xOffset === 0 && zOffset === 0) continue;

      const block = waffles.dimension.getBlock({
        x: Math.floor(waffles.location.x) + xOffset,
        y: blockY,
        z: Math.floor(waffles.location.z) + zOffset
      });

      if (block && block.typeId !== "minecraft:air") candidates.push(block);
    }
  }

  if (candidates.length === 0) return;

  const block = candidates[Math.floor(Math.random() * candidates.length)];
  block.setType("minecraft:air");
  world.sendMessage("Waffles ate a block!");
}

function eatNearbyMob(waffles) {
  const candidates = waffles.dimension.getEntities({
    families: ["mob"],
    location: waffles.location,
    maxDistance: 4,
    excludeTypes: [WAFFLES_ID]
  }).filter((mob) => mob.id !== waffles.id);

  if (candidates.length === 0) return;

  const mob = candidates[Math.floor(Math.random() * candidates.length)];
  mob.kill();
}

world.afterEvents.entityHurt.subscribe((event) => {
  if (event.hurtEntity.typeId === WAFFLES_ID) {
    world.sendMessage("Waffles: Ouch!");
  }
});

world.afterEvents.playerInteractWithBlock.subscribe((event) => {
  if (event.block.typeId === "minecraft:crafting_table") {
    craftingTableTicks.set(event.player.id, system.currentTick);
  }
});

system.runInterval(() => {
  const wafflesSeen = new Set();

  for (const player of world.getAllPlayers()) {
    const playerId = player.id;
    const itemCount = countInventory(player);
    const previousCount = inventoryCounts.get(playerId);
    const craftingTick = craftingTableTicks.get(playerId);

    if (
      previousCount !== undefined &&
      itemCount > previousCount &&
      craftingTick !== undefined &&
      system.currentTick - craftingTick <= 200 &&
      isNearWaffles(player)
    ) {
      world.sendMessage("Waffles: I hope it's food!");
      craftingTableTicks.delete(playerId);
    }
    inventoryCounts.set(playerId, itemCount);

    const nearby = player.dimension.getEntities({
      type: WAFFLES_ID,
      location: player.location,
      maxDistance: 32
    });

    for (const waffles of nearby) {
      if (wafflesSeen.has(waffles.id)) continue;
      wafflesSeen.add(waffles.id);

      const nextHunger = hungerTimes.get(waffles.id) ?? 0;
      if (system.currentTick >= nextHunger) {
        world.sendMessage("Waffles: I'm hungry!");
        eatNearbyBlock(waffles);
        if (Math.random() < 0.25) eatNearbyMob(waffles);
        hungerTimes.set(waffles.id, system.currentTick + 1200 + Math.floor(Math.random() * 1200));
      }
    }
  }
}, 20);