Minecraft – Blog. by Next Thing https://ntcblogbackup.wpengine.com News & Notes. Process & Projects. No BS. Srsly. Thu, 09 Nov 2017 03:16:07 +0000 en-US hourly 1 https://wordpress.org/?v=4.9.5 Play Minecraft on Your C.H.I.P. & PocketC.H.I.P.! https://ntcblogbackup.wpengine.com/play-minecraft-on-your-c-h-i-p-pocketc-h-i-p/ https://ntcblogbackup.wpengine.com/play-minecraft-on-your-c-h-i-p-pocketc-h-i-p/#comments Tue, 13 Dec 2016 13:00:55 +0000 http://blog.nextthing.co/?p=1337 Lara & Kurtz play co-op Minecraft on PocketC.H.I.P.!

Lara & Kurtz play co-op Minecraft on PocketC.H.I.P.!

Grab your pickaxe and PocketC.H.I.P. it’s time to farm. Here’s how to play Minecraft on C.H.I.P. and PocketC.H.I.P.!

nice

We know you’ve wanted to play Minecraft on PocketC.H.I.P. since we first launch our Kickstarter. Well, now you can. Play by yourself or grab a friend and play cooperatively. Just make sure to have tons of fun.


New Update: See Step 6 to learn how to setup the Minecraft Python API and use python to program your Minecraft world!


Big thanks to xobs for writing a wrapper for the OpenGL ES drivers for Minecraft that makes this possible. Happy holidays from all of us at NTC! \(•◡•)/

1. Install Minecraft

finger-on-screen

Note: Make sure you have the latest version of the PocketC.H.I.P. software from the flasher.

Tap the Terminal application on your PocketC.H.I.P. home screen and type the following command. Once you’ve input all the characters, press return.
wget https://github.com/NextThingCo/chipcraft/archive/master.zip

Unzip the file.
unzip master.zip

Change directories to the one with the Minecraft source code.
cd chipcraft-master

Run the install script, which downloads all the required packages for the game and applies a patch to scale the resolution to fit PocketC.H.I.P.’s screen.
./build.sh


2. Play Minecraft

screenshot-121216-215701

To start Minecraft, just type the following command in the terminal and press enter.
/home/chip/chipcraft-master/mcpi/start.sh

It’s that simple!


3. Play with Friends

PocketCHIP Team_For Blog

If you have multiple C.H.I.P.s and PocketC.H.I.P.s, you’re in luck. Multiplayer works out of the box!

All you need is a local network, multiple devices, and some friends to join your game. One person needs to create the game with the Start Game button, all the other players should press the Join Game button.


4. Hack Your Pocket Home

screenshot-121216-215646

Another way to start Minecraft is by changing the Pocket Home’s Help icon to launch the game. First, grab a custom Minecraft image, then change a config file.
wget -O minecraft.png http://bit.ly/2hmzMs9

Copy the Minecraft icon to the directory where Pocket Home looks for application icons.
sudo cp minecraft.png /usr/share/pocket-home/appIcons/

Modify the Pocket Home configuration file to display the Minecraft icon and launch the game.
sudo nano /usr/share/pocket-home/config.json

Look for the lines that describe the Help icon. You’ll swap these out and replace in the Minecraft info.

{
          "name": "Get Help",
          "icon": "appIcons/help.png",
          "shell": "surf /usr/share/pocketchip-localdoc/index.html"
},

Now that you’ve found those lines, change them to reflect the name, icon, and path you where Minecraft is located.

{
          "name": "Minecraft",
          "icon": "appIcons/minecraft.png",
          "shell": "/home/chip/chipcraft-master/mcpi/start.sh"
},

Save the file and reboot PocketC.H.I.P. for the new Minecraft icon to appear on your PocketC.H.I.P.!


5. Take it to the next level

Playing a custom map on PocketC.H.I.P.

Playing a custom map on PocketC.H.I.P.

Tired of the maps that Minecraft generates? Load a custom Minecraft Pocket Edition map instead.

Note: Only maps designed for Minecraft Pocket Edition will work with this trick.

Make sure you’ve already generated a world before you try this hack. Then download a custom map that you like and save it to the following directory.
/home/chip/.minecraft/games/com.mojang/minecraftWorlds directory.


6. Program Minecraft in Python

Using the Minecraft Python API you can quickly create buildings and terrain.

From the Terminal move to your home directory.
cd ~

Create a new directory called minecraft-api.
mkdir minecraft-api

Copy the Python API from your version of Minecraft to the new directory.
cp -r ~/chipcraft-master/mcpi/api/python/mcpi ~/minecraft-api

Change into the new directory and start writing your code.
cd ~/minecraft-api

Note: Since Minecraft runs in fullscreen on PocketC.H.I.P., it’s a good idea to connect over SSH to write and run your Python code.

With Minecraft running, start your custom code by typing the following command. Replace nameofprogram with the filename of your python code.
python nameofprogram

For more information on using the Python bindings, see this post.


chipLogo64x64

Now that you can play Minecraft on PocketC.H.I.P., where do you plan to play? Let us know in the comments below.

Don’t forget to share your latest projects in the forum and tweet us your PocketC.H.I.P. Minecraft photos, we can’t wait to see them!

]]>
https://ntcblogbackup.wpengine.com/play-minecraft-on-your-c-h-i-p-pocketc-h-i-p/feed/ 101