Use the settings namespace to get/set/toggle/reset Baritone settings cleanly.
- You want typed-looking access like
client.settings.allowPlace. - You need to modify settings before pathing commands.
import asyncio
from pyritone import Client
async def main() -> None:
async with Client() as client:
print(await client.settings.allowPlace.set(True))
print(await client.settings.allowPlace.get())
print(await client.settings.allowPlace.toggle())
print(await client.settings.allowPlace.reset())
asyncio.run(main())All settings operations return CommandDispatchResult.
The command text uses the `set` command internally:
- set <name> <value>
- set <name>
- set toggle <name>
- set reset <name>
- Expecting direct Python booleans back from
get(); you get dispatch payload. - Forgetting that setting names are Baritone setting identifiers.
commands/control.mdtasks-events-and-waiting.mderrors-and-troubleshooting.md