cabaletta / baritone

google maps for block game
GNU Lesser General Public License v3.0
7.17k stars 1.44k forks source link

Gets stuck breaking blocks on 2b #4269

Open beckadamtheinventor opened 7 months ago

beckadamtheinventor commented 7 months ago

Some information

Operating system: Windows 10 Java version: Eclipse Adoptium 17.0.6.10 Minecraft version: 1.20.1 Baritone version: 1.10.1 Other mods (if used):

Exception, error or logs

Sometimes gets stuck breaking the same block repeatedly.

How to reproduce

On 2b2t: Obtain efficiency 5 netherite pickaxe Set positions 1 and 2. Clear the area (set air)

#sel p1
#sel p2
#sel set air

Modified settings

None

Final checklist

Edit: I am aware of #4110 , the solution does not help on Meteor and happens with just baritone installed.

ZacSharp commented 7 months ago

Wild guess: It happens when instamining.

beckadamtheinventor commented 7 months ago

It happens when the block breaks too quickly (without instamining) Might be an issue with 2b though, max speed netherite tools seem to have issues breaking in general. The axe on trees for example you have to break the same block repeatedly, without the use of Baritone.

It would be helpful if there was an option in Baritone that could slow down block breaking, or a block break timeout of sorts.

ZacSharp commented 7 months ago

Sounds like a desync problem. The client thinks it's done and removes it locally (making Baritone stop) but the server decides you haven't been mining it for long enough to be done and places it back. Maybe the leniency of the server side checks makes this more likely for short breaking times. If your client has a feature to disable local echo for block breaking ("anti desync", "anti ghostblock", whatever) you might want to try that. "Slowing down" Baritone would be hard since this kind of slowdown basically means aiming for blocks which don't exist anymore (locally).

beckadamtheinventor commented 7 months ago

I have anti ghost blocks on. I'm on Meteor. I have tried both the official and modified (for Meteor) versions of Baritone.

At this rate I should probably email the admin with a bug report because it does happen without Baritone for other netherite tools.

ZacSharp commented 7 months ago

It looks like Meteor blocks the block from being removed locally but then runs part of the breaking logic to get sounds and particles. That means you can break the block multiple times client side without needing the server to place it back. I haven't looked at the precise logic involved for Baritone to think a block is broken so I'm not sure whether Meteor actually cancels the part which matters for Baritone.

beckadamtheinventor commented 7 months ago

Problem is, this issue also happens without Meteor installed.