How to turn your world…

How to turn your world in survivor mode into Minecraft PI alias MCPI on your Raspberry Pi?
ok, this is the manual way to proceed :

1) Make a back-up or create a new world
2) with your web browser, open https://hexed.it/
3) load your Level.dat file via hexed.it web site
the path should be : /home/pi/.minecraft/games/com.mojang/minecraftWorlds/
(you might need to show hidden files in your file manager parameters).
4) you should see “GameType” as value text on right side and just after, there is “01”.
5) change “01” (Creative mode) by “00” (Survivor mode).
6) From hexed.it, choose “Export” and download your new file.
7) replace your new level.dat file into your folder world.
8) when you will start Minecraft Pi, you should see under your world’s name “Survival” that will indicate that the operation succeed.
Voila.

I’ll try to add this command into my scripts as it is necessary if you want to have your spawned skeletons alive, they need night time & survival mode OR day time and a swimming pool (no joke ! xD).

Cheers.
Skel

P.s : some additional notes
http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-tools/1262596-change-the-game-mode
http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-tools/1260521-nbtedit
http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-tools/1262665-nbtexplorer-nbt-editor-for-windows-and-mac

Hey there,

didn’t play that much with my Raspberry past few months however I wanted to see what it would cost to build by myself in command lines with Python an house.
So I checked a tuto on internet and found the “Pink House” that my daughter loved, :
Minecraft Tutorial: How To Make A Barbie Dream House!!
Survival House (ASH#39) user : ADHDcraft
URL : https://www.youtube.com/watch?v=oJo47QLOOX8

and here we go: I wrote the Python script.
Later, I realised it would cost that much to add the possibility of changing colours for walls and roof… so did I !.

https://github.com/Will-777/MyPinkHouse

Enjoy ! ^^

Spawn Mobs on Minecraft Pi !

hey hey hey  : first release of my broken scripts but here we go !
The sad news is still I don’t know how to change X, Y, Z parameters to choose the place to spawn your mobs…
But go for spawning some pigs, spiders, Cows, Chickens, Skeletons … and more in Minecraft Pi !

You can install it from Github. I did my best to keep it as much as I could simple.
Go to Git Hub for more info there :

https://github.com/Will-777/spawn_mobs_mcpi.git

Enjoy.
Skel.

 

MCPI Script still work in progress

Ok the first version is not working very well yet – doing few things manually still – however I finally figured out how to add Mobs properly.

I will post the python script on GitHub pretty soon.

It was a bit tought but within the NBT_Body, there was a TAG that needed to be replaced ( \x01\x00\x00\x00) when the Entities.dat file is empty. And put the number of the mob (\n\xXX\x00\x00 where \xXX is the number of mobs).
I replaced that Tag by \xee and the game update it by the proper value. I tried to put the correct number but got some bugs. Not sure exactly why.

What else ? There is a TAG (\x00\x03\x03\x00 or  \x00\x02\x03\x00) that must be inserted between each Mobs.
Skeleton Mobs have more parameters than other Mobs. I still need also to integrate x, y, z to be able to choose the place where to spawn the Mobs.

While it is day time, Skeletons are dieing pretty fast ! I think it is because… it is day time basically…?! Not sure.

While checking Entities.dat file on another of my game I could collect some items, I realized also that there is after the TileEntities TAG my items. There is ID as well and I guess it could be stored into the storage.
I don’t remember exactly how I’ve done that but could be some updates in future ?… Anyway !

While I’m finishing my damned script, enjoy the Spiders’ party on Minecraft Pi / Raspberry Pi.

The very sad news is that still, except with dynamite, we cannot kill mobs.
Sword works only on cubes and we cannot shoot with the arc. Didn’t find yet what is the road blocker.

Cheers.
Skel

MCPI-spiders-party

 

News News News Coming soon

Hey guys,

I could make huge progress on my Python training.
I am almost done with that in couple of weeks.

Believe it or not, I started to make my home-made Python scripts to spawn any mobs
by yourself ! Just using some command lines … hey hey hey ^^. Like :
>>> myFile.Mobs_list_display()
>>> myFile.Mobs_show_stats()
>>> myFile.Mobs_howMany()

So far, my script can show existing mobs into your NBT file,
calculate the NBT data value, make file back-up…
Coming then very soon : add/remove mobs as you wish !

So very excited to finish that asap and I am doing my best to make it real !

Cheers and stay tune!
Skel

Hi there,

didn’t post that much recently but on my way !
For those who wants to get basic knowledge on Python programming, I recommend to :
-read Python for Dummies
-Follow MITx: 6.00.1x Introduction to Computer Science and Programming Using Python with EDX.org. It is free and hard to catch with lot of math but really nice !

I will try to come back with few new things soon. Stay tune.
Cheers and enjoy.
Skel.

Run Python script on your Raspberry Pi

From the following link
http://www.pythoncentral.io/execute-python-script-file-shell/

Optional : Add this line to your python.py file. As it is comment I don’t think it is used by anything but…

#!/usr/bin/env python

Change permission to Execute the file and run it

$chmod +x my_python_script.py
$python firstprogram.py

#mcpi, #minecraft-pi, #python, #raspberry-pi, #raspbian

How to spawn mobs on Minecraft Pi version 0.1.1

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

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

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

  1. 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 …
  2. 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

  1. Open Xterm windows
  2. go to the right place by typing $cd /home/pi/.Minecraft/com.manjo/worlds/ and the folder of the world you created (example: Skeletons) .
  3.  Type cp entities.dat entities.bak.dat
  4. Download a file from any Minecraft PE world. I put a file here to make your life easier.
  5. Open your Hexadecimal editor program.
  6. Open the entities.dat file you downloaded.
  7. 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
  8. Search all entries and change as you wish.
  9. Save your file.
  10. 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

Welcome to MCPI Addicted

Enjoy your Raspberry Pi Week-end !

IMG_4533

#raspberry-pi

What is Minecraft Pi Edition ?

Here we go…

pi_title

Minecraft Pi Edition version 0.0.1 is a version of Minecraft that’s designed to work on the Raspberry Pi device.
You can buy Raspberry Pi easily. [Officiel Link]

Amazon♥ is your best friend

The version is not the real game but has interesting feature. You can play with blocks and there is lot of funny resource you can try from Internet like building your village or city or even drawing 3D objects into the game.

Unfortunately, the version didn’t receive any update yet and is almost 3 years old.

This blog will help you to explore more about Minecraft Pi Edition and hopefully, will bring some tuto that you will be able to follow with children.

Minecraft Pi [Official Link]

If you want to run Minecraft Pi, go here ! and start to build some blocks, home, village or city !
Only your imagination can stop you !

Enjoy !