CraftingTable.py
by Ritsucraft_
CraftingTable.py lets Python scripts react to Minecraft events and run commands on a Fabric server, with the Python code living in files the server owner edits.
What it does
Scripts are written in Python and hooked into game events. A handler is registered with the mc.event decorator, which takes an event name and an optional priority, an integer that sets the order in which handlers run. The event names are the Minecraft events a script listens for, and a handler whose body is only pass still registers the Fabric-side listener so logic can be added later.
Fabric API is required, and Python 3.11 is recommended, though other versions can work. Make sure the Python dependencies are installed before the first launch. After the first run, the mod generates its files in the Minecraft game directory, where mod.py defines the handlers. Running ctpy reload in the game applies changes without a restart, but adding a new decorator needs a full game restart. Upgrading to v0.0.2 requires following the listed steps, while replacing the jar alone is enough for changes that only touch the internal Python library.
Key features
Event-driven scripts
Python handlers respond to Minecraft events in an event-driven way instead of through the older function-naming convention.
Priority ordering
An optional integer priority sets the order in which handlers for the same event execute.
In-game reload
The ctpy command reloads handler changes in the running game, so edits to mod.py take effect without restarting.
Command control
Scripts can run commands and interact with the game through the same mc interface used for event handling.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
Use cases
Who it’s for: Server owners and players who want to script server behavior in Python. The mod is run on the server, so players joining the server do not need to install it.
How it compares
Python MC Mod is a Fabric mod for 1.21.1 that runs on the client and server, under the Creative Commons Attribution 4.0 license, and is not open source. CraftingTable II Refabricated covers Fabric and NeoForge for 1.20.1 – 1.21.8 under the MIT License and is open source, with both sides needing it.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| CraftingTable.py | Fabric | 1.20.4 – 1.20.6 | Server-side only | 2025-12-18 |
| Python MC Mod | Fabric | 1.21.1 | Client and server | 2026-05-06 |
| CraftingTable II Refabricated | Fabric and NeoForge | 1.20.1 – 1.21.8 | Client and server | 2026-06-18 |
Questions
Does CraftingTable.py need Fabric API?
Which Python version does CraftingTable.py use?
Do changes to mod.py apply without a restart?
In the catalog
CraftingTable.py is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 11,154 mods support Minecraft 1.20.6.
More from Ritsucraft_
Similar mods
What the author says
CraftingTable.py is a Fabric mod that allows you to control Minecraft using Python scripts in an event-driven way. Inspired by discord.py, it lets you handle server events asynchronously and execute commands directly from Python. To use CraftingTable.py, the following software is required: Fabric Loader: 0.17.2 or…
Official listing
- Modrinth page
- modrinth.com/mod/craftingtablepy
- Owner
- Ritsucraft_
- Published
- 2025-10-09
- Updated on Modrinth
- 2025-12-18
- Facts verified
- 2026-10-15
