Panic Button (Fast control override)
Hexcede opened this issue ยท 5 comments
Describe your suggestion
There should be a "panic button" implemented into Baritone to rapidly pause or resume the bot's behaviour via a keybind.
This should be accessible through a keybind, preferably in Minecraft's keybinds menu, or, bindable through commands. This should as far as I know be compatible with both Forge and Fabric and easy to implement.
Settings
panicButton
- A key code (E.g. GLFW_KEY_B
or KEY_B
). When the key is unbound, the behaviour is effectively disabled.
Context
Often when using baritone to travel long distances, the bot will take very dangerous paths. I have encountered several times where the bot clips lava or fire in the nether, sometimes gets stuck, and then can't figure out how to path back out. In these cases, I have to very quickly type #pause
in the chat and usually I get down to about a heart and a half with full iron even if I am quick.
As far as I have been able to tell, there is not an easy way to encourage that the bot avoids getting too close to lava or fire or walking near the edge of cliffs to avoid mishaps, and, it often has many near death experiences over the course of a few hours of travel.
Final checklist
- I know how to properly use check boxes
- I have not used any OwO's or UwU's in this issue.
Well this would require separate support for the control options buttons due to how fabric and forge do it differently? If I'm remembering correctly, at least.
Baritone having an API available, you can bind resume / stop to a button in both KAMI Blue and Impact, and probably Future or other mods with macro support
For example, ;m b ;b pause
would bind B
to Baritone pause in KB, while Impact has a GUI for that sort of thing.
separate support for the control options buttons due to how fabric and forge do it differently?
The original implementation just listened for the attack key to be pressed, using pure vanilla methods and I'd expect that this would be possible for adding new keybinds as well. Forge and fabric are just there to make mods more compatible and provide methods to do such things easier.