Back to mods
Minescript project artwork

Modrinth · Minecraft mod

Minescript

Python scripting for Minecraft

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Minescript release should I use?

Updated last month
Latest stable file 5.0-fabric-26.3
Game version 26.3
Loader Fabric

Minescript 5.0-fabric-26.3 targets 26.3 with Fabric. It must be installed on the client. Do not install it on the dedicated server. All 1 required mods have matching files.

Where it goes

Is Minescript required on the client, server, or both?

It must be installed on the client. Do not install it on the dedicated server.

Client Required
Dedicated server Not supported
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This file is marked client-only.

What else does Minescript 5.0-fabric-26.3 need?

5.0-fabric-26.3. Change the file and its required mods may change too.

All 1 required mods have matching files

Install Fabric API first. We found matching files for this game-version and loader setup.

Fabric API Needed by Minescript 5.0-fabric-26.3
required
Matching file found Matched file: 0.166.0+26.3

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add Minescript without breaking your instance.

Built for Minescript 5.0-fabric-26.3. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 5.0-fabric-26.3. It targets 26.3 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric API first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    It must be installed on the client. Do not install it on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 5.0-fabric-26.3. It opens that exact file at the source.

About this project

What does Minescript add?

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

  1. Download and install the Minescript mod for either Fabric (requires Fabric API) or Forge.

  2. Download and install Python 3 if you don't already have it: https://www.python.org/downloads/ (or from the Microsoft Store on Windows)

  3. 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.

  4. Create Python scripts in the minescript folder.

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

Project description from Modrinth.

Pick your setup

Minescript by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

18 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Minescript versions and loaders

100 of 100 releases match

Looking for an older file? The official Modrinth project page is in Resources.