Перейти к содержимому
Mineforgian

Minescript

Python scripting for Minecraft

Загрузки
57K
Подписчики
131
Обновлён
20 июня 2026 г.
Лицензия
GPL-3.0-only

Опубликован 1 декабря 2023 г.

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)

Ченджлог

5.0b11-fabric-26.2Бета26.2 · 20 июня 2026 г.

Docs

Minescript 5.0b11

  • Document EventLoop and packet events (fa632c4)
  • Let scripted chats start with slash or backslash (0f5ae28)
  • Remove config for toggling Pyjinn compilation (9ac864a)
  • Support packet interception/cancellation in Pyjinn (77412bb)

Pyjinn 0.14

  • Fix handling of local class definitions (d6a9297)
  • Introduce CompiledClass to compile classes earlier (8d7a5e1)
  • Remove Expression.eval, Statement.exec, overrides (637e0fe)
  • Restore ability to add global vars outside scripts (56428f8)
  • Merge Script.parse() into Script.compile() (5a24b76)
  • Get/set local vars by int index, not string lookup (742f762)
  • Require compilation; global/nonlocal decls in Code (fbd5998)
  • Disallow function definitions/calls with bad args (5acb01f)
  • Support keyword-only args (following *arg) (3854761)
  • Convert byte/short to Byte/Short in arg type check (dcdd1a3)
5.0b11-neoforge-26.2Бета26.2 · 20 июня 2026 г.

Docs

Minescript 5.0b11

  • Document EventLoop and packet events (fa632c4)
  • Let scripted chats start with slash or backslash (0f5ae28)
  • Remove config for toggling Pyjinn compilation (9ac864a)
  • Support packet interception/cancellation in Pyjinn (77412bb)

Pyjinn 0.14

  • Fix handling of local class definitions (d6a9297)
  • Introduce CompiledClass to compile classes earlier (8d7a5e1)
  • Remove Expression.eval, Statement.exec, overrides (637e0fe)
  • Restore ability to add global vars outside scripts (56428f8)
  • Merge Script.parse() into Script.compile() (5a24b76)
  • Get/set local vars by int index, not string lookup (742f762)
  • Require compilation; global/nonlocal decls in Code (fbd5998)
  • Disallow function definitions/calls with bad args (5acb01f)
  • Support keyword-only args (following *arg) (3854761)
  • Convert byte/short to Byte/Short in arg type check (dcdd1a3)
5.0b11-fabric-26.1.2Бета26.1.2 · 16 апреля 2026 г.

Docs

Minescript 5.0b11

  • Document EventLoop and packet events (fa632c4)
  • Let scripted chats start with slash or backslash (0f5ae28)
  • Remove config for toggling Pyjinn compilation (9ac864a)
  • Support packet interception/cancellation in Pyjinn (77412bb)

Pyjinn 0.14

  • Fix handling of local class definitions (d6a9297)
  • Introduce CompiledClass to compile classes earlier (8d7a5e1)
  • Remove Expression.eval, Statement.exec, overrides (637e0fe)
  • Restore ability to add global vars outside scripts (56428f8)
  • Merge Script.parse() into Script.compile() (5a24b76)
  • Get/set local vars by int index, not string lookup (742f762)
  • Require compilation; global/nonlocal decls in Code (fbd5998)
  • Disallow function definitions/calls with bad args (5acb01f)
  • Support keyword-only args (following *arg) (3854761)
  • Convert byte/short to Byte/Short in arg type check (dcdd1a3)
5.0b11-neoforge-26.1.2Бета26.1.2 · 16 апреля 2026 г.

Docs

Minescript 5.0b11

  • Document EventLoop and packet events (fa632c4)
  • Let scripted chats start with slash or backslash (0f5ae28)
  • Remove config for toggling Pyjinn compilation (9ac864a)
  • Support packet interception/cancellation in Pyjinn (77412bb)

Pyjinn 0.14

  • Fix handling of local class definitions (d6a9297)
  • Introduce CompiledClass to compile classes earlier (8d7a5e1)
  • Remove Expression.eval, Statement.exec, overrides (637e0fe)
  • Restore ability to add global vars outside scripts (56428f8)
  • Merge Script.parse() into Script.compile() (5a24b76)
  • Get/set local vars by int index, not string lookup (742f762)
  • Require compilation; global/nonlocal decls in Code (fbd5998)
  • Disallow function definitions/calls with bad args (5acb01f)
  • Support keyword-only args (following *arg) (3854761)
  • Convert byte/short to Byte/Short in arg type check (dcdd1a3)
5.0b11-fabric-26.1Бета26.1 · 28 марта 2026 г.

Docs

Minescript 5.0b11

  • Document EventLoop and packet events (fa632c4)
  • Let scripted chats start with slash or backslash (0f5ae28)
  • Remove config for toggling Pyjinn compilation (9ac864a)
  • Support packet interception/cancellation in Pyjinn (77412bb)

Pyjinn 0.14

  • Fix handling of local class definitions (d6a9297)
  • Introduce CompiledClass to compile classes earlier (8d7a5e1)
  • Remove Expression.eval, Statement.exec, overrides (637e0fe)
  • Restore ability to add global vars outside scripts (56428f8)
  • Merge Script.parse() into Script.compile() (5a24b76)
  • Get/set local vars by int index, not string lookup (742f762)
  • Require compilation; global/nonlocal decls in Code (fbd5998)
  • Disallow function definitions/calls with bad args (5acb01f)
  • Support keyword-only args (following *arg) (3854761)
  • Convert byte/short to Byte/Short in arg type check (dcdd1a3)
5.0b11-neoforge-26.1Бета26.1 · 28 марта 2026 г.

Docs

Minescript 5.0b11

  • Document EventLoop and packet events (fa632c4)
  • Let scripted chats start with slash or backslash (0f5ae28)
  • Remove config for toggling Pyjinn compilation (9ac864a)
  • Support packet interception/cancellation in Pyjinn (77412bb)

Pyjinn 0.14

  • Fix handling of local class definitions (d6a9297)
  • Introduce CompiledClass to compile classes earlier (8d7a5e1)
  • Remove Expression.eval, Statement.exec, overrides (637e0fe)
  • Restore ability to add global vars outside scripts (56428f8)
  • Merge Script.parse() into Script.compile() (5a24b76)
  • Get/set local vars by int index, not string lookup (742f762)
  • Require compilation; global/nonlocal decls in Code (fbd5998)
  • Disallow function definitions/calls with bad args (5acb01f)
  • Support keyword-only args (following *arg) (3854761)
  • Convert byte/short to Byte/Short in arg type check (dcdd1a3)
5.0b11-fabric-1.21.11Бета1.21.11 · 4 марта 2026 г.

Docs

Minescript 5.0b11

  • Document EventLoop and packet events (fa632c4)
  • Let scripted chats start with slash or backslash (0f5ae28)
  • Remove config for toggling Pyjinn compilation (9ac864a)
  • Support packet interception/cancellation in Pyjinn (77412bb)

Pyjinn 0.14

  • Fix handling of local class definitions (d6a9297)
  • Introduce CompiledClass to compile classes earlier (8d7a5e1)
  • Remove Expression.eval, Statement.exec, overrides (637e0fe)
  • Restore ability to add global vars outside scripts (56428f8)
  • Merge Script.parse() into Script.compile() (5a24b76)
  • Get/set local vars by int index, not string lookup (742f762)
  • Require compilation; global/nonlocal decls in Code (fbd5998)
  • Disallow function definitions/calls with bad args (5acb01f)
  • Support keyword-only args (following *arg) (3854761)
  • Convert byte/short to Byte/Short in arg type check (dcdd1a3)
5.0b11-neoforge-1.21.11Бета1.21.11 · 4 марта 2026 г.

Docs

Minescript 5.0b11

  • Document EventLoop and packet events (fa632c4)
  • Let scripted chats start with slash or backslash (0f5ae28)
  • Remove config for toggling Pyjinn compilation (9ac864a)
  • Support packet interception/cancellation in Pyjinn (77412bb)

Pyjinn 0.14

  • Fix handling of local class definitions (d6a9297)
  • Introduce CompiledClass to compile classes earlier (8d7a5e1)
  • Remove Expression.eval, Statement.exec, overrides (637e0fe)
  • Restore ability to add global vars outside scripts (56428f8)
  • Merge Script.parse() into Script.compile() (5a24b76)
  • Get/set local vars by int index, not string lookup (742f762)
  • Require compilation; global/nonlocal decls in Code (fbd5998)
  • Disallow function definitions/calls with bad args (5acb01f)
  • Support keyword-only args (following *arg) (3854761)
  • Convert byte/short to Byte/Short in arg type check (dcdd1a3)

Комментарии

Загружаем…