Pendulum

Pendulum

Client side script executor for Minecraft.

by
378 Downloads
fabricforgeneoforgelibraryutility
Rent Server with this Mod

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 Documentation

🧑 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

// 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).

Available Versions

Pendulum 1.0-beta.3 for 1.21.1 Fabricbeta
MC 1.21, 1.21.1fabric
June 5, 2026
Pendulum 1.0-beta.3 for 1.21.1 Neoforgebeta
MC 1.21, 1.21.1neoforge
June 5, 2026
Pendulum 1.0-beta.3 for 1.20.1 Fabricbeta
MC 1.20, 1.20.1fabric
June 5, 2026
Pendulum 1.0-beta.3 for 1.20.1 Forgebeta
MC 1.20, 1.20.1forge
June 5, 2026
Pendulum 1.0-beta.2 for 1.21.1 Fabricbeta
MC 1.21, 1.21.1fabric
June 3, 2026

How to Install Pendulum on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.1).

3

Install Mod

Open the mod browser in the dashboard and search for "Pendulum". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabricforgeneoforge

Minecraft Versions

1.21.1, 1.21, 1.20.1 (+2 more)

Server-side

Unsupported

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Pendulum server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.1). You can switch loaders with one click in the panel.

Is Pendulum compatible with fabric and forge and neoforge?

Pendulum officially supports fabric, forge, neoforge for Minecraft 1.21.1, 1.21, 1.20.1. Note: Forge and Fabric mods are NOT cross-compatible – pick one loader and stick with it. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Pendulum – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Pendulum consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Pendulum with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
GNU General Public License v3.0 only
Server-side
Unsupported

Supported Versions

1.21.11.211.20.11.201.16.5