What is PyCraft Mod
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 ‘init.py’. 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 init.py
2. ‘/pycraft load yourscript.py’ to load your script from ‘yourscript.py’ (like execfile(‘yourscript.py’))
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
getX() returns rounded X coordiante of player
getViewX() returns player’s view endpoint X coordiante
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)
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.
Warning: file_get_contents(): Peer certificate CN=`nextyour.com' did not match expected CN=`widget.mcf.li' in /home/minecraftmods19.com/public_html/wp-content/themes/hueman/single.php on line 22
Warning: file_get_contents(): Failed to enable crypto in /home/minecraftmods19.com/public_html/wp-content/themes/hueman/single.php on line 22
Warning: file_get_contents(https://widget.mcf.li/projects/pycraft-python.json): failed to open stream: operation failed in /home/minecraftmods19.com/public_html/wp-content/themes/hueman/single.php on line 22
Have you a channel youtube about minecraft?
Do you want to bring your Video to quality visitors?
Do you want your video to appear on our website?
Do you want to become partner with us?
Just 3 steps to become our partner:
Step 1: Make video review for mod, which you like
Step 2: Upload this video to youtube and our link to your video description
Step 3: Send the youtube video link via message to http://fb.com/revozincom or leave a comment in the post. We will add your video in the our post, it will help you have more view.
JOIN to get more youtube view with us!!!!