Monday, 11 February 2013

Raspberry Pi - Minecraft - Install

Im so excited...  The first release of Minecraft has been made available.


Download

cd ~
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

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:

34 comments:

  1. 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

    ReplyDelete
  2. Will I delete folder minecraft-pi or just overwrite?

    ReplyDelete
    Replies
    1. minecraft-pi is the name of the minecraft program its not a directory, do you mcpi? Are you getting an error message?

      Delete
  3. Have you tried getting the Minecraft-Pi edition to run on a mac?

    ReplyDelete
    Replies
    1. That'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.

      Delete
  4. Hi,

    I 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

    ReplyDelete
    Replies
    1. 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?

      Delete
    2. I 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

      Delete
  5. I'me getting an error whenever I join a game:
    terminate called after throwing an instance of "std::bad_alloc"

    ReplyDelete
    Replies
    1. 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?

      Delete
  6. I just get a blank screen when i start minecraft-pi.

    Is it hdmi or other???

    ReplyDelete
    Replies
    1. Never mind. Got it to work now but not in full screen-mode ;-(

      Delete
  7. Can 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?

    ReplyDelete
    Replies
    1. Have 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

      Delete
    2. Firstly thanks for you quick reply.
      I 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?

      Delete
    3. The error you are getting is basically saying that your program cant find a file called minecraft.py in a directory called minecraft.

      Whatever 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.

      Delete
  8. Hey I get this error:

    failed 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?

    ReplyDelete
    Replies
    1. I dont think you can fix the error, you need to be running minecraft pi edition on a pi using a screen directly.

      Delete
  9. I'm new to minecraft. I got as far as: cd /mcpi
    When 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

    ReplyDelete
    Replies
    1. I was at the Mincraft site and I installed some Libraries. Now when I'm in /mcpi and I execute
      ./minecraft-pi, I get the error: Couldn't initialize SDL

      Again, Help

      Delete
    2. 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?

      Delete
    3. This comment has been removed by the author.

      Delete
    4. I realize this is OLD, but so am I.
      I'm just now checking out Minecraft,
      so cut me some slack.

      Delete
  10. Debian Jessie on Raspberry pi 2
    trying to start it from the pi at the command line.
    Do I need to start it from the GUI?

    ReplyDelete
    Replies
    1. Yes you need to start the GUI, using 'startx', open a terminal using Menu > Accessories > Terminal and run Minecraft .

      However it is already pre installed, so you can also launch it straight from Menu. Menu > Games > Minecraft

      Delete
  11. Hi! Is it possible to install this version of Minecraft on the Windows PC?

    ReplyDelete
    Replies
    1. No. 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/

      Delete
  12. Thanks for your answer. Could you explain me the difference between this version of Minecraft and the PC ver?

    ReplyDelete
    Replies
    1. Minecraft: 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.

      Delete
  13. So, Minecraft PC ver. doesn't have the api and I won't create the mods, isn't it?

    ReplyDelete
    Replies
    1. No, you can however you the RaspberryJuice plugin to do the same thing.

      Delete
  14. By the way, there is one interesting platform for learning and studying of the Minecraft https://www.learntomod.com/
    Do you find it usefull?

    ReplyDelete
  15. Can it be installed in Debian?

    ReplyDelete

Note: only a member of this blog may post a comment.