Switched to a faster implementation of FindBlock proposed by Daenges, tested on Farmer Bot.

Tweaked the amount of bone mealing in the Farmer Bot.
This commit is contained in:
Milutinke 2022-10-18 22:39:48 +02:00
parent ee57d101c0
commit 730990cee5
2 changed files with 11 additions and 21 deletions

View file

@ -420,7 +420,7 @@ namespace MinecraftClient.ChatBots
LogDebug("Trying to bonemeal: " + location2);
// Send like 4 bonemeal attempts, it should do the job with 2-3, but sometimes doesn't do
for (int boneMealTimes = 0; boneMealTimes < 4; boneMealTimes++)
for (int boneMealTimes = 0; boneMealTimes < (cropType == CropType.Beetroot ? 6 : 5); boneMealTimes++)
{
// TODO: Do a check if the carrot/potato is on the first growth stage
// if so, use: new Location(location.X, (double)(location.Y - 1) + (double)0.93750, location.Z)