How to install minecraft on a raspberry pi to play from my miniature board? Step by step guide

One of the most common uses are given is  converted into a video game console your Raspberry Pi, one of the most popular and used in it is M inecraft .

It is a very famous game that is known for its Lego-like platform and construction, and which you can install on your mini PC thanks to its compact size and its power that is enough for these boards.

Therefore, if you want to start enjoying this excellent title on your Raspberry Pi, then here we are going to explain how you can install it easily and quickly.

What are the requirements to install Minecraft on a Raspberry Pi? Necessary materials and services

Before mentioning what are the main requirements that you must have on hand to install Minecraft on your microcomputer, it is important to mention that the version to be installed is an unofficial development, which has been developed by Mojang workers, for which may have some different details from the original version.

In this way, this game development is based mainly on Minecraft: Pocket Edition, which is available for Android and iOS, so you may notice that it is not the same game that you usually install on your computer, in this case you can only make constructions in free mode and not play a standard game, so the game will have its limitations. Despite all this, it continues to become an excellent alternative to enjoy this title on your Raspberry Pi.

That is why before starting this procedure it will be necessary that you meet some requirements that will allow you to install it without complications and in a very simple way:

  • A Raspberry Pi board , preferably it is recommended to use the Pi 3 or Pi 4 model.
  • An HDMI cable, case, power supply 3 A at least one micro SD card to install the s operating ystem Raspbian, preferably either class 10 because it will make things go much faster.
  • So optional and improve performance, you can activate the overclocking, for it is necessary to cool the plate, so it can purchase a pack cooling all in one.
  • If you don’t have the Raspberry Pi connected to the internet, then you will need to download the latest version of Minecraft: Pi Edition. Now if you have it connected to the network, then this will be done during the installation process.

When you have all these requirements at hand, then you just have to start with the installation procedure to enjoy this excellent title on your mini PC.

Learn step by step to install Minecraft on a Raspberry Pi with Raspbian from scratch and without errors

Having everything mentioned above ready, now you will have to start with the Minecraft installation process on the Raspberry Pi, for this it is necessary that you have your starter board configured and that you are on the desktop of the Raspbian operating system, which already it will have to be installed. When you have all this ready, you will only have to follow each of the steps that we are going to indicate below.

The first thing you should do is access the terminal and download Minecraft: Pi Edition:

  • [cpp]wget https://s3.amazonaws.com/assets.minecraft.net/pi/minecraft-pi-0.1.1.tar.gz[/cpp]

When the complete download has been completed, the following will be to unzip it:

  • [cpp]tar -zxvf minecraft-pi-0.1.1.tar.gz[/cpp]

The following will be to execute it:

  • [cpp]cd mcpi./minecraft-pi[/cpp]

After this you will have already installed Minecraft on your Raspberry Pi. However, here you will have to take other steps to complete all this.

Hacking Minecraft: Pi Edition

As it is a version that has been developed mainly for learning, it has access to the API to be able to program your own variations. Therefore, the tests / minecraft-tests / directory will be created here to do a bit of what we want and not lose data.

To do this, enter the following in the terminal:

  • [cpp]mkdir minecraft-pruebas[/cpp]

Now you are going to copy all the content of the Python libraries:

  • [cpp]cp -r mcpi/api/python/mcpi minecraft-pruebas/minecraft[/cpp]

Later you will have to create a new file so as not to break anything:

  • [cpp]nano minecraft-pruebas/minecraft-pruebas.py[/cpp]

After this you will have to import the Minecraft library and then create an object that connects with the game.

The first test can be done by sending something to the chat:

[py] import minecraft.minecraft as minecraft

mc = minecraft.Minecraft.create ()
postToChat ('Hello world!') [/ py]

Here you will save everything you have and from the terminal you will open the file that you created in the previous steps.

Keep in mind that here it is essential to have an open game in the background so that the changes are seen, likewise you will be able to use the Tab key to move from one window to another.

  • [cpp]python minecraft-pruebas/minecraft-pruebas.py[/cpp]

If you look at the game window you can see how the little code is going to take effect.

In order to see the full potential that this has, you can create a hack, the automatic bridge:

#Created by www.stuffaboutcode.com
#Raspberry Pi, Minecraft - Automatic bridge

#import the minecraft.py module from the Minecraft directory
import minecraft.minecraft as minecraft
#we imported the Minecraft blocks module
import minecraft.block as block
#we import time to be able to use the delays
import time

#function to place players
def roundVec3 (vec3):
return minecraft.Vec3 (int (vec3.x), int (vec3.y), int (vec3.z))

if __name__ == & amp; quot; __ main __ & amp; quot ;:

sleep (2)

#Connect with minecraft by creating the minecraft object
# - we need minecraft to be with an open game
mc = minecraft.Minecraft.create ()

#Show a message in the chat window
postToChat (& amp; quot; Hello Minecraft - Automatic bridge active & amp; quot;)
mc.postToChat (& amp; quot; Created by www.stuffaboutcode.com - Adapted by ComoHacer.eu & amp; quot;)

#Get the position of the players
lastPlayerPos = mc.player.getPos ()

while (True):

#Get the position of the players
playerPos = mc.player.getPos ()

#Find the difference between the position of the players and the last position
movementX = lastPlayerPos.x - playerPos.x
movementZ = lastPlayerPos.z - playerPos.z

#If the player moves more than 0.2 in any horizontal direction (x, z)
if ((movementX & amp; lt; -0.2) or (movementX & amp; gt; 0.2) or (movementZ & amp; lt; -0.2) or (movementZ & amp; gt; 0.2)):

#Projects the direction of the players towards the next square
nextPlayerPos = playerPos
# keeps players moving to the next block if found
while ((int (playerPos.x) == int (nextPlayerPos.x)) and (int (playerPos.z) == int (nextPlayerPos.z))):
nextPlayerPos = minecraft.Vec3 (nextPlayerPos.x - movementX, nextPlayerPos.y, nextPlayerPos.z - movementZ)

#If the next block is air, replace it with a diamond one
blockBelowPos = roundVec3 (nextPlayerPos)
#resolve the positions if they are negative
if blockBelowPos.z & amp; lt; 0: blockBelowPos.z = blockBelowPos.z - 1
if blockBelowPos.x & amp; lt; 0: blockBelowPos.x = blockBelowPos.x - 1
y = blockBelowPos.y - 1
if mc.getBlock (blockBelowPos) == block.AIR:
mc.setBlock (blockBelowPos.x, blockBelowPos.y, blockBelowPos.z, block.DIAMOND_BLOCK)

#Save the last position of the players
lastPlayerPos = playerPos

sleep (0.01)
[/ py]

List of the best PC games that I can install on a Raspberry Pi without performance problems

One of the most common uses of this microcomputer by users is to turn it into a video game console, and that is that the Raspberry Pi offers a lot at the gaming level, so it can become a very good tool for it.

Especially today with the arrival of its latest model, the Raspberry Pi 4, which is much more powerful for this type of activity. In accordance with all this, here we are going to show you which are the best PC games that you can start enjoying on your mini PC without performance or compatibility problems .

To do this, follow the list that we will show you below:


Doom is one of the games with source code publicly available for fans to use. This is how this source code has been ported to Linux and ARM devices such as your Raspberry board. This is a classic that you could previously enjoy only on your PC, but now you can start using these microcomputers.

Here you will have the opportunity to enjoy excellent single player games and  Death March . A way to be able to have a good time of entertainment and in a very easy way. It should be mentioned that the compatibility of the game may differ according to the version of Doom you install, several of these versions are available for different Raspberry Pi models.

Joe & Mac: Caveman Ninja

It is a very popular game, which you have probably already played or heard. It consists of an adventure game where two troglodytes have to fight against prehistoric monsters such as dinosaurs and others in order to survive and save their loved ones.

A game with a lot of entertainment and battles for which you must prove that you are the best. Best of all, you can choose different paths at the end of some of the phases, so you can go through different scenarios, all completely different. You will also have the opportunity to have a large number of weapons that will be very useful when facing your enemies.

Sunset riders

A very exciting game that will surely make your days much more entertaining. Everything consists of two cowboys who have to capture or kill all the most wanted men in the Wild West, so you will have to identify very well who your enemies are to avoid making mistakes. They will be able to enjoy places where they will meet friends, ride a horse or advance by a train until they reach the enemy, which you will have to defeat and capture.

In this case it is important to mention that there are no special weapons, but you will have to throw the dynamite that is thrown at you, you can run over the stampedes of cattle in the west, and carry out many other actions that will help you to be victorious. Keep in mind that this is a fairly long game where you are going to have to go through a lot of adventures.

Super Pang

Super Pang is a classic, so the vast majority of people already know it and have had great moments in it. These are balls that are almost always complicated and that you will be able to control with a single button, the shoot. It should be mentioned that Super Pang is considered a very addictive and very simple game.

There are also two game modes, such as the screen that travels the world or the points. Keep in mind that the modality of traveling the world using several maps is one of the most complicated, if you like difficult adventures, then you can lean towards this mode.

Beneath a Steel Sky

Beneath a Steel Sky consists of a futuristic game with which you will be able to enjoy great moments, so it is basically an adventure game that is mainly focused on history. You will be able to enjoy it not only from your PC, but also from your microcomputer easily. A way to be able to enjoy one of the best games in history where you will be able to live totally unique experiences and adventures, where you will have to prove that you are the best of all.

If you have any questions, leave them in the comments, we will answer you as soon as possible, and it will surely be of great help to more members of the community. Thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button