PyCraft Mod

Please log in or register to like posts.

What is PyCraft Mod

PyCraft Mod for Minecraft 1.12, 1.11.2, 1.11, 1.10.2, 1.9.4, 1.8.9, 1.7.10 –

Want to write Python code in Minecraft? Good news! Now you can with PyCraft Mod. The mod allows you to execute python code in game console. Just put files from archive to ‘mods’ folder.

There is initial script in folder ‘mods/pycraft/’ which named ‘’. In initial file you can import your modules or write code to execute your files (execfile).
The mod have three console commands:
1. ‘/pycraft reinit’ to reload initial file
2. ‘/pycraft load’ to load your script from ‘’ (like execfile(‘’))
3. “/ print(‘HelloWorld’)” (slash with one space) where “print(‘HelloWorld’)” is your code

When player receives chat notification, the mod calls ‘onChatReceive(message)’ with message from chat.
onWorldLoad() no comments
When you write ‘/ print 1+3’ where ‘print 1+3’ is your code, mod calls ‘parseConsole’ with one argument(your ‘print 1+3’), and there you can change processing behavior if you redefine ‘parseConsole’

You can call methods from mod with ‘pyt’.
Methods in ‘jh’:
sendChat(“message”) to send any text to chat. Example “/ pyt.sendChat(“/setblock 1 1 1 stonebrick”)”
getXreal() returns real X coordiante of player
getYreal() -//-
getZreal() -//-
getX() returns rounded X coordiante of player
getY() -//-
getZ() -//-

getViewX() returns player’s view endpoint X coordiante
getViewY() -//-
getViewZ() -//-

watchTo(x, z) sets player’s view to point
watchTo(x, y, z) sets player’s view to point

getPitch() returns player’s view pitch
getYaw() returns player’s view yaw

pressKey(int code, boolean pressed) sets key state. Example: jump key “/ pyt.pressKey(57,True)”

getBlockName(double x, double y, double z)
getBlockId(double x, double y, double z)
getBlockIdFromName(String name)

PyCraft Mod Review:


PyCraft Mod installing instruction:

  • Download and install Minecraft Forge
  • Download the mod.
  • Head to %appdata%.
  • Head to .minecraft/mods folder.
  • Drag and put the downloaded jar (zip) file into it.
  • If it does not exist, you can create one.
  • Finish

Credit: kapiteon

The post PyCraft Mod appeared first on Minecraft mods 1.9 – Mods for Minecraft.

Nobody liked ?

Bir Cevap Yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir