MCAPIBridge

Quick rating

MCAPIBridge

No reviews yet

Bridges Minecraft API to external programs, allowing remote control and automation of the game.Now support Python,C#,Dart.More languages will be added.

Mod Loaders
Fabric
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Where It Runs
Server Only

Runs entirely on the server. Also works in singleplayer.

Client and Server

Must be installed on both the client and the server.

Varies by version.

About

Project Details

Type
Mod
License
MIT License
Authors

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

Modrinth ID

Resources

External Links

About

Description

MCAPIBridge

MCAPIBridge is a powerful Fabric mod for Minecraft that establishes a real-time TCP socket connection between the game and external scripts (Python, etc.). It exposes a comprehensive API allowing programmatic control over the world, entities, and player states, acting as a programmable interface for Minecraft.

Inspired by the classic Minecraft Pi Protocol (MCPI) and the RaspberryJuice plugin.


⚡ Core Capabilities

🔌 Socket Server

  • Port 4711: Opens a local TCP server listening for text-based commands.
  • Protocol: Robust line-based protocol compatible with any programming language.
  • Multi-Client: Supports multiple concurrent script connections via multithreading.

🌍 World & Dimension Control

  • Block Manipulation: Place or query any block (supports modded blocks) instantly.
  • Dimension Support: Commands can target specific dimensions (Overworld, Nether, The End) automatically.
  • Sign Editing: Modify text on sign blocks dynamically.
  • Server Commands: Execute any vanilla server command (e.g., /time, /weather) with OP privileges.

🧟 Entity & Physics Engine

  • Advanced Spawning: Summon entities with precise coordinates and rotation (Yaw/Pitch).
  • Physics Control:
    • Velocity: Apply force vectors to entities to launch them (creating projectiles).
    • Gravity: Toggle gravity on/off for specific entities (e.g., creating laser-straight arrows).
    • Entity Radar: Scan and retrieve a list of all entities within a specified radius.
    • Particle System: Generate visual effects with custom count, speed, and diffusion volume.
    • Forced Look: Control where a player or entity is looking with lookAt, perfect for cinematics or horror mechanics.

👤 Player Management

  • Stats Control: Read and modify Health (can break vanilla limits), Food Level, and Game Mode.
  • Abilities: Toggle Flight (even in Survival mode), God Mode (Invulnerability), and adjust Movement Speeds (Walk/Fly).
  • Inventory API:
    • Read: Retrieve full inventory contents (Main, Armor, Offhand).
    • Write: Give items or Clear specific items/slots.
    • Detailed Info: Access real-time data including exact position, rotation, and held items.
    • Teleportation: Teleport players or entities across coordinates and dimensions.

🖱️ Input & Events System

  • Dual-Sided Architecture: Includes both Client and Server logic for precise input detection.
  • Raycasting Interactions:
    • Right Click: Detects interaction up to 500 blocks away (Server-side raycasting).
    • Left Click: Detects interactions and attacks.
    • Chat Listener: Streams in-game chat messages to the external script in real-time.
    • Macro Keys: Registers 5 Custom Macro Keys in the game's controls menu. Scripts can listen for these specific key presses to trigger custom logic.

🔊 Custom Audio System

  • Tone Generation: Generate sine wave tones with custom frequency, duration, and sample rate.
  • WAV File Playback: Load and play custom WAV audio files (8/16-bit PCM, Mono/Stereo).
  • 3D Spatial Audio: Play sounds at specific world coordinates with realistic distance attenuation.
  • Dynamic Controls: Real-time volume adjustment, loop playback, pause/stop, and position updates for moving sound sources.
  • Multi-Source Mixing: Play multiple audio sources simultaneously (e.g., chords, ambient layers).
  • Audio Cloning: Efficiently clone loaded audio data for low-latency multi-speaker setups.

🖥️ Custom Screen System

  • Dynamic Web Screen: A new custom block mcapibridge:screen that can display real-time images or video streams controlled by scripts.
  • Seamless Tiling: Automatically merges adjacent screen blocks into a single large display, perfect for video walls or billboards.
  • High Performance: Uses client-side texture rendering and JPG/PNG streaming for smooth 30 FPS playback. Recommend JPG streaming.
  • Interactive Configuration: Right-click screen blocks to easily configure IDs and layout without commands.
  • Crafting Recipe:
    G G G   (Glass Pane)
    R D R   (Redstone, Glowstone Dust, Redstone)
    I I I   (Iron Ingot)
    

⚡ Physical IO System

  • IO Port Block: A specialized block mcapibridge:io that bridges Minecraft Redstone with external hardware/scripts.
  • Input Mode: Scripts sends signals -> Block emits Redstone power (0-15).
  • Output Mode: Block detects Redstone power -> Sends events to scripts.
  • Real-time Interaction: Perfect for controlling smart home devices from Minecraft or visualizing sensor data in-game.
  • Crafting Recipe:
    I R I   (Iron Ingot, Redstone, Iron Ingot)
    S S S   (Stone)
    

📦 Deep Data Access (NBT)

  • NBT Modification: Directly write raw NBT data to Entities and Block Entities.
  • Advanced Customization: Create giants, freeze mobs (NoAI), make entities glow, or fill chests with custom loot using JSON-like NBT strings.

Install

Modrinth

⚠️ Security Warning

This mod opens Port 4711 and grants Full Administrative (OP) Permissions to any program that connects to it.

  • Do not install this on a public server without a firewall.
  • It is designed for single-player, LAN, or private server use only.

Bridges

Python Library

Python Examples

C# Library

C# Examples

Dart Library

Dart Examples

More languages will be supported in the future.


📋 Update Log

2/24/2026

  • Add Dart support

2/13/2026

  • Add 1.21.4, 1.20.4, 1.20.1 support.
  • Fix audio bugs. Now you can use audio.play to resume audio which pauses.

2/11/2026

  • C#: Added C# support.
  • 1.21.1: Added 1.21.1 support.

2/10/2026 Alpha-0.5.1

  • IO Block Update: Added mc.io.config method for dynamic reconfiguration of IO blocks via scripts.

2/9/2026 Alpha-0.5.0

  • Physical IO System: Added mcapibridge:io block for bridging Redstone with external IO.
    • Input Mode: Control in-game Redstone power from scripts.
    • Output Mode: Monitor in-game Redstone power changes in scripts.
    • Interactive Config: Right-click to open a GUI for setting Channel ID and Mode.
    • Visual Feedback: Block texture changes based on mode (Input/Output).

2/8/2026 Alpha-0.4.1

  • Audio & Video Dimension Support: Implemented dimension-aware playback. Screens and 3D audio now correctly isolate between Overworld, Nether, and End.
  • Hot-Join & Resume Playback: Added state persistence and offset synchronization. New players joining the server will automatically receive audio data and resume playback in perfect sync with the video.
  • Sync Adjustment: Added a slider in the audio settings to manually adjust audio latency compensation (+/- 5.00s).

2/6/2026 Alpha-0.4.0

  • Custom Screen System: Introduced mcapibridge:screen block for displaying real-time images and video streams.
    • Video Wall: Supports seamless multi-block screen assembly with automatic layout detection.
    • High-Res Streaming: Capable of streaming 1080p/720p content at 30 FPS via JPG/PNG compression.
    • Easy Config: Right-click to open a GUI for setting Screen IDs.
    • Audio Optimization: Added audio.clone command to efficiently replicate audio sources for multi-speaker setups (e.g., surround sound cinemas) without re-uploading data.
    • Bugs fixed:
      • Fix audio on play3d witch can't set volume to 0 automatically.
      • Fix socket can still keep connected with bridges sometimes.

2/4/2026 Alpha-0.3.1

  • Audio Settings Integration: Added native "MCAPIBridge Audio" volume slider in Minecraft's Sound Options menu.

2/4/2026 Alpha-0.3.0

  • Custom Audio System: Added full audio playback capabilities via OpenAL.
    • Tone Generation: Create sine wave tones with configurable frequency and duration.
    • WAV Support: Load and play custom .wav files (auto-converts stereo to mono).
    • 3D Spatial Audio: Play audio at world coordinates with realistic distance attenuation and rolloff control.
    • Dynamic Position: Update sound source positions in real-time for surround effects.
    • Playback Controls: Volume adjustment, loop toggle, pause, stop, and unload functions.
    • Multi-Source: Play multiple audio sources simultaneously for chords and layered audio.

2/1/2026 Alpha-0.2.2

  • Deep Data Control: Added NBT modification support for entities and blocks, allowing advanced customization like giant mobs or custom loot.
  • Camera Control: Implemented lookAt API to force players or entities to look at specific coordinates.

1/31/2026 Alpha-0.2.1

  • Bug Fixed: Single hit or chat event can now be handled by multiple connected scripts.

1/31/2026 Alpha-0.2.0

  • Client-Side Input: Now detects Left/Right clicks even when aiming at the air (using client packets).
  • Macro Keys: Added 5 customizable keys in the game settings that scripts can listen to for triggering custom actions.

🗺️ Roadmap

  • More Language Bridges: Arduino for ESP32, Micropython for ESP32 libraries.

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Downloads
Last Updated
CurseForge
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works