Pendulum

⭐ — (4 endorsements) 📥 686 downloads 📌 v1.0-beta.3-1.21.1-fabric 📅 10/14/2022
🟡 Updated this year

By IAFEnvoy · fabric

⬇ Download Mod Source: Modrinth ↗ 📅 Updated: 6/5/2026 📅 Created: 10/14/2022
⚠️ Install Order · 2 steps
1🛠️ Forge — Minecraft Forge (mod loader) Download ↗
2🛠️ Fabric — Fabric Loader Download ↗

Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.

🔍 Analysis

  • 👍 0.6% endorsement rate
  • 🏆 #298 of 894 fabric mods in this game by downloads

📋 About This Mod

# Pendulum **Client-side JavaScript executor for Minecraft.** Automate player actions — movement, construction, combat, inventory, world queries, and `Baritone` supported. Designed for both human players and AI agents. This mod is partly inspired by `Playwright.js`, which allows agents to control web browsers via JavaScript. Pendulum brings that same power to Minecraft, enabling complex automation and AI integration through a simple JS API. ## Version Support | Minecraft | Fabric | Forge | NeoForge | Status | |-----------|--------|-------|----------|-----------------| | 1.20.1 | ✅ | ✅ | | Fully Supported | | 1.21.1 | ✅ | ❌ | ✅ | Fully Supported | | 26.1.2 | 🔨 | ❌ | 🔨 | In development | ## Features For detailed documentation, see the (https://docs.iafenvoy.com/docs/mod/pendulum/) ### 🧑 For Players - **`/pendulum execute`** — run JavaScript inline in chat - **`/pendulum file`** — run `.js` scripts from `.minecraft/pendulum/` - **`mc.*`** — 80+ API functions: `mc.player.forward()`, `mc.world.findBlocks()`, `mc.inv.hasItem()`, `mc.gui.click()`, and more. Log via `pendulum.log()`, `pendulum.warn()`, `pendulum.error()`. - **`br.*`** — 45 Baritone functions: pathfinding, mining, farming, building schematics ### 🤖 For AI Agents - **MCP JSON-RPC 2.0 over TCP** — native AI agent integration - **`script/eval`** — execute arbitrary JS and return results - **`script/status`** / **`script/abort`** — manage script state - **`gui/enumerateWidgets`** — full recursive widget tree - **`gui/guiElements`** — read all visible GUI controls - **`gui/screenshot`** — capture the game view - **`simulate/click`** / **`gui/clickButton`** — click GUI elements - **`simulate/typeText`** / **`simulate/pressKey`** — keyboard input - Compatible with VS Code Copilot, Claude Desktop, and any MCP client ## Quick Start ```js // Walk forward 1 second /pendulum execute mc.player.forward(20) // Mine all pumpkins nearby /pendulum execute for(let p of mc.world.findBlocks('minecraft:pumpkin',8)){ mc.player.breakBlockAt(p.x,p.y,p.z) } // Run a script file /pendulum file farm.js // AI Agent workflow: screenshot + click gui/screenshot → gui/clickButton("Done") → simulate/typeText("Hello", true) ``` ## MCP Server Start the MCP server for AI agent access: ``` /pendulum mcp start # default port 25566 /pendulum mcp stop # stop the server /pendulum mcp status # check if running ``` Configure your MCP client to connect to `localhost:25566` (default).

Client-side JavaScript executor for Minecraft. Automate player actions — movement, construction, combat, inventory, world queries, and `Baritone` supported. Designed for both human players and AI agents.

This mod is partly inspired by `Playwright.js`, which allows agents to control web browsers via JavaScript. Pendulum brings that same power to Minecraft, enabling complex automation and AI integration through a simple JS API.

## Version Support

| Minecraft | Fabric | Forge | NeoForge | Status | |-----------|--------|-------|----------|-----------------| | 1. 20. 1 | ✅ | ✅ | | Fully Supported | | 1. 21. 1 | ✅ | ❌ | ✅ | Fully Supported | | 26. 1. 2 | 🔨 | ❌ | 🔨 | In development |

## Features

For detailed documentation, see the (https://docs.iafenvoy.com/docs/mod/pendulum/)

### 🧑 For Players

  • `/pendulum execute` — run JavaScript inline in chat
  • `/pendulum file` — run `.js` scripts from `.minecraft/pendulum/`
  • *`mc.` — 80+ API functions: `mc.player.forward()`, `mc.world.findBlocks()`, `mc.inv.hasItem()`, `mc.gui.click()`, and more. Log via `pendulum.log()`, `pendulum.warn()`, `pendulum.error()`.
  • `br.` — 45 Baritone functions: pathfinding, mining, farming, building schematics

### 🤖 For AI Agents

  • MCP JSON-RPC 2. 0 over TCP — native AI agent integration
  • `script/eval` — execute arbitrary JS and return results
  • `script/status` / `script/abort` — manage script state
  • `gui/enumerateWidgets` — full recursive widget tree
  • `gui/guiElements` — read all visible GUI controls
  • `gui/screenshot` — capture the game view
  • `simulate/click` / `gui/clickButton` — click GUI elements
  • `simulate/typeText` / `simulate/pressKey`* — keyboard input
  • Compatible with VS Code Copilot, Claude Desktop, and any MCP client

## Quick Start

```js // Walk forward 1 second /pendulum execute mc.player.forward(20)

// Mine all pumpkins nearby /pendulum execute for(let p of mc.world.findBlocks('minecraft:pumpkin',8)){ mc.player.breakBlockAt(p.x,p.y,p.z) }

// Run a script file /pendulum file farm.js

// AI Agent workflow: screenshot + click gui/screenshot → gui/clickButton("Done") → simulate/typeText("Hello", true) ```

## MCP Server

Start the MCP server for AI agent access:

``` /pendulum mcp start # default port 25566 /pendulum mcp stop # stop the server /pendulum mcp status # check if running ```

Configure your MCP client to connect to `localhost:25566` (default).

🤖 AI-enhanced — based on mod data

📊 Mod Details

Game
Minecraft Mods
Author
IAFEnvoy
Version
1.0-beta.3-1.21.1-fabric
Downloads
686
Endorsements
4
Category
fabric
Created
10/14/2022
Updated
6/5/2026
Game Versions
1.21, 1.21.1
Tags
library, utility

🔧 How to Install Minecraft Mods Mods

Download from Modrinth. Use Prism Launcher or drop into your mods folder.

📖 Full step-by-step install guide for Minecraft Mods →

Visit the official mod page for specific installation instructions for this mod.

🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Mods commands, item IDs, and more.

❓ Frequently Asked Questions

Which Minecraft Mods versions does Pendulum support?

The author lists 1.21, 1.21.1. Other versions may work but are untested by the author.

What is the latest version of Pendulum?

Version 1.0-beta.3-1.21.1-fabric, published 2026-06-05 with 686 downloads recorded at the source.

Keep browsing — more Minecraft Mods mods await

📋 All Minecraft Mods Mods 🏆 Top 25 📂 More fabric 👤 More by IAFEnvoy 🔎 Similar Mods 🌐 Best fabric (All Games) 🔀 Check Compatibility ⚖️ Compare Mods 🆕 New Mods