Saturday, February 4, 2012

Installing Minecraft on XBMC Live

Note: this guide is for the older XBMCLive Dharma release, for an updated guide for XBMCbuntu Eden go here.

First off you need to install java on XBMC Live, this is pretty easy just follow my guide here.

Next we need to download and install Minecraft.  To do this you need terminal access, you can follow my guide "3 ways to access the terminal on XBMC Live"

wget https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft.jar

mkdir scripts

cd scripts

nano minecraft.sh

now paste this in(it's ctrl+shift+v to paste in the terminal):

#!/bin/bash
fluxbox &
java -Xmx1024M -Xms512M -cp ~/minecraft.jar net.minecraft.LauncherFrame
killall -9 fluxbox

now press Ctrl + X and then Y to save and exit

chmod +x minecraft.sh

Now you need to add a launcher shortcut to launch Minecraft from XBMC.  To do this just follow my instructions "Add a Shortcut to Launcher Add-on in XBMC" and select Home->scripts->minecraft.sh

Unfortunately there is currently no way to launch Minecraft in fullscreen so once it loads just hit "F11" to run in fullscreen mode.

If you want to install more games on XBMC Live check out my guide here