filmov
tv
Hack Minecraft with Python - the Basics
Показать описание
I prefer using the terminal but you can just open up IDLE and create a connection in the Shell, or just open the code while MCPI is running and execute it (providing the script has the connection and imports)
The terminal is better because:
It uses so much less resources - without the terminal you would need to open MCPI, filesystem, IDLE and IDLE shell - All at the same time
With the terminal it's JUST MCPI and the terminal - and you do everything from there
It makes a big difference when executing epic scripts - sometimes MCPI will just crash up or show a memory fail error, or take like 10 minutes to make the change to the game ... remember, the Pi is only 1GB ram and not designed for graphical magic
I show 2 main ways to do hack minecraft with Python and cover the simplest stuff to get you started...
1. Execute a Pre-written script , that contains the imports, connection command, and the code - in this case just the message I am displaying
2. Do exactly the same thing (show a message) but by manually typing the code as you go
I found quite a lot of epic codes on git-hub, a good repo was from mcpipy - if you build up an arsenal of scripts, you can dump huge scripts into Minecraft using one line commands.
It also helps to be able to quickly type out a command to draw a big structure - once you do the imports, and create a connection, you don't have to keep entering those commands/codes, as long as the connection remains
I have made a text file of the commands that work for offline mode playing, the basics, like what I show here, but also how to do stuff with blocks quickly using code...
Using Python gives you access to more blocks aswell - you can easily find a list of Block ID's online
I've not uploaded it it was only for personal reference...but if you want it leave a comment and Ill upload it or something
ALSO - if you want to try out this stuff for yourself and want some help, let me know, Ill write up a quick document with some useful tips and commands, or talk you through the basics
A great way to get better at Python, while goofing around!
The terminal is better because:
It uses so much less resources - without the terminal you would need to open MCPI, filesystem, IDLE and IDLE shell - All at the same time
With the terminal it's JUST MCPI and the terminal - and you do everything from there
It makes a big difference when executing epic scripts - sometimes MCPI will just crash up or show a memory fail error, or take like 10 minutes to make the change to the game ... remember, the Pi is only 1GB ram and not designed for graphical magic
I show 2 main ways to do hack minecraft with Python and cover the simplest stuff to get you started...
1. Execute a Pre-written script , that contains the imports, connection command, and the code - in this case just the message I am displaying
2. Do exactly the same thing (show a message) but by manually typing the code as you go
I found quite a lot of epic codes on git-hub, a good repo was from mcpipy - if you build up an arsenal of scripts, you can dump huge scripts into Minecraft using one line commands.
It also helps to be able to quickly type out a command to draw a big structure - once you do the imports, and create a connection, you don't have to keep entering those commands/codes, as long as the connection remains
I have made a text file of the commands that work for offline mode playing, the basics, like what I show here, but also how to do stuff with blocks quickly using code...
Using Python gives you access to more blocks aswell - you can easily find a list of Block ID's online
I've not uploaded it it was only for personal reference...but if you want it leave a comment and Ill upload it or something
ALSO - if you want to try out this stuff for yourself and want some help, let me know, Ill write up a quick document with some useful tips and commands, or talk you through the basics
A great way to get better at Python, while goofing around!