LocationBlacklistCollection
Allows you to "blacklist" (set as invalid) locations for a certain amount of times. Create with 'LocationBlacklistCollection.CreatePerBot(...)' or 'LocationBlacklistCollection.CreateGlobal(...)'.
Example usage
The code below finds the closest diamond block and attempts to move to it and then mine it. If the block is unreachable then it's added to the blacklist for 1 hour. The blacklist ensures that the same block is no longer picked in the search with the code !blacklist.IsBlocked(context, block.GetLocation())
.
Optionally the code below could also use LocationWhitelistCollection to make sure that multiple bots don't try to move to the same diamond ore block.
Last updated