ghast v0.5.6

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.

  1. 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.

  2. Optional tools

    Off by default. Each one is a cargo feature of the facade.

    • ghast-ext

      feature ext

      Sequential async helpers on the tick model: look, dig, place, equip, containers, chat, events, goto.

    • ghast-pathfinder

      feature pathfinder

      A* path planning with physics-measured costs and a path follower. Every move is checked in the vanilla-exact physics.

    • ghast-viewer

      feature viewer

      A live 3D view of the bot's world in the browser, with recordings, a dash cam and replays.

  3. 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.

  4. 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.

  5. 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.

  6. 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.