Download PyCraft (Python) — Minecraft Mods — MetaMods
PyCraft (Python)

PyCraft (Python)

Active

Downloads

0

Last update

7 years ago
Client
Utils

PyCraft (Python)

A mod for Forge 1.12.2 that implements Python (Jython) 2.7 directly in Minecraft!

Python in Minecraft

How to Use

Using the mod is very simple:

  • Open the game console
  • Enter the command "/ your_code", where 'your_code' is arbitrary Python code
  • Press Enter to execute

Examples: "/ print('Hello, world!')" "/ import sys"

Working with Scripts

PyCraft automatically creates the "mods/scripts" folder and the "mods/scripts/pycraft.py" file with basic API. Important to remember: the "pycraft.py" file is rewritten every time you restart the game or execute the "/pycraft reset" command.

To store your permanent scripts, create an "init.py" file - it will be automatically loaded and executed at startup through the main "pycraft.py" file.

Key Codes Reference

For key codes information use: http://minecraft.gamepedia.com/index.php?title=Key_Codes/Keyboard1&action=render

Binding Commands to Keys

To bind Python commands to hotkeys, it's recommended to use the KeyBinder mod.

Project members
kapiteon

kapiteon

Created: 15 Jan 2018

ID: 79278