Compatibility
Minecraft: Java Edition
1.21.x
Platforms
Links
Tags
Creators
Details
Licensed MIT
Published 1 hour ago
Updated 2 months ago
PyMC
Write commands for your Paper server in Python 3 — like Skript, but in real Python.
from pymc import mcmod, mccommand
mcmod.triggerCommand("/gift {player} {item} [amount]")
mccommand.execute.console(f"/give {player} {item} {amount or 1}")
mccommand.broadcast(f"&6{mcmod.sender} gave {player} some {item}!")
Features
- Declare a command and its arguments in one line:
{required},[optional],{rest...} - Run commands as the console or a player, broadcast coloured messages, reply to the sender
- Read live server info with
mcmod.data: players, health, positions, TPS, plugins, version /pymc reloadpicks up new and edited scripts without a restart- Errors show up in the console as normal Python tracebacks
Works on any host
If the machine has Python 3.9+, PyMC uses it. If not — as on most Minecraft hosts — it automatically runs your scripts with GraalPy (Python 3.13) inside the server itself. No setup needed; the first start downloads about 150 MB.
Requirements
- Paper 1.21.11 (Paper only, not Spigot)
- Java 21+
Getting started
- Drop the jar into
plugins/and start the server. - Put your
.pyscripts intoplugins/PyMC/scripts/. - Run
/pymc reload.
Full documentation and source code: GitHub Repository
Alpha
This is an early version. Please report bugs on GitHub Issues.


