Files
minecraft-aiworld/addon/anthrax_cat_BP/scripts/main.js
SysAdmin d552525281
All checks were successful
Deploy Addons / deploy (push) Successful in 46s
feat(anthrax-cat): add Maneki-neko lucky cat decoration addon, remove easter egg
- New silverlabs:anthrax_cat entity: sitting cat with waving paw animation,
  idle body bob, look-at-player, fortune message + bell sound on interact
- Custom 64x64 texture (cream/white, red bib, gold coin, orange tabby patches)
- Custom geometry: body, head, ears, raised left arm, tail, bib, coin bones
- Removed easter egg addon mounts from all 4 servers (lobby + 3 child worlds)
- Anthrax Cat mounted on all 4 servers

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-06 20:24:26 +01:00

24 lines
780 B
JavaScript

import { world } from "@minecraft/server";
const FORTUNES = [
"Great fortune smiles upon you today!",
"Your builds will be legendary.",
"A lucky find awaits you soon.",
"Adventure and treasure lie ahead!",
"The cat's blessing brings you luck.",
"Today is a perfect day to explore.",
"Fortune favors the bold builder!",
"Something wonderful is about to happen.",
"The paw that waves beckons prosperity your way.",
"Keep going — great things await you!",
];
world.afterEvents.playerInteractWithEntity.subscribe((event) => {
if (event.target.typeId !== "silverlabs:anthrax_cat") return;
const player = event.player;
const fortune = FORTUNES[Math.floor(Math.random() * FORTUNES.length)];
player.sendMessage(`§6[✦ Anthrax Cat] §e${fortune}`);
});