From 669b71f7b1a89c84d32c17d755f03a17404e9cb8 Mon Sep 17 00:00:00 2001 From: Ayush Maniar Date: Mon, 10 Mar 2025 22:01:48 -0700 Subject: [PATCH] Chest items bug fix, spawn 4 of each animal instead of 2 --- src/agent/task_types/cooking_tasks.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agent/task_types/cooking_tasks.js b/src/agent/task_types/cooking_tasks.js index 08e83c6..5c87477 100644 --- a/src/agent/task_types/cooking_tasks.js +++ b/src/agent/task_types/cooking_tasks.js @@ -331,7 +331,7 @@ export class CookingTaskInitiator { ['minecraft:enchanted_golden_apple', 64], ['minecraft:cooked_mutton', 64], ['minecraft:cooked_salmon', 64], - ['minecraft:cooked_cod', 64] + ['minecraft:cooked_cod', 64], ['minecraft:gold_ingot', 64], ['minecraft:oak_planks', 64], ]; @@ -372,7 +372,7 @@ export class CookingTaskInitiator { const summonAnimals = async () => { const animals = ['chicken', 'cow', 'llama', 'mooshroom', 'pig', 'rabbit', 'sheep']; for (const animal of animals) { - for (let i = 0; i < 2; i++) { + for (let i = 0; i < 4; i++) { const x = position.x - 25 + Math.random() * 50; const z = position.z - 25 + Math.random() * 50; await bot.chat(`/summon ${animal} ${Math.floor(x)} ${position.y} ${Math.floor(z)}`);