dmtben
Posts: 5
Joined: Fri Jun 29, 2012 2:49 pm

Minecraft Pi edition

Sat Dec 29, 2012 4:22 pm

Does anyone have any ideas whether the pi edition of minecraft has been released and if so, where can i download it? Also, if it has not been released, does anyone know when it will be?

User avatar
Jim JKla
Posts: 2218
Joined: Sun Jan 29, 2012 11:15 pm
Location: Newcastle upon Tyne UK

Re: Minecraft Pi edition

Sat Dec 29, 2012 5:03 pm

Client or Server?
Noob is not derogatory the noob is just the lower end of the noob--geek spectrum being a noob is just your first step towards being an uber-geek ;)

If you find a solution please post it in the wiki the forum dies too quick

three14
Posts: 7
Joined: Mon Nov 28, 2011 3:36 pm
Location: West Virginia, USA

Re: Minecraft Pi edition

Sat Dec 29, 2012 5:26 pm

Minecraft Pi Edition (0.1.0) was released a while ago but the download was pulled because it's riddled with bugs. Bookmark this page: http://pi.minecraft.net/

Shouldn't be too difficult to find the leak, just Google 'minecraft pi 0.1.0' or something to that effect. The download will be no more than 1.5MB.

6677
Posts: 383
Joined: Wed Mar 14, 2012 9:23 pm

Re: Minecraft Pi edition

Sat Dec 29, 2012 5:32 pm

It has not been released yet but there was a leak recently. The leak is buggy though. It was hosted on a dropbox account and it appears the link has been pulled. I still have it on my desktop PC's hard drive, havent tried it out yet.

I'm pretty sure when its released it will have a mention on the news page.

Kbho
Posts: 18
Joined: Sun Dec 30, 2012 4:23 pm

Re: Minecraft Pi edition

Sun Dec 30, 2012 4:35 pm

It would be cool if this did come out, there would be lots of possibilities, but then you'd get people that made some code to build a giant mansion and crash their Pi.

Kbho
Posts: 18
Joined: Sun Dec 30, 2012 4:23 pm

Re: Minecraft Pi edition

Sun Dec 30, 2012 4:36 pm

Do you still have the files for this? If so have you got a link to the download?

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6074
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Minecraft Pi edition

Sun Dec 30, 2012 4:40 pm

Given that the files are leaked and are not supposed to be out, this is probably not the best place to share them.

three14
Posts: 7
Joined: Mon Nov 28, 2011 3:36 pm
Location: West Virginia, USA

Re: Minecraft Pi edition

Sun Dec 30, 2012 5:24 pm

Daniel Frisk from Mojang already said that he didn't care if people used the leaked alpha:
I don't mind if people use the leaked build, but be aware that it's pre-alpha quality.
https://twitter.com/danfrisk/status/283682787033247744

You can find the leaked alpha here:
http://www.minecraftforum.net/topic/158 ... se-leaked/

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6074
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Minecraft Pi edition

Sun Dec 30, 2012 5:28 pm

Ah great, thanks.

Kbho
Posts: 18
Joined: Sun Dec 30, 2012 4:23 pm

Re: Minecraft Pi edition

Mon Dec 31, 2012 2:21 pm

Thanks, But do you know how to do that code thing to make it build houses and stuff? :mrgreen:

Kbho
Posts: 18
Joined: Sun Dec 30, 2012 4:23 pm

Re: Minecraft Pi edition

Mon Dec 31, 2012 2:25 pm

Also, by the way, How am i supposed to run this?

6677
Posts: 383
Joined: Wed Mar 14, 2012 9:23 pm

Re: Minecraft Pi edition

Mon Dec 31, 2012 5:46 pm

there is a file which says how to run. They include them things for a reason ;)

Kbho
Posts: 18
Joined: Sun Dec 30, 2012 4:23 pm

Re: Minecraft Pi edition

Tue Jan 01, 2013 11:35 am

The Only reason i posted that is because i got a permission denied error when i tried to run the file, with the instructions included with the file.

6677
Posts: 383
Joined: Wed Mar 14, 2012 9:23 pm

Re: Minecraft Pi edition

Tue Jan 01, 2013 12:10 pm

did you try running the files from USB? you will hit permissions issues if so.

Kbho
Posts: 18
Joined: Sun Dec 30, 2012 4:23 pm

Re: Minecraft Pi edition

Tue Jan 01, 2013 12:15 pm

6677 wrote:did you try running the files from USB? you will hit permissions issues if so.
I haven't tried that, but i haven't got a USB hub, and is there a way to bypass the permissions?

User avatar
malakai
Posts: 1382
Joined: Sat Sep 15, 2012 10:35 am
Contact: Website

Re: Minecraft Pi edition

Tue Jan 01, 2013 12:17 pm

are you running it as pi or did you create a new user account
http://www.raspians.com - always looking for content feel free to ask to have it posted. Or sign up and message me to become a contributor to the site. Raspians is not affiliated with the Raspberry Pi Foundation. (RPi's + You = Raspians)

Kbho
Posts: 18
Joined: Sun Dec 30, 2012 4:23 pm

Re: Minecraft Pi edition

Tue Jan 01, 2013 12:19 pm

malakai wrote:are you running it as pi or did you create a new user account
running it as pi, as i don't know how to make a new user.

Diln21
Posts: 5
Joined: Tue Jan 01, 2013 5:17 pm

Re: Minecraft Pi edition

Tue Jan 01, 2013 5:21 pm

Kbho wrote:The Only reason i posted that is because i got a permission denied error when i tried to run the file, with the instructions included with the file.
I ran into the same issue. I used this tutorial to learn to change permissions:
http://catcode.com/teachmod/index.html

I opened LXTerminal and navigated to the mcpi folder and ran this command:
chmod u=rwx ./minecraft-pi

u (owner of file) = rwx (new pemissions, read write and execute) ./minecraft-pi (file to be changed)

Good luck I hope it works for you to

Kbho
Posts: 18
Joined: Sun Dec 30, 2012 4:23 pm

Re: Minecraft Pi edition

Wed Jan 02, 2013 2:52 pm

Diln21 wrote:
Kbho wrote:The Only reason i posted that is because i got a permission denied error when i tried to run the file, with the instructions included with the file.
I ran into the same issue. I used this tutorial to learn to change permissions:
http://catcode.com/teachmod/index.html

I opened LXTerminal and navigated to the mcpi folder and ran this command:
chmod u=rwx ./minecraft-pi

u (owner of file) = rwx (new pemissions, read write and execute) ./minecraft-pi (file to be changed)

Good luck I hope it works for you to
Thanks, Is this supposed to be a permenant fix, or will i have to keep doing this?

User avatar
poglad
Posts: 100
Joined: Tue Jul 31, 2012 8:47 am
Location: Aberdeen, Scotland
Contact: Website

Re: Minecraft Pi edition

Wed Jan 02, 2013 3:46 pm

It depends how you unzipped it all, you perhaps ended up without the correct permissions on the file. Once you've added them you should be fine. When I put it onto my Pi, the execute permission was already there so all I had to do was run it with:

Code: Select all

sudo ./minecraft-pi
Having said that, it has a lot of visual glitches - mainly related to the odd integration with X. It frequently gets out of sync with itself, and the Minecraft overlay starts following the wrong window or no window at all. It's pre-alpha leaked code, so fair enough. Also, on my system, it always seems to freeze after about 10 minutes. Not the whole Pi, just the X session. I can ssh in and kill it.

As for the demos where they write code in an immediate Python session to manipulate the world, it says here http://www.minecraftforum.net/topic/158 ... emo-video/ that you simply connect a socket to port 4711 and (on page 2) that you send commands of the form "set-block(x,y,z,type)\n" through the socket.

Therefore, the code below should work, but I can tell you that it doesn't seem to work for me. Without Minecraft running, it refuses to connect - good - and with Minecraft running, it successfully connects. However, invoking the setBlock method appears to have no effect at all. Either the blocks are going somewhere that I can't see, or the command on this leaked version is not "set-block". The trouble is, we simply don't have proper API documentation yet. I did a strings on the executable and looked for variations of set-block in the output, but didn't see anything obvious.

You need to open a separate Python window (in fact, I opened it on my laptop on the same wireless LAN) and do something like this:

Code: Select all

from mcrpi import McRpi

mc = McRpi()
mc.connect()
mc.setBlock(0, 0, 0, 1)
Anyway, it might give you something to investigate with, so I'll give you the code I wrote.

Code: Select all

import socket
import sys

class McRpi:
    def connect(self):
        try:
            self.mcsock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        except socket.error:
            print "Socket creation failed."
            sys.exit()

        host = 'localhost'
        port = 4711

        try:
            remote_ip = socket.gethostbyname(host)
        except socket.gaierror:
            print "Hostname resolution failed."
            sys.exit()

        self.mcsock.connect((remote_ip , port))
        print "Connected to Minecraft server at " + remote_ip + ":" + port

    def setBlock(self, x, y, z, type):
        message = "set-block(" + x + "," + y + "," + z + ")\n"
        try:
            self.mcsock.sendall(message)
        except socket.error:
            print 'Failed to send setBlock message.'
            sys.exit()

# end of source program

scootn405
Posts: 2
Joined: Wed Jan 02, 2013 4:44 pm

Re: Minecraft Pi edition

Wed Jan 02, 2013 4:51 pm

I received some errors when I tried to run minecratft-pi. The first thing is that I had to put:
./minecraft-pi

Kind of new to linux command line and didn't realize I needed the ./ before the file name.

I also had an error and found that it was related to memory because I set the Video memory real low for MAME emulator. Set the memory back to at least 64 video memory and this corrected the problem.

Kbho
Posts: 18
Joined: Sun Dec 30, 2012 4:23 pm

Re: Minecraft Pi edition

Wed Jan 02, 2013 4:57 pm

The ChMod command worked for me, but i can't seem to get the console to open
1) is it because i need the pi connected to the network?
2) and will the console open as a new window (How does it open?)

User avatar
LetHopeItsSnowing
Posts: 357
Joined: Sat May 26, 2012 6:40 am
Location: UK
Contact: Website

Re: Minecraft Pi edition

Thu Jan 03, 2013 8:11 pm

I managed to get it downloaded and installed with very little pain, I put some instructions on my blog, they might be of help

http://www.stuffaboutcode.com/2013/01/r ... eaked.html

LHIS
"am I getting slower, or is stuff more complicated; either way I now have to write it down - stuffaboutcode.com"

User avatar
LetHopeItsSnowing
Posts: 357
Joined: Sat May 26, 2012 6:40 am
Location: UK
Contact: Website

Re: Minecraft Pi edition

Sun Jan 13, 2013 9:00 pm

I've been playing around with the Minecraft API, its surprisingly easy and mojang include some pretty good class libraries with the install to simplify it and get started.

Ive created a video and stuck it on youtube http://youtu.be/icrbqilD4Ng


Ive also put some instructions and code on my blog http://www.stuffaboutcode.com/2013/01/r ... asics.html

Let me know how you get on.

Martin
"am I getting slower, or is stuff more complicated; either way I now have to write it down - stuffaboutcode.com"

User avatar
Mindrover
Posts: 3
Joined: Fri Sep 21, 2012 7:03 am

Re: Minecraft Pi edition

Tue Jan 15, 2013 9:11 am

Just finished writing a C# version of the API so I can work with mono and get some reasonable speed for the builds "Public Class makeVillage()" anyone LOL

Return to “Gaming”