Download
cd ~
wget https://s3.amazonaws.com/assets.minecraft.net/pi/minecraft-pi-0.1.1.tar.gz
wget https://s3.amazonaws.com/assets.minecraft.net/pi/minecraft-pi-0.1.1.tar.gz
Extract
tar -zxvf minecraft-pi-0.1.1.tar.gz
Execute
cd mcpi
./minecraft-pi
./minecraft-pi
Note - minecraft has to be run directly on the Pi, it wont work from ssh or via a desktop viewer e.g. TightVNC.
API
By far the best thing about the Minecraft: Pi edition (other than it being free) is the api which allows you to interact with the world in real time. Ive created a few posts / tutorials / interesting things about the Minecraft API:
- Minecraft - API - The basics - an basic introduction into the Minecraft API, its functions and how to use it.
- Minecraft - API - Tutorial - an in-depth look at the API, the concepts and how to use it.
- Minecraft Projects - projects I have built using the API, such as:
- Minecraft - Hide and Seek - a really simple game of hide and seek for Minecraft.
- Minecraft - Snake - the class game Snake built in Minecraft
- Minecraft - Auto Bridge - an absolutely brilliant utility (even if I say so myself) which automatically creates a bridge in front of you, no more falling off cliffs, no more having to swim across oceans, the auto bridge allows you to walk straight on
- Minecraft - Massive Analogue Clock - big enough so you can walk on the arms
I've really enjoyed all your posts about the Minecraft Pi Edition. I used your code to help me learn the API =D I've now written my own Minesweeper game that runs within Minecraft Pi Edition. You can read about it here: http://daviewales.tk/minecraft/minecraftpiedition.html
ReplyDeleteMost excellent
DeleteWill I delete folder minecraft-pi or just overwrite?
ReplyDeleteminecraft-pi is the name of the minecraft program its not a directory, do you mcpi? Are you getting an error message?
DeleteHave you tried getting the Minecraft-Pi edition to run on a mac?
ReplyDeleteThat's not possible because the binaries are compiled for the ARM chipset, which is incompatible with Intel x86_64 and 32-bit processors such as windows and Mac.
DeleteHi,
ReplyDeleteI am having trouble with getting the minecraft window to go full screen, I don't have the standard max, min, close chrome around the window.
Any suggestions on how I could go full screen via the config file or some other way would be great!
Thanks in advance
Weird sorry I don't have any advice I'm not sure why you don't have the minimise maximise buttons. Has the widow got focus? I.e have you clicked in it?
DeleteI have a similar issue, but I can resize the window if I am very careful with the mouse around the outer window - a resize icon shows
DeleteI'me getting an error whenever I join a game:
ReplyDeleteterminate called after throwing an instance of "std::bad_alloc"
When you join a game, do you mean just starting minecraft, not multiplayer? Although to be honest, I've never seen that error before, are you running raspbian?
DeleteI just get a blank screen when i start minecraft-pi.
ReplyDeleteIs it hdmi or other???
Never mind. Got it to work now but not in full screen-mode ;-(
DeleteCan you help, I try to run the first part of your minecraft tutorial, the part where you say hi in the game, and it always comes up saying that there is no module named minecraft.minecraft. Any ideas on a fix?
ReplyDeleteHave you copied the api into the same directory as your program? It tends to be the first step in my tutorial. Also the api doesn't work with Python 4, so if you are using Idle, make sure you use Idle and not Idle 3
DeleteFirstly thanks for you quick reply.
DeleteI have moved the api, into the file via the file manager (before hand doing it with the terminal) and tired it in idle and still it is not working, showing the same error "ImportError: No module named minecraft.minecraft" Anything else I could try?
The error you are getting is basically saying that your program cant find a file called minecraft.py in a directory called minecraft.
DeleteWhatever directory your program is in, you should copy all the python api files from ~/mcpi/api/python/mcpi into a directory called minecraft in your programs directory, so if your program was in ~/myprogram, you could use
cp -r ~/mcpi/api/python/mcpi ~/myprogram/minecraft
Perhaps go right back to the start and try it again.
Hey I get this error:
ReplyDeletefailed to open vchiq instance
I am using an emulator. vchiq is used to interact with the hardware which the emulator can't do. Any idea on how to fix it anyway?
I dont think you can fix the error, you need to be running minecraft pi edition on a pi using a screen directly.
DeleteI'm new to minecraft. I got as far as: cd /mcpi
ReplyDeleteWhen I execute: ./minecraft-pi, I got the following:
error while loading shared libraries: libSDL-1.2.so.0 can not open shared object file: No such File or Directory
Also, where do I go to setup an API?
Please help
I was at the Mincraft site and I installed some Libraries. Now when I'm in /mcpi and I execute
Delete./minecraft-pi, I get the error: Couldn't initialize SDL
Again, Help
This is a really old post. Minecraft: Pi edition has been installed by default on Raspbian for a long time. What OS are you trying to install too?
DeleteThis comment has been removed by the author.
DeleteI realize this is OLD, but so am I.
DeleteI'm just now checking out Minecraft,
so cut me some slack.
Debian Jessie on Raspberry pi 2
ReplyDeletetrying to start it from the pi at the command line.
Do I need to start it from the GUI?
Yes you need to start the GUI, using 'startx', open a terminal using Menu > Accessories > Terminal and run Minecraft .
DeleteHowever it is already pre installed, so you can also launch it straight from Menu. Menu > Games > Minecraft
Hi! Is it possible to install this version of Minecraft on the Windows PC?
ReplyDeleteNo. Its compiled for ARM and the Raspberry Pi only. If you want to code Minecraft on windows you can use the full version of Minecraft with the Raspberry Juice plugin. https://dev.bukkit.org/bukkit-plugins/raspberryjuice/
DeleteThanks for your answer. Could you explain me the difference between this version of Minecraft and the PC ver?
ReplyDeleteMinecraft: Pi edition is a highly stripped down and simple version of Minecraft. Its simple, but it does have an api, so you can code your own mods.
DeleteSo, Minecraft PC ver. doesn't have the api and I won't create the mods, isn't it?
ReplyDeleteNo, you can however you the RaspberryJuice plugin to do the same thing.
DeleteBy the way, there is one interesting platform for learning and studying of the Minecraft https://www.learntomod.com/
ReplyDeleteDo you find it usefull?
Can it be installed in Debian?
ReplyDelete