
Minescript
Python scripting for Minecraft
Screenshots


About this Mod
Minescript is a platform for controlling and interacting with Minecraft using scripts written in the Python programming language.
Before using Minescript, please review the Terms of Use.
Join the Minescript Discord Server for announcements and to engage with the Minescript community.
Check out Minescript documentation for details about commands and APIs.
Download Python scripts developed for use with Minescript.
Setup
Download and install the Minescript mod for either Fabric (requires Fabric API) or Forge.
Download and install Python 3 if you don't already have it: https://www.python.org/downloads/ (or from the Microsoft Store on Windows)
Run Minecraft with the Minescript mod installed. The first time the Minescript mod runs, it will automatically create a minescript folder inside the minecraft folder.
Create Python scripts in the minescript folder.
Run Python scripts from the Minecraft in-game chat by entering backslash ("\") followed by the script name without the ".py" extension.
Minescript expects Python to be installed at the following location:
- on Windows:
%userprofile%\AppData\Local\Microsoft\WindowsApps\python3.exe - on Mac, Linux, etc:
/usr/bin/python3
If Python is installed somewhere else on your system, you can point Minescript at it by changing the python variable in the file config.txt in the minescript folder.
Example
See this example script that demonstrates how to access the player's coordinates, read blocks at a given location, and create blocks like signs with custom text all from a Python script.
Compatibility
Tested on the following platforms:
- Fabric, Forge, and NeoForge mod loaders
- Python 3.7 through 3.10
- macOS up to Sonoma
- Linux (Pop!_OS, NixOS, Bazzite, and SteamOS)
- Windows 10 and 11 (x86)
Available Versions
How to Install Minescript on Your Client
Install the Mod Loader Locally
Install fabric for your local Minecraft version.
Download the Matching File
Choose the Minescript file for fabric and Minecraft 26.2.
Install Mod
Place the .jar file in your local .minecraft/mods folder and restart Minecraft. No server-side installation is required.
Compatibility
Mod Loaders
Minecraft Versions
26.2, 26.1.2, 26.1 (+19 more)
Server-side
✗ UnsupportedRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Does Minescript need to be installed on the Minecraft server?
No. Modrinth marks Minescript as unsupported on the server side. Install it only in your local Minecraft mods folder. Your server can remain unchanged unless the mod page lists an additional dependency.
Which version and loader does Minescript require?
Use a file for fabric, forge, neoforge and your exact Minecraft version. Supported versions include 26.2, 26.1.2, 26.1. Files for different loaders are not interchangeable.
Minescript is not working – what should I check?
First check the Minecraft version, loader version and required dependencies. Put the .jar file in your local .minecraft/mods folder and remove older duplicates. Because this mod is client-side, adding server RAM will not fix it.
Similar Mods
Minecraft Server for Your Group
Minescript stays on your client. Host a compatible world for your group.