Page 1 of 1

[Mod] mcimport - import Minecraft classic maps

PostPosted: Tue Jan 15, 2013 00:09
by Sokomine
This mod allows to import Minecraft classic maps into Minetest. To some degree.

The main limit is that the area you want to import your buildings to does have to be generated and maybe even loaded. This may take a long time while you walk around. With the recommended super flat mapgen, you get flat worlds which is very beneficial in two ways: First, no map has to be generated cpu-intensively just to be overwritten later, and second, the space "above ground" will be mostly free (apart from the tree here and there).

Explore (a mod) may help you in getting your world generated and loaded.

WorldEdit is recommended because it helps you to remove anything you imported at the wrong place or don't like.

Known limits of the mod:
- Small maps, say, 64x64x64, work fine; larger ones may fail due to too much area required to actually place them on
- Right now, air and dirt (except dirt_with_grass) are not imported at all. That means that cellars and any other holes beneath the grass level will remain filled with stone. Trees and other things that are already on your Minetest map will not be removed as long as there is no block to be imported to the space they occupy.
- Water is a special case. This needs improvement. Maybe a future version will place real default:water_source where it is safe.
- No privs yet. Do not use on a productive server!

Usage: Get a level.dat that contains your Minecraft classic map. Rename that file to level.dat.gz and uncompress it so that a level.dat (this one uncompressed) remains. Put it into your worlds/NameOfYourWorld/schems/ folder. Type e.g.
/mcimport level 128x128x128 100:0:0

in your chat window to import that level (if it's not 128x128x128 blocks in size adopt that part) to the position 100,0,0 on your Minetest world. Half of the imported world will be sunk into the ground since the mod assumes that the lower half is filled with dirt. After issuing the command, wait until the game moves you around and then have a look at your imported map.

There is no point in giving screenshots as what you will see depends on the map you import and on the textures you use. The script terrain2mt.sh in the textures folder can convert a textures.png texture pack in Minecraft classic format into individual files which will then be used for your nodes.

Please consult the README.md for more details.

Download: https://github.com/Sokomine/mcimport/zipball/master
Browse code: https://github.com/Sokomine/mcimport

Recommends: super flat mapgen (not a mod!), WorldEdit, Explore.

PostPosted: Tue Jan 15, 2013 00:13
by rarkenin
I think that to avoid having the loaded chunk issue, queue up chunk updates into a file and then actually update the chunks when the player gets near.

PostPosted: Tue Jan 15, 2013 00:27
by Sokomine
That might be a good idea. I'd just have to remember somewhere which blocks to put where. Or override on_mapgen alltogether and just do the import at that time.

PostPosted: Tue Jan 15, 2013 17:44
by rubenwardy
Very good, it was a lot more difficult before this.

PostPosted: Wed Jan 16, 2013 02:07
by Josh
Cool! I have never played Minecraft classic, but this could be handy.

PostPosted: Thu Jan 17, 2013 20:42
by EnryStar
Excellent! The mod has bugs or anything, converts all without problems?

PostPosted: Thu Jan 17, 2013 21:00
by Sokomine
The mod has limits. Up to 64x64x64 it works fine. But keep in mind that it uses a modified water which at the moment is not very useful - and it does not place dirt and air (but that can be changed easily in the code). Larger maps may work if you ensure that the area you want to import to exists and is loaded completely. That is rather difficult for large maps :-(
Also I tried it only with those levels I had at hand. They're exports from the worldofminecraft client.

Re: [Mod] mcimport - import Minecraft classic maps

PostPosted: Wed Feb 25, 2015 14:25
by Sachou
Is that possible to take a part of a minetest map and import it into minecraft ?

Re: [Mod] mcimport - import Minecraft classic maps

PostPosted: Wed Feb 25, 2015 17:15
by twoelk
Sachou wrote:Is that possible to take a part of a minetest map and import it into minecraft ?


there seems to be no tool for that at the moment.
with all them different blocks it may be a little difficult

Re: [Mod] mcimport - import Minecraft classic maps

PostPosted: Sun Mar 22, 2015 04:25
by Sokomine
twoelk wrote:there seems to be no tool for that at the moment.
with all them different blocks it may be a little difficult

It might work if players restricted themshelves to some blocks for which there are counterparts in MC. As this tool here is for the Classic version, the amount of blocks would be even more limited. MC Classic is no longer supported by MC - you need to use an alternate client called ClassiCube.