Python script to spawn some mobs in your Minecraft Pi world
- [What you need](### What you need)
- [How to install ](### How to install )
- [How to use the script ](### How to use the script)
- Ignore Whitespace
Read this in other languages: English, French, 日本語.
A Raspberry Pi ✨ with Raspbian installed. Minecraft Pi is installed by default.
We open a Terminal session to do it with command line
1 .In your Raspberry Pi, start a Terminal session.
We go in the folder we chose for the install (ex: desktop)
2 .type the following command
$ git clone https://github.com/Will-777/spawn_mobs_mcpi.git
$ cd ~
You should have a folder in your Raspberry Pi Pi desktop.
Just Launch it with right click "open" and F5 ... I will explain that with the next update.
Be sure that your Minecraft Pi game is turned Off. This process is Offline.
-
Select your world from the menu according its number example : from the menu, press "2" and enter.
-
You have now the Python prompt. Give a name to your file first (e.g. myMCPI) by typing this command. myMCPI can be replaced by any name you want.
>>> myMCPI = mcpi_mobs_mgr()
- Add mobs by adding .addMob to your world, write the type and how many mobs you want.
>>> myMCPI.addMob("Pig", 10)
x, y, z coordinate not implemented yet. Sorry. If you go around POS: 26.1 / 14.5 / -25.6 on your map you will find the Mobs you added.
4.1) check how many mobs will be inside your world.
>>> myMCPI.Mobs_howMany()
>>> myMCPI.Mobs_show_stats()
>>> myMCPI.Mobs_list_display()
4.2) and if you are really curious, look Binary representation of entities.dat file.
>>> myMCPI.NBT_Header
>>> myMCPI.NBT_Body
- Save your change. You are done with the Python script.
>>> myMCPI.saveNewFile()
-
Start Minecraft Pi game from the menu and select the world you changed.
-
Please note that you cannot kill Mobs with weapons. You need to use dynamite. some Mobs like Skeletons will die (because of the sun ?) There is a way to turn your Minecraft Pi world as survival mode. There is a way to patch with Binary Patch your Minecraft Pi and unlock Craft and your own inventory. I didn't find the way to be able to kill Mobs in the game with "Steve's weapons". If you search by your own, you might be able to change steve's armor !^^
>>> mcpi_world_path = 'C:\Users\username\myFile\Programming\Python\MCPI'
- Correct the bugs you will find.
- add x, y, z for spawning Mobs
- add function to change your Armor by what you want.
- save poor skelets that are dieing too fast.
- find why we cannot shoot mobs.
- Your imagination and beyond ..!
- 🐔 Little Endian = 0A 00 00 00
- 🐮 Little Endian = 0B 00 00 00
- 🐷 Little Endian = 0C 00 00 00
- 🐑 Little Endian = 0D 00 00 00
- 🧟 Little Endian = 20 00 00 00
- :creeper: Little Endian = 21 00 00 00
- :skeleton: Little Endian = 22 00 00 00
- 🕷️ Little Endian = 23 00 00 00
- :zombie pigman: Little Endian = 24 00 00 00
Enjoy ! 👍