bot.digTime does not take into account the enchantment on the item [1.20.5+] #3589
Labels
possible bug
Stage1
just created by someone new to the project, we don't know yet if it deserves an implementation / a f
Versions
Detailed description of a problem
bot.digTime returns the time it takes to break a block. The time calculation must take into account the active item, effects, enchantments, and the block to break.
In Minecraft 1.20.4 and below, everything is taken into account.
In Minecraft 1.20.5 and above, the "Efficiency" enchantment does not affect this indicator. As a result, the bot.dig function digs the block longer than necessary.
For example:
What did you try yet?
I used bot.dig, bot.digTime.
Your current code
const block = bot.blockAtCursor(5)
console.log(
bot.digTime = ${bot.digTime(block)} ms
)...
const block = bot.blockAtCursor(5)
bot.dig(block, 'ignore', 'raycast')
Expected behavior
bot.digTime will take into account the enchantment on the item and as a result bot.dig will start working normally
The text was updated successfully, but these errors were encountered: