The crates
ghast is twelve crates with one version number. Dependencies point down this page: a crate uses only what is below it, so the lower ones work on their own. The one sideways link is ghast-ext, which can use ghast-pathfinder for goto.
-
Facade
The crate you add. It re-exports the bot API and the layers below.
-
ghast
Re-exports the bot API and the lower layers. It is the only dependency a bot needs.
-
-
Optional tools
Off by default. Each one is a cargo feature of the facade.
-
ghast-ext
feature
extSequential async helpers on the tick model: look, dig, place, equip, containers, chat, events, goto.
-
ghast-pathfinder
feature
pathfinderA* path planning with physics-measured costs and a path follower. Every move is checked in the vanilla-exact physics.
-
ghast-viewer
feature
viewerA live 3D view of the bot's world in the browser, with recordings, a dash cam and replays.
-
-
Client
One session: the network on one side, your behaviour on the other.
-
ghast-client
The connection, the fixed 50 ms tick loop, and the Behavior / TickContext bot API.
-
-
Game state
What a client has to remember about the game.
-
ghast-world
Chunk storage and block lookup, with loaded and unloaded columns kept apart.
-
ghast-inventory
Windows, vanilla click prediction, the window confirm protocol, lazy-NBT item stacks.
-
ghast-entity
Entity tracking (opt-in), vanilla server positions, metadata.
-
-
Rules
Pure logic with no network in it.
-
ghast-physics
Player movement as a pure, deterministic function. No I/O and no clock.
-
ghast-auth
Offline identities, Microsoft accounts, SOCKS5 with auth and remote DNS, login encryption.
-
-
Foundations
Generated from minecraft-data. Usable on their own.
-
ghast-protocol
Per-version packets, framing, compression, encryption, VarInt, NBT and chat. No game logic.
-
ghast-data
Blocks, block states, collision shapes, items and entities.
-
Why the layers are cut this way is in the architecture page of the guide.