Recorder

3figures
2min read
Sheet 14 of 47 · Scenarios

The recorder writes a scenario while you play. Use the bot on Bots or Live, or take it over and play in Minecraft, and you get a scenario file back.

Record a scenario

  1. Open the Record sheet

    Press Record on the Scenarios page. It asks for a bot, a file name and whether clicks find items by name or by slot. Record in the Bots header does the same for the selected bot.

  2. Play

    Use the bot on Bots or Live, or take it over and play in Minecraft. The steps show up live.

  3. Add checks

    Add a check in the red recording bar adds what must be true right now: the open menu, an item in it or a line the bot saw in chat.

  4. Save

    Stop and save writes the file and opens it. Throw away saves nothing.

The Record sheet: the bot, the file name and how clicks find items.
The Record a scenario sheet with a bot picked, a file name, and By name or By slot for how clicks find items
Add a check put in the open menu and an item in it while the recording runs.
The red REC bar with Add a check, Throw away and Stop and save, above seven recorded steps ending in a menu and an item check

What becomes a step

  • Chat and commands, clicks and closes become steps. The pause before each step becomes a wait, and a window that opens becomes an expectWindow with its exact title.
  • Item use, blocks used and broken, hits, drops, hotbar and hand swaps, signs, anvil names and walking are recorded only while the bot is taken over and you play in Minecraft. They become action and goto steps.
  • Clicks are saved by the words of the item's name when they are unique in the window, so a toggle that swaps ✖ for ✔ is still found on the next run. Otherwise by slot.
  • Each command starts a section, so a long recording reads as the few things that were done.

Everything that goes through the action registry is recorded, from the window and from the API alike. Reads like /win or /stats are left out, and other actions become action steps.

The saved recording played back and passed.
A recorded scenario after a run, every step passed

Over the API

curl -H "X-ITT-Token: $TOKEN" "localhost:8767/record/scenario/start?bot=CrawlBot&name=creator-walk"
# chat, click and close through the API or the window
curl -H "X-ITT-Token: $TOKEN" "localhost:8767/record/scenario/stop?bot=CrawlBot"
curl -H "X-ITT-Token: $TOKEN" "localhost:8767/scenario/run?name=creator-walk.yml"
EndpointParametersReturns
/record/scenario/startbot, name, by=name|slotStarts recording that bot
/record/scenario/stopbotSaves the scenario and returns its YAML
/record/scenario/statusBots being recorded and their step counts

Editing the result is on Editing Steps.

Loading the index

Enter openUp Down moveEsc close