Description
This tuto will explain you how to spawn mobs on Minecraft Pi version 0.1.1 alias MCPI, the Minecraft version of the Raspberry Pi, the embedded version in Raspbian.
You will need to change entities.dat file for that.
My prefered Mob is the skeleton (who will shoot you with his bow) but you can be pursued by zombies or spiders if you prefer !
Skeleton on Minecraft Pi v0.1.1
For hurry people… Quick install !
To spawn about 10 angry skeletons in your Minecraft Pi map :
- Download the following file (for Skeletons)
- Quit Minecraft Pi if you are running it.
- Rename entities.dat to entities.bak.dat
- Copy the downloaded file into your Minecraft Pi world
- Start the game as usual.
For people who wants more information, then continue to read.
What is Minecraft mobs?
Mobs are the monsters on the map. They can be passive as cows or pigs or they can be hostile like zombies, skeletons, etc…
Limitation of Minecraft Pi
By default, on the version 0.1.1 of Minecraft Pi, there is no python programming command to spawn mobs into the game. You might found some additional software to proceed.
Minecraft Pi on Raspbian
But there is skin mob files info the program…
Yes ! Actually, if you have look into the installed files, you might notice that there is few skins already ready to go into this folder :
/opt/minecraft-pi/data/images/mob/
Info about Minecraft Pi agressive mobs
- Mobs cannot shoot you with the original version of MCPI 0.1.1
- You can kill mobs with lava, TNT or by making shooting themselves with skeletons arrows and they will drops items … that you cannot use.
- As your inventory is locked on Minecraft Pi 0.1.1, by default you cannot get items into your inventory, use it nor craft anything.
Technical Explanation
The file Entities.dat file contains all information about Mobs.
The file format is an old Minecraft NBT format. You can edit the file with Hexadecimal editor and if you know where to go, you gan do pretty much what you want.
The easiest way is to take an existing entities.dat file from Minecraft PE version.
Be careful: as hexa format on Raspberri Pi is manage by the processor ARM and it use Little Endian as standard. To make it simple, the hexa characters will be in a different order (you don’t need to worry as I made a table for you !)
Skills you need to know
- You need an Hexadecimal program editor on your Raspi or on your PC.
For Rasbian, I recommend you to use … .
For PC, i really like …
- Capable to copy and rename files.
Table of mobs in Minecraft Pi
You can spawn following mobs.
Mobs |
Type |
Interaction |
Hex Code |
Little Endian |
Chicken |
Passive |
1) move / run
2) can die |
A |
0A 00 |
Cow |
Passive |
1) move / run
2) can die |
B |
0B 00 |
pig |
Passive |
1) move / run
2) can die |
C |
0C 00 |
sheep |
Passive |
1) move / run
2) can die |
D |
0D 00 |
zombies |
Offensive |
1) will follow you
2) can die |
20 |
20 00 |
skeleton |
Offensive |
1) will shoot you with arrows
2) they can die by there own arrows |
22 |
22 00 |
spiders |
Offensive |
1) will follow you
2) can die |
23 |
23 00 |
pigzombies |
Offensive |
1) TBC
2) can die |
24 |
24 00 |
Creeper |
Offensive |
1) TBC
2) can die |
21 |
21 00 |
HOW TO CHANGE ENTITIES.DAT FILE TO SPAWN MOBS
First we need to make back-up
- Open Xterm windows
- go to the right place by typing $cd /home/pi/.Minecraft/com.manjo/worlds/ and the folder of the world you created (example: Skeletons) .
- Type cp entities.dat entities.bak.dat
- Download a file from any Minecraft PE world. I put a file here to make your life easier.
- Open your Hexadecimal editor program.
- Open the entities.dat file you downloaded.
- Search the “ID” Text value and change Hexa Little Endian value according the table in this post (Table of Mobs in Minecraft Pi).
The Hexa Value is just after the ID tag. This file contains Skeleton with id 0A 00
- Search all entries and change as you wish.
- Save your file.
- Start Minecraft Pi.
What’s next
Don’t waste your time trying other hexa value to find out some boss like dragons, etc… They are not here into the code.
Try to improve your skills in Decimal/binary/Hexadecimal calculation, have a look on NBT format deeper and try to play around as Mobs have other parameters that you can tune.
With the same idea, you can change your … armor you’re wearing but I will make a separate tuto for that with kind of same format !
Some useful links
Cheers
Skeleton