Web only: This extension runs exclusively in VS Code for the Web and is not compatible with VS Code desktop.
Mindcraft is a tile-based programming language for creative coding applications. Programs are built by arranging tiles -- typed, composable tokens -- into rules. A collection of rules forms a brain, which drives the behavior of in-game actors.
What This Extension Does
This extension lets you author custom brain tiles in TypeScript and use them in a live Mindcraft app. A bridge connects VS Code to your running Mindcraft app session -- edit a tile source file and it becomes available in the brain editor immediately. No local toolchain required.
Example: Authoring a "teleport" actuator in TypeScript:
Getting Started
Open vscode.dev in your browser and install the Mindcraft extension.
Launch your Mindcraft app and enable the VS Code Bridge. Make note of the generated join code.
In VS Code, open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P) and run Mindcraft: Connect, entering your join code.
Scaffold a new tile with Create New Sensor or Create New Actuator, or browse the Examples folder in the Mindcraft Explorer panel and copy a ready-made tile into your workspace.
Edit the generated TypeScript file -- save it and the tile is instantly available in the brain editor.
Once your editor is paired to your app, the connection persists and reconnects automatically. A new join code is only needed if either side is manually disconnected.
Commands
Command
Description
Mindcraft: Connect
Connect to a running Mindcraft app
Mindcraft: Disconnect
Disconnect from the current session
Mindcraft: Create New Sensor
Scaffold a new, empty sensor tile
Mindcraft: Create New Actuator
Scaffold a new, empty actuator tile
Mindcraft: Copy Example to Workspace
Copy the selected example to your workspace
Mindcraft: Open Settings
Open VS Code Settings filtered to Mindcraft options