Repository navigation
Releases
Blockpilot 1.4.2
- Fixes: a world creation cut short no longer blocks the name.
create worldmarks the folder as a test world
before the game starts making the world, sodelete worldremoves what a game killed meanwhile left, andcreate worldreplaces such a folder, one withoutlevel.dat, rather than failing witherr exists. - Fixes:
quitanswers while another session's action holds the game, such as acreate worldunder way: it
cancels the actions other sessions queued before it, asstopdoes, and goes next. Actions its own session queued
before it still run first. - Fixes:
messagesand! chatevents carry every line the chat window shows: replies to client-side commands and
lines mods add on the client were missing. Like other mod messages, those reach agents with their text
(safety.md). On Forge and NeoForge, action-bar text is no longer also logged as chat. - Fixes: capture, recording and snapshot names may hold
+, and a rejected name is named in the error.
Blockpilot 1.4.1
- Fixes:
wait <N>twaits N client ticks also when the integrated server steps the script at the moment the
client does, where now and then it waited one more; a sample or other action on the client keeps one tick per client
tick then too, as those on the server already did. - Fixes: the Forge 1.20.1 jar loads in a player's game again. Since 1.2.0 its mixin config didn't name the refmap
the jar carries, so Mixin looked the mixins' targets up by development names, which Forge's game doesn't have, and
the game crashed as it started.
Blockpilot 1.4.0
- Sub-levels round a camera away: with Sable, a camera placed with
awayshows the sub-levels within Sable's
tracking range of the camera, also one the server had unloaded while nobody was near, so a ship can be filmed from
anywhere while the player stands elsewhere (sable.md). - A camera on a sub-level's origin: with Sable,
sub:<uuid|name|here>names a sub-level for the camera.
camera follow sub:ship at ~0,8,-20keeps that offset in the world's axes as it flies and turns,camera orbit sub:shipcircles it,look sub:shipaims at it, andcamera move … around sub:shiptakes its~points from the
sub-level's origin in each frame, so a path keeps its shape round a flying ship (sable.md). A
sub:reference is looked up as the command arrives, as@<name>is, and a camera stays where it was drawn once its
sub-level is gone. The extension API is 2.2.0 for the new slot typeArgType.SUB_LEVEL, which Blockpilot resolves
before the handler runs, andArgs.subLevel(), which reads its UUID (extending.md). - A shot list on the camera's clock:
camera play <shot> | <shot> | …plays the shots one after another while the
script goes on, each acamera at,move,followororbitwithoutcamera, with its ownease=,fov=and
roll=, orhold <duration>. Every shot is checked as its command would be before the first starts, so a bad one
changes nothing;camera waitanswers at the end, or with the error of a shot that couldn't start, andrecord scriptwithcamera waitat its end films it whole (commands.md,
recording.md). - Flicker:
flicker <duration> <parts>…reads the brightness of parts of every frame drawn over the duration, as
pixelstakes the parts, and gives each part's strongest rhythm,flicker=<hz>with its period and amplitude, or
flicker=nonewhen nothing repeats, so a strobing lamp or a pulsing fireball is measured, not judged by eye
(commands.md). - Clean frames:
option hud clean, andhud=cleanonscreenshotandrecord, hide the whole HUD pass, with the
layers and overlays other mods draw in it, the player's night vision, blindness, darkness and nausea, and the field of
view effects, so captures compare from run to run; only the picture changes, not the game or the options.
docs/recording.md has a recipe for testing visual effects. - Particles by type:
particles match=flameormatch=mymod:*keeps the matching types, assounds match=does. - Fixes:
screenshot burstcaptures each frame the game draws once, where after a stall it gave the same frame
several times; each frame carriesdrawn=, when it was drawn, andlate=when it came after its time. On Windows,
Git Bash runs a plainblockpilotlauncher written besideblockpilot.cmd, which cmd.exe couldn't run from Git Bash
in a folder with a space.help serversays@sis the server unlessas=player.
Blockpilot 1.3.1
- Fixes: the game starts beside Sodium on 1.20.1 and 1.21.1, and beside Embeddium on 1.20.1 Forge, where it stopped
at load as both replace a method of the game's world renderer that Blockpilot hooks. Beside them,perfcounts their
section rebuilds, and a camera placedawaydraws the world around it as without them. A server step right after
closeon the game menu, in the same script or a request sent at once, runs as soon as the server takes the unpause
at its next tick, where it failed witherr paused.
Blockpilot 1.3.0
- Minecraft 1.21.11, on Fabric and NeoForge: two new jars, for Fabric 1.21.11 with Fabric API 0.141 and Fabric
Loader 0.17.3 or newer, and for NeoForge 21.11, on Java 21. Every command answers as on 1.21.1 and 26.1. - Fixes:
help pixelssays that JSON nests each region's values under its name, as{"sky":{"r":…}}, which
tests read assky.r; it read as if the reply held flat keys such assky.r.
Blockpilot 1.2.0
- Minecraft 1.20.1, on Fabric and Forge: two new jars, for Fabric 1.20.1 with Fabric API 0.92 and Fabric Loader
0.15 or newer, and for Forge 47.1 or newer, which NeoForge 47.1 loads too; both run on Java 17. Every command answers
as on 1.21.1.tick freeze,stepandraterun on Blockpilot's own port of the tick rate manager, which 1.20.1
lacks, and a function withoutreturnanswers with the number of commands it ran, as 1.20.1's game counts it
(commands.md). The extension API jar now targets Java 17 too. - Fixes:
placetakes the first neighbour of the cell whose face it can see, in the same order as before (below,
above, north, south, west, east), so it fills a hole two blocks ahead from the hole's far side and places above the
eyes beside a block, where it failed witherr out_of_reachbecause the first neighbour's face was hidden. Wherever
it worked before, it places against the same neighbour as before. - Dangerous,
dangerouslyAllowAll:trueinconfig/blockpilot/config.jsonturns every agent safety check off:
everyone's chat reaches agents with its text, every mod's commands and events are used whateverallowedExtensions
says, andagentCommandsis ignored. For testing a mod alone or in single-player only. It is set in the file only and
counts as false in a file that can't be read; while it is on, the log warns,trustreportsdangerously_allow_all
and the agent indicator says "safety off" (safety.md). - Play-only agents,
playSlashCommands: withagentCommandsplay, a slash command goes out, bycmd, typed or
clicked, when its root is inplaySlashCommandsinconfig/blockpilot/config.json, empty by default, such as
["fill"]for building sessions; any other is refused aserr not_allowed cmd <root>, naming the root. Never list
executeorfunction, which run any other command (safety.md). - Other mods' commands: 1.1.0's
allowedExtensionsnow applies only underagentCommandsplay; underall, the
default, every mod's commands are used again. Events from every mod always reach agents; an extension that turns
players' words into events filters them throughBlockpilotApi.isTrusted(extending.md). - License: Blockpilot is now dual-licensed under Apache-2.0 or MIT, at your option, where it was Apache-2.0 alone.
Each jar carries both licenses and no longer a NOTICE file, and the mod metadata namesApache-2.0 OR MIT.
Blockpilot 1.1.0
For filming: a camera that glides, follows, circles, zooms and tilts, one that films far from the player, entities taken
by name, sounds where the camera hears them, and marks for the edit. With Baritone installed, goto and mine walk
through it. blockpilot-api becomes 2.1.0, an addition, so integrations built against 2.0.0 keep working.
- BREAKING, chat from other players: player chat reaches agents with its text only from
trustedPlayersin
config/blockpilot/config.json, empty by default; everyone else's arrives aswithheld from=<name>, in! chat
events,messages, the chat window, its log line and, when the agent hosts, the server's log line. On a server that
doesn't check accounts nobody is trusted. The list is set in the file only and applies within a second;trust
shows it, andBlockpilotApi.isTrustedtells extensions. Single-player play and tests are unaffected
(safety.md). - BREAKING, other mods' commands: commands and events that other mods register reach agents only once their
namespace is inallowedExtensionsinconfig/blockpilot/config.json, empty by default; until then a call answers
err not_allowed <namespace>:<name>, events are dropped andhelpnames the setting. Blockpilot's ownsable:
commands need no entry. Integrations should tell their users to add their namespace. - Play-only agents:
agentCommands: "play"refusescmd,server, world files, recordings, captures, mod
configs, switching worlds, quitting and server-side extension commands witherr not_allowed, holds back slash
commands an agent types or clicks in chat, keeps its input to gameplay screens and refuses clicks on links. - Camera moves:
camera move <pos> [via <pos>]… [look <pos|e<id>|ahead>] over <duration> [ease=]glides the camera
to a point, placed anew in every frame, through up to 32 via points on one smooth curve at a constant speed. It keeps
its target, turns to a new one or looks ahead, andease=in|out|inoutshapes its speed. Withbackgroundit glides
while the script goes on, so characters can move and sounds play during the shot, andcamera waitwaits for its end.
stopleaves it where the last frame drew it.statusnames a placed camera's position, and an entity look target is
followed where each frame draws it. - Following and orbiting:
camera follow <entity> [at <~dx,dy,dz>] [turning]keeps the camera's framing on a
moving entity, turning with it over its shoulder if asked, andcamera orbit <pos|entity> [by <degrees>] over <duration>circles a point or a moving entity, timed like a move, withease=andbackground. - Camera lens:
fov=androll=give a placed camera its own field of view, from 1 to 170 degrees, and tilt;
camera atandfollowset them,moveandorbitglide to them, so a zoom can tighten along a move. - A camera away from the player:
camera at … awayhas the integrated server load, send and play the world
around the camera, so a set a thousand blocks off can be filmed while the player stands still, andlookandfind
search around it. - Sounds:
sound <id> [at <pos>]plays a sound on this client alone, heard from the camera, in singleplayer and on
servers alike. - Entities by name: every command that takes
e<id>also takes@<name>, the entity with that tag or custom name,
the nearest of several, so a script can summon a tagged actor and point the camera at it without reading its id. - Slow motion:
docs/recording.mdshows how to film it withtick rate, and what slows with the game. - A take that ends with its script:
record script [name]records until its script ends, however it ends, and
the reply carries the take's summary as! record …, so a failing step no longer leaves a recording running. - Recording marks:
record mark <label>notes the video time and frame a script reached;record stoplists the
marks, and<name>.marks.jsonkeeps them beside the video. - Baritone: with Baritone installed,
gotoandmineby type walk
through it on their own, digging into closed rooms and to blocks behind walls, and their replies addby=baritone.
Its settings decide whether it breaks or places blocks: withallowBreakandallowPlaceoff, a walk alters
nothing. Without Baritone they walk as before, andmineby type now walks closer to a block it can't see before
passing over it. Pathfinders sit behind one port, so another pathfinding mod is one adapter more. - GameTests:
gametest run <selector>runs the game's own GameTests, the ones a mod or a data pack registers, on
the integrated server, and answers with a row per test, passed or failed with its message, on every target. NeoForge
runs them only in a development environment with-Dneoforge.enableGameTest=true. - Worlds with experimental settings: when the game asks whether to back a world up first as it uses experimental
settings, as a data pack's GameTests make it,join world, andsnapshot saveandrestore, which join the world
again, load a test world without a backup, withexperimental=true, and fail at once witherr join_failedfor any
other world, the question left on screen, where they waited until they timed out. - Fewer fields in a sample:
sample … fields=a,bkeeps only those fields in each row, so a wide readout stays
readable. - Server steps: consecutive server steps run back to back on the server's ticks, so
settle=1tspaces commands
exactly one server tick apart andsettle=0truns them in one. - Fixes:
server functionof a function withoutreturnanswersok, noterr command_failed.wait <N>t
waits N ticks, where it waited one fewer, so scripts that allowed for that run a tick longer per wait. On 26.x,
screenshotnow names a placed camera's position. A command line the launcher can't read prints one line saying
what is wrong, not its whole usage text first. Entering a world starts the sound, message and particle logs anew, so
since=no longer lists an earlier world's entries, whose ticks could lie in the new world's future. - Extension API:
Form.repeated(limit, group)declares a part that may come several times, read back with
Args.valuesandArgs.positions. AnArgType.ENTITYslot takes@<name>too, looked up before the handler
runs, so the handler still reads an id;Lexicon.isEntityNametells a name.CommandContext.atEnd(action)runs an
action when the script ends, however it ends, before its reply.
Blockpilot 1.0.0
The first stable release, and it adds Minecraft 26.2 and 26.3. Blockpilot now comes for NeoForge and Fabric on
Minecraft 1.21.1, 26.1.2, 26.2 and 26.3, and as a Java agent for plain Minecraft 26.1.2, 26.2 and 26.3, one jar per
version. blockpilot-api stays at 2.0.0.
- Mining:
minecounts a block as mined only if the player dug it. A target that changed by itself, such as dirt
that grass spread onto, or an empty cell, used to count as mined. Nowmineat a position digs what is there or
giveserr no_block, andmineby type goes on to the next block. - Capture on 26.1.2: screenshots, pixel probes and the last frames of a recording wait for the GPU's copy, where
some graphics drivers used to hand them an older frame, and recordings no longer show uneven motion. - Keys: key names are the running game's, so 26.3 has no
f25and adds names such asac_home.
Blockpilot 1.0.0-alpha.0
The first release. Blockpilot lets AI agents and scripts observe and control Minecraft through a fast, token-efficient
local interface, to play the game or play-test a mod. It comes for NeoForge and Fabric on Minecraft 1.21.1 and 26.1.2,
and as a Java agent for plain Minecraft 26.1.2 without a mod loader, with blockpilot-api 2.0.0 for mods that add their
own commands.
- Interfaces: MCP over stdio through the launcher the game writes to
<game dir>/blockpilot/blockpilot, which
outlives restarts of the game; MCP over Streamable HTTP; a line protocol; and a command-line client. All of them
listen on loopback only and need a token. - Command language: scripts of commands, waits and assertions on any query, sampling while an action runs, events,
and JSON output. Its grammar is indocs/grammar.ebnf, with railroad diagrams. - Perception: player status, the blocks and entities around, finding blocks by id, tag, pattern or block state,
block and region reads (also server-side), light, inventories, screens and NBT. - Movement and interaction: path finding, moving and turning, mining, placing, using, attacking, crafting,
containers, raw keys, mouse and key chords, and flight. Real input interrupts agent actions, and F8 turns agent
control off. - Observation: screenshots, bursts and contact sheets, pixel probes, placed cameras, client options including sound
volumes, waiting for chunks to settle, and logs of sounds, messages, particles and the game log. - Video recording:
recordsaves an MP4 with the game's sound from its framebuffer, with the window in the
background if need be. It needs ffmpeg. - Play-testing: test worlds, snapshots, the integrated server's commands with their output, tick freezing and
stepping, performance captures with stack sampling, and simulated server, client and network load. - Mods: sub-levels with Sable, and NeoForge mod configs.
Blockpilot is licensed under Apache-2.0.