From 77723281aa64b27cb51872802963db202e441b63 Mon Sep 17 00:00:00 2001 From: Link <50463727+link-discord@users.noreply.github.com> Date: Sat, 1 Jun 2024 21:32:56 +0200 Subject: [PATCH] Update README.md --- README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 18a8952..e04b1be 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ - [bot.autoEat.options](#botautoeatoptions) - [bot.autoEat.options.priority](#botautoeatoptionspriority) - [bot.autoEat.options.startAt](#botautoeatoptionsstartat) + - [bot.autoEat.options.healthThreshold](#botautoeatoptionshealththreshold) - [bot.autoEat.options.bannedFood](#botautoeatoptionsbannedfood) - [bot.autoEat.options.ignoreInventoryCheck](#botautoeatoptionsignoreinventorycheck) - [bot.autoEat.options.checkOnItemPickup](#botautoeatoptionscheckonitempickup) @@ -88,7 +89,7 @@ Example ```js bot.once('spawn', () => { - bot.autoEat.options.priority = 'foodPoints' + bot.autoEat.options.priority = 'auto' bot.autoEat.options.startAt = 14 bot.autoEat.options.bannedFood.push('golden_apple') }) @@ -96,9 +97,9 @@ bot.once('spawn', () => { #### bot.autoEat.options.priority -Acceptable Values are "saturation" or "foodPoints" +Acceptable Values are "saturation", "foodPoints" or "auto" -default: "saturation" +default: "auto" #### bot.autoEat.options.startAt @@ -106,6 +107,11 @@ If the bot has less or equal food points than this value, the bot will start eat default: 16 +#### bot.autoEat.options.healthThreshold + +If the bot has less or equal health than this value and the bots priority is set to "auto", +the bot will prioritize eating food with the highest saturation value and it will temporarily set startAt to 19 + #### bot.autoEat.options.bannedFood The bot will not eat the items in the array.