Convert Minecraft maps to Minetest worlds

Re: Convert Minecraft maps to Minetest worlds

Postby Diamond00744 » Sun Oct 01, 2017 10:40 am

Successfully tested latest script on Windows.
Just installed Python 3, moved Minecraft's world in script directory and executed:
Code: Select all
python mcimport.py world out

Thank you so much for this!
Noted problems with Iron bar:
Image
Wood fence work normally. Will try install mods.
Upd: installed Nether mod, got glowstones. Can I rebuild lightmap from glowstones which was there before?
Comparsion:
Image
Image
Diamond00744
New member
 
Posts: 1
Joined: Sun Oct 01, 2017 8:26 am
GitHub: diamond00744
In-game: Diamond00744

Re: Convert Minecraft maps to Minetest worlds

Postby sofar » Sun Oct 01, 2017 7:22 pm

use `/fixlight (x,y,z) (x,y,z) to fix light in a certain region. It's almost impossible to automatically fix light.
sofar
Developer
 
Posts: 2034
Joined: Fri Jan 16, 2015 7:31 am
GitHub: sofar
In-game: sofar

Re: Convert Minecraft maps to Minetest worlds

Postby MysticTempest » Mon Nov 20, 2017 7:08 am

Hey,

First off, big thanks to all of you who worked on this really fantastic tool!
I've been using it to play around in some converted worlds, and it's pretty nice!

Secondly, I recently found a bit of a hacky workaround for the iron bars/glass panes issues.
Modifying them to the following in mcimport will allow the xpanes mod to take over, & auto-connect/rotate them for the most part:

https://github.com/minetest-tools/mcimport/blob/9de6d0bd3aa105ab1c1d1f5661d60628ce971d1d/map_content.txt#L498
Code: Select all
101   xpanes:bar
102   xpanes:pane



However, there's a small issue with gaps in certain spots. I know it's fixable by adding some groups to this part of the xpanes code. (Crumbly as an example below, but more can be added to fill the gaps.)

https://github.com/minetest/minetest_game/blob/a2d7678ffd532dd82dcaa108eac3dace61ac94a2/mods/xpanes/init.lua#L139
Code: Select all
connects_to = {"group:pane", "group:stone", "group:glass", "group:wood", "group:tree", "group:crumbly" },



I'm not much of a coder though, and I was curious if there was a way to get mcimport to make this modification for the user?
As opposed to doing it manually; or forking xpanes with modifications & making it one of the worldmods needed.


Here's 2 previews. The first shows the workaround by itself. And the second, has the workaround + "group:crumbly" added to the 'connects_to' line in the xpanes mod. Just to show how it looks.

Image
MysticTempest
Member
 
Posts: 32
Joined: Sun Jul 16, 2017 1:20 am
GitHub: MysticTempest

Re: Convert Minecraft maps to Minetest worlds

Postby AccidentallyRhine » Wed Nov 22, 2017 3:55 am

Can this tool handle conversion of matchless MC blocks to MT unknown nodes? Or better yet, to air nodes? I do not plan to use some of the listed mods from my conversion and would prefer to replace by hand the nodes which do not have a MT mod equivalent.

Or maybe I'll take a look through your script and see if it would be trivial to replace home-decor/moreblocks with xdecor.

Edit: Hmmm there should be some structures... maybe I'll try a non-flat map?

Image
AccidentallyRhine
Member
 
Posts: 229
Joined: Sun Aug 02, 2015 5:43 am

Re: Convert Minecraft maps to Minetest worlds

Postby MysticTempest » Wed Nov 22, 2017 2:45 pm

AccidentallyRhine wrote:Can this tool handle conversion of matchless MC blocks to MT unknown nodes? Or better yet, to air nodes? I do not plan to use some of the listed mods from my conversion and would prefer to replace by hand the nodes which do not have a MT mod equivalent.

Or maybe I'll take a look through your script and see if it would be trivial to replace home-decor/moreblocks with xdecor.

Edit: Hmmm there should be some structures... maybe I'll try a non-flat map?

Yea, it won't bother converting unknown nodes. Check out the 'map_content.txt' file for the nodes it uses to convert. You can customize it beforehand to your liking; especially if you're going to hand-select the mods you want to use. That way you can make conversion a bit easier for yourself.

In terms of spawning where there's nothing; yea, I've been there. You need to grab the coordinates from Minecraft, as you don't spawn in Minetest where you saved in Minecraft. You'll need to teleport to the coordinates, except; invert the 'Z' axis coordinate. With unlimited view distance, and the right coordinates, you should be able to find the area you're looking for with a little bit of flying around.
MysticTempest
Member
 
Posts: 32
Joined: Sun Jul 16, 2017 1:20 am
GitHub: MysticTempest

Re: Convert Minecraft maps to Minetest worlds

Postby AccidentallyRhine » Wed Nov 22, 2017 8:33 pm

Thanks for the tips. All seems to be working well, good work Sofar. I use to run some MC servers a while back and there are things I am trying to preserve long term. I equate it to converting old .doc to .odt. Things can still use a bit of tweaking (doors -> doors which are in the base game) so I will go play around with that map_content.txt.

Image

Image

Image
AccidentallyRhine
Member
 
Posts: 229
Joined: Sun Aug 02, 2015 5:43 am

Re: Convert Minecraft maps to Minetest worlds

Postby sofar » Wed Nov 22, 2017 11:27 pm

AccidentallyRhine wrote:Thanks for the tips. All seems to be working well, good work Sofar. I use to run some MC servers a while back and there are things I am trying to preserve long term. I equate it to converting old .doc to .odt. Things can still use a bit of tweaking (doors -> doors which are in the base game) so I will go play around with that map_content.txt.


This is most likely due to your MC save being from an older or too new MC version. The doors from v1.8 are supported and convert properly, other versions are just not tested as I'm working on other projects.
sofar
Developer
 
Posts: 2034
Joined: Fri Jan 16, 2015 7:31 am
GitHub: sofar
In-game: sofar

Re: Convert Minecraft maps to Minetest worlds

Postby MysticTempest » Fri Nov 24, 2017 4:46 am

AccidentallyRhine wrote:Thanks for the tips. All seems to be working well, good work Sofar. I use to run some MC servers a while back and there are things I am trying to preserve long term. I equate it to converting old .doc to .odt. Things can still use a bit of tweaking (doors -> doors which are in the base game) so I will go play around with that map_content.txt.


Ah, the door issue. Yea, that's due to Minetest Game getting some upgraded doors a while back.
Attached below is a copy of the older door mod taken from here: https://github.com/minetest/minetest_ga ... tag/0.4.10

If you stick that version of the 'doors' mod into the 'worldmods' folder inside your converted world folder; it'll fix that issue.


Though, I'd also recommend checking out Wuzzy's MineClone 2 sub-game: viewtopic.php?f=50&t=16407
I've been working on a fork of mcimport specifically for that sub-game: https://github.com/MysticTempest/mcimpo ... MineClone2

They're both a WIP, but it's coming along nicely. And, at the very least; is an alternative to try.

Preview of a converted test map using the MineClone2 sub-game, and my fork of mcimport:
https://imgur.com/9gehP7a
MysticTempest
Member
 
Posts: 32
Joined: Sun Jul 16, 2017 1:20 am
GitHub: MysticTempest

Re: Convert Minecraft maps to Minetest worlds

Postby AccidentallyRhine » Fri Nov 24, 2017 5:45 am

I did check out MineClone 2. Very well done, however only maintained by a single individual which introduces risk of it falling out of support.

My goal with this tool was only to use it to translate MC to Vanilla MT as much as possible. By that I mean: rely on 3rd party mods (which are relatively volatile) as little as possible.

And so I edited map_content.txt as follows:

- Quartz --> Silversand Stone
- Nether brick --> Desert Cobble
- Lapis Lazuli --> Blue Wool
- Sponge --> Coral
- Vines --> Ivy (Ivy is already in xdecor, I don't know why sofar used a specialized vines mod)
- Various woods --> default:<minetest woods> (Again, I don't know why this required moretrees)
- Emerald --> Tin
- Potted plants --> xdecor:<plants> (Once again, already in xdecor)
... some various others I cannot recall.

^^^ all reducing the need for fleeting 3rd party mods down to just: Mesecons, xdecor and crops - all of which are very well maintained and have been around for a while. I think some are even in the Minetest-mods github. I honestly cannot wait for some very basic functionality to get pulled into Minetest Game, why oh why do we still need playeranim?

Here is my copy of map_content.txt for anyone else who wants as-vanilla-as-possible map conversions:
AccidentallyRhine
Member
 
Posts: 229
Joined: Sun Aug 02, 2015 5:43 am

Re: Convert Minecraft maps to Minetest worlds

Postby sofar » Fri Nov 24, 2017 6:25 am

AccidentallyRhine wrote:I did check out MineClone 2. Very well done, however only maintained by a single individual which introduces risk of it falling out of support.

My goal with this tool was only to use it to translate MC to Vanilla MT as much as possible. By that I mean: rely on 3rd party mods (which are relatively volatile) as little as possible.

And so I edited map_content.txt as follows:

- Quartz --> Silversand Stone
- Nether brick --> Desert Cobble
- Lapis Lazuli --> Blue Wool
- Sponge --> Coral
- Vines --> Ivy (Ivy is already in xdecor, I don't know why sofar used a specialized vines mod)
- Various woods --> default:<minetest woods> (Again, I don't know why this required moretrees)
- Emerald --> Tin
- Potted plants --> xdecor:<plants> (Once again, already in xdecor)
... some various others I cannot recall.

^^^ all reducing the need for fleeting 3rd party mods down to just: Mesecons, xdecor and crops - all of which are very well maintained and have been around for a while. I think some are even in the Minetest-mods github. I honestly cannot wait for some very basic functionality to get pulled into Minetest Game, why oh why do we still need playeranim?

Here is my copy of map_content.txt for anyone else who wants as-vanilla-as-possible map conversions:


Some of the map choices are simply historical (vines), some are aestetic. For instance, the xdecor potted plants only offer 4 or so variants, and they largely vary in style too much imho, which is why I ended up with `flowerpots` instead.

Xdecor's vines are probably a fine replacement, but I wouldn't remove quartz and nether brick, that's just not a fair replacement especially when people may be converting maps where they have spent a lot of time building with those materials (did you actually make desert cobble fences?) and so they'd end up with a broken conversion.

As you said in your initial paragraphs, a lot of people aren't interested in a 1:1 conversion but want a functional MT equivalent, hence this is why I don't maintain a branch or version that converts to MCL2. But I do think it should remain relatively complete, so lapis and quartz should stay.

BTW all of mesesons, xdecor and crops are in minetest-mods.
sofar
Developer
 
Posts: 2034
Joined: Fri Jan 16, 2015 7:31 am
GitHub: sofar
In-game: sofar

Re: Convert Minecraft maps to Minetest worlds

Postby AccidentallyRhine » Sun Nov 26, 2017 1:22 am

Our approaches to replacing nodes simply have different goals in mind. Many of the worlds I have been converting are from old Minecraft servers (Beta 1.5-release1.3~) so they don't even have vines or quartz. It has truly been a joy revisiting these old worlds thanks to your work.

Image
AccidentallyRhine
Member
 
Posts: 229
Joined: Sun Aug 02, 2015 5:43 am

Re: Convert Minecraft maps to Minetest worlds

Postby larajtekno » Mon Feb 05, 2018 7:45 pm

Hello,I try in vain for a few days, to convert a map to be able to use it in Minetest. My O.S. is windows 10, I tried mcedit without success.
Is there somewhere, a tutorial of the convert style for Dummies ??
Thank you
larajtekno
Member
 
Posts: 11
Joined: Wed Dec 13, 2017 9:48 am

Re: Convert Minecraft maps to Minetest worlds

Postby sofar » Mon Feb 05, 2018 9:44 pm

larajtekno wrote:Hello,I try in vain for a few days, to convert a map to be able to use it in Minetest. My O.S. is windows 10, I tried mcedit without success.
Is there somewhere, a tutorial of the convert style for Dummies ??
Thank you


The best advice I can give you is to install a virtual machine with e.g. ubuntu and try it on that. Getting this program to work on Windows is (1) untested and (2) very difficult, I don't guarantee it will work either.

If the MC map is downloadable, maybe you can tell us which map it is, and maybe someone can convert it for you?
sofar
Developer
 
Posts: 2034
Joined: Fri Jan 16, 2015 7:31 am
GitHub: sofar
In-game: sofar

Re: Convert Minecraft maps to Minetest worlds

Postby larajtekno » Tue Feb 06, 2018 6:08 pm

Hello. I already ask to convert my map : viewtopic.php?f=12&t=13910
Dis not havé any answer.
Before installing a virtual machine, i would like to have an exemple with a map of my town.
Thank you.
larajtekno
Member
 
Posts: 11
Joined: Wed Dec 13, 2017 9:48 am

Re: Convert Minecraft maps to Minetest worlds

Postby miner2000 » Sun Mar 04, 2018 10:27 am

Hello, I have converted my MC map and the process has completed without errors. When I play the map in MT it runs ok but the map looks to just be generating freshly as I explore it. I have tried teleporting to places but I can't see a trace of anything that was in the MC map.

Is there anything I need to do to stop the map from generating??
miner2000
New member
 
Posts: 2
Joined: Sun Mar 04, 2018 10:18 am

Re: Convert Minecraft maps to Minetest worlds

Postby sofar » Sun Mar 04, 2018 11:29 pm

miner2000 wrote:Hello, I have converted my MC map and the process has completed without errors. When I play the map in MT it runs ok but the map looks to just be generating freshly as I explore it. I have tried teleporting to places but I can't see a trace of anything that was in the MC map.

Is there anything I need to do to stop the map from generating??


If you used it correctly, the created world has several `worldmods` that configure the world properly and disable any future mapgen already, by default.

I can't see anything wrong with the code and it works when I use it, so I think you're using it incorrectly somehow. Did you make sure you didn't have an old world with the same name? Did you check that the output folder was empty before you started? Did the worldmods get inserted properly in the map?
sofar
Developer
 
Posts: 2034
Joined: Fri Jan 16, 2015 7:31 am
GitHub: sofar
In-game: sofar

Re: Convert Minecraft maps to Minetest worlds

Postby -sniper- » Thu Mar 14, 2019 7:58 pm

Thank you for this very good program. Images of minetest world that I converted from minecraft world:

Image
Image

Original minecraft map: http://www.minecraftmaps.com/city-maps/world-of-worlds

I had to download some mods (mesecons, nether, quartz etc.).
-sniper-
Member
 
Posts: 36
Joined: Mon Jan 14, 2019 4:13 pm
GitHub: JostP
In-game: -sniper-

Re: Convert Minecraft maps to Minetest worlds

Postby niwla23 » Sun Mar 31, 2019 8:03 am

I get this:
Bildschirmfoto vom 2019-03-31 10-03-07.png
niwla23
Member
 
Posts: 88
Joined: Sat Nov 17, 2018 5:40 pm
In-game: Niwla

Re: Convert Minecraft maps to Minetest worlds

Postby sofar » Sun Mar 31, 2019 4:56 pm

niwla23 wrote:I get this:
Bildschirmfoto vom 2019-03-31 10-03-07.png


you need the `zlib` python module. Maybe `sudo pip3 install zlib` will work for you.
sofar
Developer
 
Posts: 2034
Joined: Fri Jan 16, 2015 7:31 am
GitHub: sofar
In-game: sofar

Re: Convert Minecraft maps to Minetest worlds

Postby niwla23 » Thu Apr 04, 2019 7:30 pm

Bildschirmfoto vom 2019-04-04 21-29-15.png

That are the available packages from pip search. Which one?
niwla23
Member
 
Posts: 88
Joined: Sat Nov 17, 2018 5:40 pm
In-game: Niwla

Re: Convert Minecraft maps to Minetest worlds

Postby sofar » Fri Apr 05, 2019 6:15 am

niwla23 wrote:
Bildschirmfoto vom 2019-04-04 21-29-15.png

That are the available packages from pip search. Which one?


Honestly I have no idea, you even are missing setuptools, which is part of python? I really have no clue.
sofar
Developer
 
Posts: 2034
Joined: Fri Jan 16, 2015 7:31 am
GitHub: sofar
In-game: sofar

Re: Convert Minecraft maps to Minetest worlds

Postby TumeniNodes » Fri Apr 05, 2019 1:38 pm

niwla23 wrote:
Bildschirmfoto vom 2019-04-04 21-29-15.png

That are the available packages from pip search. Which one?


Have you tried installing everything from the Mint software manager?
if not, then just go into the SM and grab
python3
and then zenity
and then you should be all set
I run Mint as well, and that is all I did. All of the deps should be automatically collected and installed.
In fact, if I remember correctly, sofar made it all even easier back when I was having problems
TumeniNodes
Member
 
Posts: 2626
Joined: Fri Feb 26, 2016 7:49 pm
GitHub: TumeniNodes
In-game: TumeniNodes



Return to Maps



Who is online

Users browsing this forum: Bing Bot [Bot] and 0 guests