block2brick converts an area from a Minecraft world to bricks in LEGO Digital Designer format.
Usage
First decide what part of your world do you want to convert and find out the area's global coordinates. This can be done in Minecraft by pressing F3, note down the x, y and z numbers (omitting the fraction part). These are the global coordinates of your position. For this tutorial let's assume that:
x: -435
y: 60
z: 130
Then, after unpacking block2brick-0.1.tar.gz and entering the block2brick-0.1 directory, run something like this in your shell/console:
-d dictionary, describes how blocks should be converted. No need to change this, unless you are modifying the dictionary.
-i input, Minecraft world that will be converted, must point to the actual directory (in Linux it's /home/<user>/.minecraft/saves/<world>, in Windows 7 it's C:\Users\<user>\AppData\Roaming\.minecraft\saves\<world>).
-o output, the resulting LDD file.
-x, -y, -z conversion ranges, -z 118:148 means that blocks in z range from 118 to 148 will be converted. A good choice for x and z range is <your global position>-5:<your global position>+5. y (height) can be <your global position>-10:<your global position>+20, converting pure air above your head does not decrease performance.
-h help, also describes the parameters
Start with these small ranges (-5...+5), see how your computer performs when actually opening the result in LEGO Digital Designer. My experience is that lxf files with 20k bricks are reasonably fast to load and manipulate, 40k and more is questionable.
One question, is the output based on existing LEGO blocks? Or maybe just the Minecraft Lego edition?
I could recognize almost every piece/block on the screenshots!
One question, is the output based on existing LEGO blocks? Or maybe just the Minecraft Lego edition?
I could recognize almost every piece/block on the screenshots!
Nice work!
I believe its existing blocks because last i checked ldd only has current lego bricks
First of all, I find the idea amazing. But I'm not sure, how this works with the lego, because the lego-blocks aren't cubes (regular hexahedrons). Can you please test it with bigger buildings and upload the screenshots of it?
Best regards, w3(r4ft.
A 2x2 brick with a 2x2 plate and then a 2x2 studless plate on top is a cube.
I get this error:
Was passed main parameter 'Support/minecraft/saves/New' but no main parameter was defined
I use mac
Help?
If your paths contain spaces then you need to encapsulate them in double or single quotes (depending on your system) like this:
java -jar block2brick-0.1_j5.jar -i "Users/<my user>/Library/Application Support/minecraft/saves/New World" -o best.lxf -d dictionary_2x2x4.lxf -x -468:-494 -z 248:208 -y 57:69
First of all, I find the idea amazing. But I'm not sure, how this works with the lego, because the lego-blocks aren't cubes (regular hexahedrons). Can you please test it with bigger buildings and upload the screenshots of it?
A 2x2 brick with a 2x2 plate and then a 2x2 studless plate on top is a cube.
Currently the default block size equals to one 2x2 brick plus a 2x2 plate. Here you can see dirt/grass, flowing water (usually lower than stationary water) and stationary water (no studs because you can not build on water):
The less bricks there are per block, the more blocks you can allow to be converted without causing a lag when opening the result in LDD. So yes, adding another plate would make it more similar to a cube, but that would mean increasing the brick count by approximately 50%.
I can't help but wonder if you've made a version of this that handles the micro-world Lego scale. I guess I'd have to change the library file to another that uses 1x1 Lego pieces on a 1x1 grid similar to the current file. I'm assuming there would be some code tweaks too. Anyway, just thought it might be handy to see if you had that laying around already, or if you had some pointers on how I might do it myself if not
About block2brick
block2brick converts an area from a Minecraft world to bricks in LEGO Digital Designer format.
Usage
First decide what part of your world do you want to convert and find out the area's global coordinates. This can be done in Minecraft by pressing F3, note down the x, y and z numbers (omitting the fraction part). These are the global coordinates of your position. For this tutorial let's assume that:
Then, after unpacking block2brick-0.1.tar.gz and entering the block2brick-0.1 directory, run something like this in your shell/console:
The parameters should be easy to understand:
Download
If in trouble, post your question here or visit the project page in SourceForge: https://sourceforge....ts/block2brick/
Screenshots
Good luck with whatever you do!
One question, is the output based on existing LEGO blocks? Or maybe just the Minecraft Lego edition?
I could recognize almost every piece/block on the screenshots!
Nice work!
Especially considering you can actually have LEGO sets made in LDD shipped to your house. (For a very expensive price.)
I would recommend leaves be a solid color LEGO brick though.
java -jar block2brick-0.1_j5.jar -i Users/<my user>/Library/Application Support/minecraft/saves/New World--/ -o best.lxf -d dictionary_2x2x4.lxf -x -468:-494 -z 248:208 -y 57:69
I get this error:
Was passed main parameter 'Support/minecraft/saves/New' but no main parameter was defined
I use mac
Help?
I believe its existing blocks because last i checked ldd only has current lego bricks
A 2x2 brick with a 2x2 plate and then a 2x2 studless plate on top is a cube.
If your paths contain spaces then you need to encapsulate them in double or single quotes (depending on your system) like this:
java -jar block2brick-0.1_j5.jar -i "Users/<my user>/Library/Application Support/minecraft/saves/New World" -o best.lxf -d dictionary_2x2x4.lxf -x -468:-494 -z 248:208 -y 57:69
That's a good question. Probably not too difficult to implement, I'll add it to the list of TODOs.
Currently the default block size equals to one 2x2 brick plus a 2x2 plate. Here you can see dirt/grass, flowing water (usually lower than stationary water) and stationary water (no studs because you can not build on water):
The less bricks there are per block, the more blocks you can allow to be converted without causing a lag when opening the result in LDD. So yes, adding another plate would make it more similar to a cube, but that would mean increasing the brick count by approximately 50%.
you Sir, deserve a like
your awesome
I can't help but wonder if you've made a version of this that handles the micro-world Lego scale. I guess I'd have to change the library file to another that uses 1x1 Lego pieces on a 1x1 grid similar to the current file. I'm assuming there would be some code tweaks too. Anyway, just thought it might be handy to see if you had that laying around already, or if you had some pointers on how I might do it myself if not