Python scripting for Minecraft
Minescript is a platform for controlling and interacting with Minecraft using scripts written in the Python programming language.
Extend the game with scripts
Python API
Functions for echo/chat, player position queries, block manipulation, inventory access, and entity detection.
Integrated scripting
Includes Pyjinn, an interpreter that recognizes Python syntax and integrates deeply with Java programs.
Run right from chat
Run scripts by typing a backslash (\) in chat, distinct from regular slash (/) commands.
Run your first script in 3 steps
Install the mod
Download the mod from Modrinth or CurseForge. Supports Fabric and NeoForge; older versions support Forge.
Add your script
Put .py files in the minecraft/minescript folder.
Run from chat
Run from chat with a backslash, without the extension — e.g. \example
Integrated scripting with Pyjinn
Pyjinn is an interpreter that recognizes Python syntax and integrates deeply with Java programs. It uses a “pidgin” language that looks and feels like Python while its implementation and runtime behavior are based in Java.