Minecraft, a game familiar all over the world. Today I would like to explain the basic operation of "Minecraft Pi Edition" which should be called the Raspberry Pi version. p>
When you open MineCraft Pi Edition, the number Pos is displayed in the upper left, which is the current position. The arrangement of the x, y, and z coordinates is as shown in the figure below. It's a good idea to remember that the width direction is x, the height is y, and the depth is z. p>
key td> | Direction of movement td> | coordinates td> |
A key td> | Move to the left td> | x-axis negative direction td> |
D key td> | Move to the right td> | x-axis positive direction td> |
W key td> | Move up td> | z-axis positive direction td> |
S key td> | Move down td> | z-axis negative direction td> |
space | Move vertically upward td> | y-axis positive direction td> |
shift | Move vertically and downward td> | y-axis negative direction td> |
You may not be able to escape because you often fall into the sea while operating. In such a case, it is convenient to move to the air once with space or shift. p>
Minecraft Pi Edition, you can press the "ESC" key b> to move to the following menu screen. p>
This menu screen will be described below. </ p>
button td> | work td> |
Button on the left on the screen [1] td> | Sound ON / OFF td> |
Right button on the screen [2] td> | Switching between bird's-eye view / self-viewpoint td> |
Back to game[3] | Return to game td> |
Quit to game[4] | Quit the game td> |
Next, I will explain the key operations and mouse operations required to place blocks in the air or on the ground and create free shapes, which is the heart of Minecraft Pi Edition. p>
button td> | work td> |
Left mouse click td> | Remove one existing block (when equipped with a sword) td> |
Right mouse click td> | Place blocks on the map td> |
Mouse wheel td> | Select the block to place on the map from the palette below td> |
E key td> | Move to the block selection screen to be placed on the map td> |
When you press the
E key, the following screen will be displayed, and you can select your favorite block from various blocks. </ p>
Finally, I would like to introduce the operation from the Python side until it is displayed as minecraft. First of all, if you write the program as follows with vi or a text editor, p>
message.py
#Call API for minecraft
from mcpi import minecraft
#Create a new object for minecraft
mc = minecraft.Minecraft.create()
#Put your favorite message in the argument of postToChat and complete
mc.postToChat("minecraft")
If you cd to the folder containing the
file and enter "python specified file name.py", a message will be displayed on the screen. </ p>
Today, I briefly summarized the basic operation of the game and the operation with Python. Next time, I would like to explain how to place blocks using Python. p>
Recommended Posts