1

Manually Coding Minecraft World File (help!!!)

WhaleTuba 3/21/16 3:06 pm
367
3/25/2016 9:01 pm
This might be kinda confusing...so I'll try to be as clear as possible here.

Background Stuffs
I have coded a program that quite simply gives you a 3x3 grid that you can draw on (currently it has no erase function, only one color, and yea, it's 3x3, so program of the year, people!). My idea is that after you've drawn your masterpiece, you can convert the drawing to a Minecraft world save. This world would be literally nothing, just air, except for your drawing, which would be in the center of the world made of stone.

Actual Question
Doing this would involve a lot of converting, as each pixel (all 9 of them, wow) would have to be transferred into a Minecraft world. I checked the files involved in some Minecraft worlds and...what.
I have absolutely no idea how it works. Each .dat file seems to follow the same format as a .exe file when opened up into Notepad, in which it's absolute random chaos that cannot be edited. So, how could I edit this safely? Any programs that I could use? Any help at all is appreciated. Thanks in advance!
Posted by
WhaleTuba
Level 33 : Artisan Narwhal
21

  Have something to say?

JoinSign in

5

craftykids
03/25/2016 9:01 pm
Level 53 : Grandmaster Pixel Painter
Minecraft Wiki has some articles on how Minecraft worlds are stored:
http://minecraft.gamepedia.com/Chunk_format
http://minecraft.gamepedia.com/Level_format
1
Dlljs
03/21/2016 4:56 pm
Level 40 : Master Nerd
Here is a download for a world file of a 9x9 square of stone in a void world: http://www.mediafire.com/download/bls6l ... Square.zip

Open in 1.9
1
tobbestark
03/21/2016 4:22 pm
Level 45 : Master Architect
If you want to manually open DAT files I recommend you using NBTExplorer. That program lets you open each world and edit all sorts of tags and such of each world. Maybe that'll help you get a better view of how you gonna do it. http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-tools/1262665-nbtexplorer-nbt-editor-for-windows-and-mac
1
WhaleTuba
03/25/2016 8:48 pm
Level 33 : Artisan Narwhal
I have just gotten NBTExplorer, and it is amazing! I love just playing around with it and seeing what's possible! However, I can't seem to find blocks in this program. I know how to use all the chunks things in the regions folder, I just can't find the individual blocks (except for dispensers and stuff like that). Any help I could get on that?
1
Jaded_Panda
03/21/2016 4:03 pm
Level 5 : Apprentice Network
This will probably be pretty helpful for you.
http://minecraft.gamepedia.com/Programs_and_editors/Mod_Coder_Pack
The Mod Coder Pack is a collection of scripts and tools to help developers create mods for both the Minecraft server and client.
Probably is a good place to start.
1

Welcome