All checks were successful
Deploy Addons / deploy (push) Successful in 46s
- 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>
24 lines
780 B
JavaScript
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}`);
|
|
});
|