gaucho-matrero / altoclef

Plays block game
MIT License
690 stars 170 forks source link

Changing baritone settings in tasks and commands #280

Closed Bobbyperson closed 2 years ago

Bobbyperson commented 2 years ago

Your Idea

Allow altoclef commands/tasks to change baritone settings on the fly. Something like "set allowSprint false; goto 5000 0; get food; set allowSprint true"

Discord username (if you want updates)

Bobbyperson#0026

Developer Notes (leave this blank)

Difficulty: N/A Estimated Time Required: _N/A

Feature already exists.

JamesGreen31 commented 2 years ago

"Goto" is already an altoclef command. I am a little confused by this one.

As for changing settings on the fly, you can manually do this by editing the config file and then doing @reload.

However, you can change baritone settings on the fly using the baritone prefix '#'.

Example:

freelook false

Bobbyperson commented 2 years ago

I'll elaborate.

If you're making a custom task, what if you want the bot to walk somewhere, but after doing task X (getting food) you want it to sprint again?

JamesGreen31 commented 2 years ago

This isn't a bad idea, however it falls in the realm of the task creator. I'll note this for that project.