Back to mods
CraftPy project artwork

CurseForge · Minecraft mod

CraftPy

Minecraft modding in python, includes and in game IDE.

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

Quick answer

Which CraftPy release should I use?

Updated yesterday
Latest stable file CraftPy - v1.1.1 - 1.21.1 - NeoForge
Game version 1.21.1
Loader NeoForge

CraftPy - v1.1.1 - 1.21.1 - NeoForge targets 1.21.1 with NeoForge. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.

Where it goes

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

The project page does not say whether this file belongs on the client, dedicated server, or both.

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

The source does not explicitly classify this release as client-only or server-only.

What else does CraftPy - v1.1.1 - 1.21.1 - NeoForge need?

CraftPy - v1.1.1 - 1.21.1 - NeoForge. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add CraftPy without breaking your instance.

Built for CraftPy - v1.1.1 - 1.21.1 - NeoForge. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use CraftPy - v1.1.1 - 1.21.1 - NeoForge. It targets 1.21.1 with NeoForge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside CraftPy - v1.1.1 - 1.21.1 - NeoForge. It opens that exact file at the source.

About this project

What does CraftPy add?

CraftPy — Mod Minecraft Inside Minecraft

Write a few lines. Press Run. It's in your world! No Java, no restarts, no installing anything. Python comes built in.

VERY IMPORTANT - How to Install

IF YOU DON'T DO THIS THE MOD WON'T WORK!

For clients

    1. Download the mod alongside Modern UI and install it
    1. Go to my Python Installer and download the right Python installer and run it
  • 2.1. This File also contains a guide on how to install it
    1. Open a terminal and run python -m pip install soundfile. Without it some features break
  • 3.1 If python is not found try using python3
    1. Enjoy

For servers

The server needs Python 3.13 or newer installed (Windows or Linux). Modern UI is not needed on a server.

If you can't access a terminal on your server or don't know how, download the version with built in python from my Github Releases and drop it in your /mods folder. Curseforge's Upload Policy refuses to allow .jar files with installers built in, if you need support ask for it on CraftPy's Discord Server

Windows server

    1. Install Python 3.13+ from https://www.python.org/downloads/. Choose "Install for all users" and tick Add python.exe to PATH
    1. Open a new terminal and check: python --version
    1. Put the mod file into the server's mods/ folder
    1. Start the server once. If the log says Python was not found, open config/craftpy-common.toml and set the path:
   pythonPath = "C:/Python313/python.exe"

(Use forward slashes.)

    1. Restart the server

Linux server

    1. Check your version: python3 --version. If it is 3.13 or newer, skip to step 3
    1. If it is older, install Python 3.13 without root:
   curl -LsSf https://astral.sh/uv/install.sh | sh
   uv python install 3.13
   uv python find 3.13

Copy the path that the last command prints

    1. Put the mod file into the server's mods/ folder and start the server
    1. Find your exact Python path with which python3.13
  • 4.1. If the log says Python was not found, open config/craftpy-common.toml and set the path: pythonPath = "/path/you/copied/bin/python3.13"
    1. Restart the server

CraftPy looks for Python in this order: pythonPath in config/craftpy-common.toml, then python / python3 on PATH.

Code Example

ruby = Item("ruby", texture="ruby.png", glow=True) 
goblin = Mob("goblin", model="goblin.geo.json", hostile=True, drops=ruby) 
rage = Effect("rage", attributes=Attributes("attack\_damage", 4))
@on.block_break(block="diamond_ore") 
def surprise(event): 
    world.spawn(goblin, event.pos) 
    event.player.effect(rage, seconds=20)

Break a diamond, a goblin pops out :D

What you can make

  • 🧱 Blocks, items, tools, armor, food. Recipes and loot too, all live while you play.
  • 👾 Mobs. Pig, spider, villager… or your own GeckoLib models with animations. Spawn eggs and natural spawning included.
  • 🧪 Potion effects. Your own icon, colors and stat boosts, plus code that runs every second.
  • 🏰 Structures. Build it with structure blocks, import it, and let it spawn in the world like villages (jigsaw support, yes).
  • 🪟 Windows & HUDs. Buttons, sliders, lists, a drag-and-drop designer.
  • 🔌 Works with your modpack. Create, Mekanism, Curios, JEI and more: use their items, recipes, slots and stats.

Built in IDE 💻

A full code editor inside the game, styled like IntelliJ. Autocomplete that knows every mod you have installed, errors while you type, a pixel editor, a sound editor, UI builder; a 3D preview of items, blocks, mobs, models and recipes (custom one supported); a Python console and an event tracker, and some ready-made snippets to get you started.

Sharing Your Work

Pack your project into a module and send it to a friend. They drop it in a folder and they're playing it. Every world keeps its own list of active modules, so nothing sneaks into a new save.

How to Get Started

  1. Install CraftPy + Modern UI

  2. Craft the CraftPy Computer and right-click it.

  3. Open Welcome, press Run. That's it, you're a modder now!

Minecraft 1.21.1 · NeoForge · Servers don't need Modern UI.

DISCLAIMER

The mod ships with built in security features to make it harder for people to break out of the game and possibly mess with your pc or access online features. I suggest using modules from trusted sources or checking them manually via the in game Decompiler or provided tools at: CraftPy Tools

I WILL NOT BE HELD RESPONSIBLE FOR ANY DAMAGED CAUSED BY MODULES MADE FROM 3RD PARTIES!

!Support for Linux and MacOS is not guaranteed!

Discord Server: https://discord.gg/jC4ZU4PjYU

Project description from CurseForge.

Pick your setup

CraftPy by Minecraft version and loader

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

1 available setups

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

Recent files

CraftPy versions and loaders

1 of 1 releases match

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