tag:blogger.com,1999:blog-9007601562606157016.post8236469705529186937..comments2023-05-11T16:21:37.725+01:00Comments on <Stuff about="code" />: Minecraft: Pi Edition - API TutorialMartin O'Hanlonhttp://www.blogger.com/profile/03047799173301971515noreply@blogger.comBlogger80125tag:blogger.com,1999:blog-9007601562606157016.post-44966491040829422492017-11-01T12:45:12.759+00:002017-11-01T12:45:12.759+00:00Are you using Minecraft: Pi edition or the Raspber...Are you using Minecraft: Pi edition or the RaspberryJuice and full fat minecraft?<br /><br />If your using the Pi edition, I dont think there are any iron doors.Martin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-68705575631617142392017-10-31T16:41:28.226+00:002017-10-31T16:41:28.226+00:00hi martin i have a problem i want to change the w...hi martin i have a problem i want to change the wooden door into a iron dooor but it won't changeAnonymoushttps://www.blogger.com/profile/11567485208271039881noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-47504179207842994212017-01-23T14:20:50.710+00:002017-01-23T14:20:50.710+00:00In order to use python to control Minecraft, you n...In order to use python to control Minecraft, you need to connect to an API, this API is either Minecraft: Pi Edition or for the full version of Minecraft, a plugin, usually RaspberryJuice, which runs on a server.<br /><br />Without a plugin providing the API you cant connect. Simple as that really!Martin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-61220349969853307562017-01-22T21:56:17.640+00:002017-01-22T21:56:17.640+00:00Hi Martin
I teach children programming. I wanted t...Hi Martin<br />I teach children programming. I wanted to use Python and Minecraft. All are logged into the same server. On computers where there is no server Minecraft does not respond to commands with Python. Does not display any error. What is wrong?Unknownhttps://www.blogger.com/profile/02951194214335300633noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-81625009111992063772017-01-13T16:34:32.948+00:002017-01-13T16:34:32.948+00:00Hmm some text is missing because I used greater an...Hmm some text is missing because I used greater and lesser signs.<br />I typed op username<br />and got Opped username :)Anonymoushttps://www.blogger.com/profile/13706851235485293212noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-62803316171042916252017-01-13T16:31:49.161+00:002017-01-13T16:31:49.161+00:00Hi Martin,I really like your book,
I was just wond...Hi Martin,I really like your book,<br />I was just wondering why it looks impossible to type Command Lines into the chat ?<br />I tried to type into the bukkit server terminal :<br />>op <br />The server answered : >Opped <br />But I still get error messages telling Commands are not recognised.<br />Thank you Martin.Anonymoushttps://www.blogger.com/profile/13706851235485293212noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-48825140100585512882017-01-06T09:35:35.422+00:002017-01-06T09:35:35.422+00:00Hello Martin, from Paris France.
Just got your Adv...Hello Martin, from Paris France.<br />Just got your Adventures in Minecraft, I'm pretty enthusiast about it.<br />A few days before I succeeded setting up Minecraft on a Raspberry Pi 3, thanks to Daniel Lemire's tutorial : http://lemire.me/blog/2016/04/02/setting-up-a-robust-minecraft-server-on-a-raspberry-pi/#comment-264730<br />Playing with my seven year old daughter on this Minecraft server, I was wondering if by any chance there was a way to enable / apply the Python scripts your refering to ?<br />Thanks for any help. All the best.Anonymoushttps://www.blogger.com/profile/13706851235485293212noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-27129168816821471192016-10-05T21:08:31.619+01:002016-10-05T21:08:31.619+01:00I have created a small lisp package that implement...I have created a small lisp package that implements the python api for minecraft, if anyone wants to test it is at https://github.com/cneira/cl-mcpiAnonymoushttps://www.blogger.com/profile/12721208799776722417noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-41388642955804698112016-04-20T22:19:08.090+01:002016-04-20T22:19:08.090+01:00sudo apt-get update
sudo apt-get dist-upgrade
The...sudo apt-get update<br />sudo apt-get dist-upgrade<br /><br />The above commands will do it and won't affect any of your Minecraft Python files stored under /home/pi.<br /><br />HOWEVER, you should always make sure that you have backups of ALL critical files. Copy them onto a USB stick, "scp" them someplace, anything...Anonymoushttps://www.blogger.com/profile/16739833630977421217noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-27318985982811592692016-04-20T22:16:36.690+01:002016-04-20T22:16:36.690+01:00The player.getDirection(), player.getPitch(), etc ...The player.getDirection(), player.getPitch(), etc functions are failing for me (vanilla Raspian install). The "old" player functions (getTilePos(), etc) work. What do I need to do to enable them ?Anonymoushttps://www.blogger.com/profile/16739833630977421217noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-33962611700313454052016-04-20T22:14:46.689+01:002016-04-20T22:14:46.689+01:00Are you doing mc.player... ?
(mc is a vriable hold...Are you doing mc.player... ?<br />(mc is a vriable holding the Minecraft client reference).Anonymoushttps://www.blogger.com/profile/16739833630977421217noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-57827068390909284932016-03-27T13:06:51.932+01:002016-03-27T13:06:51.932+01:00Hi Martin. New to this, and I have an issue. Whe...Hi Martin. New to this, and I have an issue. When I run the module, I get NameError: name 'player' is not defined. Please tell me what stupid mistake I am making!Jameshttps://www.blogger.com/profile/11176742240764457242noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-70484499150214405612016-03-14T11:43:58.301+00:002016-03-14T11:43:58.301+00:00Use Python 2 not Python 3Use Python 2 not Python 3Martin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-73280263936055944652015-11-12T04:05:58.432+00:002015-11-12T04:05:58.432+00:00OK. I saw that there is a version of raspbian that...OK. I saw that there is a version of raspbian that is newer than Wheezy. Is there a way to update my version of raspbian without loosing all my files?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-7336190032560338962015-11-11T11:39:04.431+00:002015-11-11T11:39:04.431+00:00Sorry Im not familiar with the Koding app.Sorry Im not familiar with the Koding app.Martin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-59768206490351367912015-11-11T11:38:37.348+00:002015-11-11T11:38:37.348+00:00Yes.Yes.Martin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-63245159782359840322015-11-11T11:38:22.109+00:002015-11-11T11:38:22.109+00:00you can download it from pi.minecraft.net using an...you can download it from pi.minecraft.net using any browser, I doubt it would run though.Martin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-6075570195165700092015-11-10T16:20:00.124+00:002015-11-10T16:20:00.124+00:00Do you know anything about the Koding app on googl...Do you know anything about the Koding app on google chrome? If so, is it possible to, throught the terminal on the app, download the files and minecraft and play them inside the app on a chromebook?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-5758277361553527912015-11-10T16:17:08.774+00:002015-11-10T16:17:08.774+00:00Also, I don't have internet on my pi. Do you t...Also, I don't have internet on my pi. Do you think I can download your programs on another computer, and then copy them to my SD card?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-19046048609484777942015-11-10T16:14:59.506+00:002015-11-10T16:14:59.506+00:00Do you think I can download pi minecraft on a chro...Do you think I can download pi minecraft on a chromebook?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-40147439100836112182015-10-30T08:48:48.574+00:002015-10-30T08:48:48.574+00:00Martrin, great job you are doing - I am a teacher ...Martrin, great job you are doing - I am a teacher and Minecraft is a super motivator for teaching Python. I few months or more back I bought some B+ Pis. Downloaded and installed the then latest Raspian image.<br />The new Minecrat tutorials refer to IDLE 3 now but I get errors when running Python 3 scripts for Minecraft. I ran apt-get to download and install updates but this has not fixed the probelm - what do you suggest? If I download the latest image onto my micro SD card will this fix the problem? Many thanks. Hastklass.SJCS Pupilhttps://www.blogger.com/profile/08873505285350707805noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-47220353597345425522015-09-19T03:50:08.538+01:002015-09-19T03:50:08.538+01:00Hi Martin, it is kind of annoying when i want to r...Hi Martin, it is kind of annoying when i want to run obsidz_teleport in minecraft pi cos i have to type it in lxterminal. Do you know any way to make it so that it runs the code automatically when i open one of my worlds. Please help!Anonymoushttps://www.blogger.com/profile/09623892788667876762noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-82412728180493519472015-08-15T20:14:06.487+01:002015-08-15T20:14:06.487+01:00Well that sounds positive. Did you extract the fil...Well that sounds positive. Did you extract the files to the /home/pi directory? <br /><br />There is a video on the wiley.com/go/adventuresinminecraft website which shows you how to setup your raspberry pi and get hello minecraft world working. Perhaps that might help?<br /><br />It would be great if you could create a post in the forum if you need more help, that way others can help and we can share links, pictures, videos, etc.Martin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-76116834010746624112015-08-15T11:00:54.804+01:002015-08-15T11:00:54.804+01:00I have downloaded the starter pack for my Pi and i...I have downloaded the starter pack for my Pi and it came up with an Xarchiver window and it showed the API and just some Licenses.<br /><br />What do I do now? I tried the "Hello Minecraft World" command again but again it said, "ImportError: No module named mcpi.minecraft"!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-2096853791352513742015-08-15T10:10:22.791+01:002015-08-15T10:10:22.791+01:00This comment has been removed by the author.Anonymousnoreply@blogger.com