Skip to content

Conversation

Murat65536
Copy link
Contributor

@Murat65536 Murat65536 commented Jul 24, 2025

Closes #4825
Closes #4715
Stops executing any movements when it's in the inventory. Also should send inventory open events to server when it's changing item positions.
Servers are able to detect if a player has interacted with their inventory while they are still moving. This would stop Baritone to prevent that.

@Murat65536
Copy link
Contributor Author

Used @babbaj's code to add conditional item moving.

@Murat65536 Murat65536 marked this pull request as ready for review July 25, 2025 03:09
@Murat65536
Copy link
Contributor Author

I found another issue while testing this, which is that pillaring makes the player continuously jump when you have a high ticksBetweenInventoryMoves setting. But since this issue wasn't caused by me and it shouldn't really affect anyone (I tested it with a value of 10 and was fine. Showed up with a value of 100 though), I'm going to leave it. It was slightly worsened though since ticksSinceLastInventoryMove only increments when you call requestSwapWithHotBar.

@Murat65536 Murat65536 changed the title Pause if GUI open. Pause if Inventory open. Aug 14, 2025
@Murat65536
Copy link
Contributor Author

Looking back on this, the thing that servers are able to detect is when the player interacts with their inventory while moving. I'm thinking that instead of stopping Baritone when an inventory is open, we could just add a setting that doesn't let the player interact with anything in the inventory when Baritone is running. This would be better because the player might still want to see what's in their inventory while the bot is running. To actually interact with the inventory, the player can just pause the bot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stop if inventory has been manually opened Toggle throwaway slot
1 participant