jasonjgardner/blockbench-mcp-plugin/blockbench-plugins
Claude Code and agent skill by jasonjgardner/blockbench-mcp-plugin
- community
Checking that the SKILL.md file is still in the repository.
Blockbench plugin/extension development for the 3D modeling tool. Use when creating, modifying, or debugging JavaScript plugins for Blockbench including actions, dialogs, panels, menus, toolbars, model manipulation, animation APIs, and custom formats/codecs. Triggers on Blockbench plugin, Blockbench extension, Blockbench API, BBPlugin, model editor plugin, or 3D modeling tool extension.
Install
npx vskill@latest install jasonjgardner/blockbench-mcp-plugin/blockbench-pluginsSKILL.md
Blockbench Plugin Development
Overview
Blockbench runs on Electron (desktop) and as a web PWA, using THREE.js for 3D rendering and Vue 2 for reactive UI. Plugins have full access to global APIs within an isolated execution context.
Quick Reference
| Task | Approach | |
|---|---|---|
| Create clickable command | new Action() - add to menus/toolbars | |
| Show form/dialog | new Dialog() with form fields | |
| Add sidebar panel | new Panel() with Vue component | |
| Modify model elements | Use Undo.initEdit() → modify → Undo.finishEdit() | |
| Custom import/export | new Codec() + new ModelFormat() | |
| React to changes | Blockbench.on('event_name', callback) |
Plugin File Structure
Plugin Registration Template
Actions
Actions are clickable commands for menus, toolbars, and keybindings.
Menu locations: 'file', 'edit', 'transform', 'filter', 'tools', 'view', 'help'
Action variants:
Dialogs
Panels
Panels appear in sidebars with Vue components.
Model Manipulation (with Undo)
CRITICAL: Always wrap modifications in Undo for user reversibility.
Creating Elements
Global Collections
| Collection | Description | |
|---|---|---|
Cube.all / Cube.selected | All cubes / selected cubes | |
Group.all / Group.selected | All groups / selected groups | |
Mesh.all / Mesh.selected | All meshes / selected meshes | |
Texture.all / Texture.selected | All textures / selected | |
Animation.all / Animation.selected | All animations / selected | |
Outliner.elements | All outliner elements |
Event System
Common events: update_selection, select_project, new_project, load_project, save_project, close_project, add_cube, add_group, add_texture, add_animation, select_animation, render_frame, undo, redo, finish_edit
See references/events.md for full list.
Custom Menus
Format and Codec (Import/Export)
Condition Patterns
Code Style Conventions
| Type | Convention | Examples | |
|---|---|---|---|
| Classes | PascalCase | OutlinerElement, Animation | |
| Methods | camelCase | updateTransform, getSelectedFaces | |
| Properties | snake_case | data_points, uv_offset | |
| Event/Action IDs | snake_case | select_project, my_action |
Critical Cleanup Pattern
MUST delete all components in `onunload()` to prevent memory leaks.
Anti-Patterns
Built-in Libraries (Do Not Bundle)
- THREE — Three.js 3D rendering
- Vue — Vue 2 reactive UI
- JSZip — ZIP handling
- marked — Markdown parsing
- Molang — Molang expression parser
Icons
TypeScript Setup
Template Files
assets/plugin_template.js— Complete starter pluginassets/format_plugin.js— Custom format/codec example
References
references/events.md— Full event listreferences/api.md— Detailed API referencereferences/elements.md— Element types and properties
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/blockbench-plugins/SKILL.md
Popularity
- Repository stars
- 63
- Repository forks
- 12
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 17 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jasonjgardner/blockbench-mcp-plugin/blockbench-plugins)