NOTE: I am back working on this tool again.
Also: I found somebody that made a tool like this, which has metadata support!
You can find that tool here: http://www.minecraft...file-converter/
Note: My tool does not have metadata support yet, as I keep running it bugs.
Mac Download is not available!
Welcome to the SchematicToJava thread.
Here's some info:
This tool is made for modders that mod minecraft.
they can import any .schematic file and it will convert to java code used for structure generation.
Modders no longer need to work endless hours to code a simple little house.
This tool does the work for you.
This tool will save modders hours and hours of coding.
How easy it is to use this tool:
Build a structure in Minecraft... export it to a .schematic (use MCedit or SPC Mod with WorldEdit)
Use my tool to convert your schematic and you just saved days of coding.
Right now the tool is in its beta stages, but its pretty stable.
Stuff like setting metadata is not available yet, I'm working on that.
The tool support 20,000 blocks at its best.
The is normally set around 19500, but it can do 20,000 blocks.
Here's some pictures...
Pictures:
Mac version:
This is what it looks like in minecraft:
Note: I did not make that building, I downloaded it from planetminecraft.
The building was used as an example. Credit to the person who made the building.
Info and warnings:
1. Schematic files that have over 19,500 blocks, will very likely crash minecraft...
(Unless you add more methods to the WorldGenStructure file, pretty easy)
2. Its simple to extend the max limit, which I will do in the next update.
3. Blocks with metadata will not work, example: doors, torches, colored wool, etc...
4. There are many bugs and missing features, do not expect the tool to give you 100% clean code.
1. Run SchematicToJava
2. Press the 'Load and Convert .schematic' Button
3. A window will popup, search for your file and click on open
4. The program will convert and load the schematic
5. Press escape to exit the program.
6. Open "WorldGenStructure.java"
7. There is your code that you can use to in your mod.
8. There is also a mod_mod file that has the generation method inside (needed to generate structures)
Download:
NOTE: This tool will work for minecraft 1.2.5 schematics and lower. If you're using a new version of minecraft it can cause problems.
After every minecraft update, I'll update this tool.
SchematicToJava v0.2.1 : Mac | Download Taken Down Temporarily due to it not running.
Note: I'm sorry, but I won't be working on the mac version for a while.
Note: Please notify me if there's any bugs and such. specially for the mac version.
Updates:
V0.2 ChangeLog:
Limit is now 19,500 lines / blocks
Cleaned the interface.
_______________
Expect Metadata support for the next version, meaning... doors, colored wool..etc will work to generate without problem.
_______________
Virus Scan:
2012-04-23 Found nothing
2012-04-22 Found nothing
2012-04-22 Found nothing
2012-04-22 Found nothing
2012-04-22 Found nothing
2012-04-23 Found nothing
2012-04-22 Found nothing
2012-04-23 Found nothing
2012-04-22 Found nothing
2012-04-23 Found nothing
2012-04-22 Found nothing
2012-04-22 Found nothing
2012-04-23 Found nothing
2012-04-20 Found nothing
2012-04-23 Found nothing
2012-04-22 Found nothing
2012-04-23 Found nothing
2012-04-22 Found nothing
2012-04-22 Found nothing
2012-04-22 Found nothing
Credits:
Haxman12 (Me) Davve (Creator of Minecraft Note Block Studio)
Thanks to Davve for his awesome .schematic importer.
It should work now. I added a mediafire link in-case the dropbox link fails.
PS. I disabled the mediafire link for a bit, I ran into problems when uploading to mediafire. I'll retry soon.
Strange, the same thing happens if I remove the dll's, so are you sure that the tool is in the SAME directory with the 2 dll's?
You might have it in a protected folder or something as well, try moving it to the desktop or run it in admin mode.
I'll see if I can find any bugs.
Weird. The two dll files are there and it doesn't work. The .zip is on my desktop and it doesn't work. I took the folder out of the .zip and placed it on my desktop and THEN it worked. Weird.
Weird. The two dll files are there and it doesn't work. The .zip is on my desktop and it doesn't work. I took the folder out of the .zip and placed it on my desktop and THEN it worked. Weird.
Ah, always unzip things to run them, specially if it has dll files.
The tool couldn't load the dll files because it was in a zip. Simple problem.
you should also implement a feature that if you want it to notice air or not. =D
By noticing air you mean, all the air blocks within the schematic?
This was actually what it did by default, but I changed it to filter out air blocks.
Reason: The file got seriously super big.
If you want it to clear everything that's inside your structure.
then you'll have to use the "Clear place / air replacement" feature which is a menu option in the next version(v0.3)
Info below:
The next version(v0.3) will have a options menu.
In that menu there will be many options to choose from, here's some of them...
Toggle Options (on / off):
• Clear place / air replacement ( before it generates the structure, it will generate a cube of air clearing the whole generation place. )
• Smart Detection Smart Detection Explanation: ( In your WorldGen_ file, the default detection cube will fit the width, height, length from your schematic. which means that if all 4 bottom corners are grass (change-able in the options menu as well) and if all the top 4 corners are air (change-able in the options menu as well)only then it will generate your structure)
(There some more, but they will be added in another version, not v0.3)
Other Options:
None to think of at the moment, if you have any menu ideas or feature ideas. Feel free to give them to me!
It not working for me!
I putting WorldGenStructure.java and mod_name.java in my minecraft.jar but it dont work!
Please help!!!!
This tool is for Mod Making and Modders
Its not a mod... This tool makes code to MAKE a mod
so if you want you're structure to generate, you'll have to ask a modder to make it into a mod OR you could learn how to mod yourself.
I hope that helped.
Could you add an option to allow the user to specify where they want to save the .java code. It would help for macs. (Not yet released) because right now it's saving it inside the program files which can become a hassle for users.
Edit:
Is it possible to do the following:
Before: world.setBlock(i + 0, j + 0, k + 9, 1);
To: world.setBlock(i + 0, j + 0, k + 9, Block.stone.blockID);
I need that way because my dimensions primary material is Metal not stone so if I use ctrl-f and change all ones to my material it will stuff up the building.
Could you add an option to allow the user to specify where they want to save the .java code. It would help for macs. (Not yet released) because right now it's saving it inside the program files which can become a hassle for users.
Edit:
Is it possible to do the following:
Before: world.setBlock(i + 0, j + 0, k + 9, 1);
To: world.setBlock(i + 0, j + 0, k + 9, Block.stone.blockID);
I need that way because my dimensions primary material is Metal not stone so if I use ctrl-f and change all ones to my material it will stuff up the building.
I'll do that for the mac version right away, then I'll upload it.
Thanks for converting it to mac by the way.
Edit: Its nearly finished.
I even added some pretty mac buttons.
For people who are wondering If I'm going to release v0.2.1 for windows...?
I will release v0.2.2 for windows, it will have options menu as well. (with more options)
v0.2.2 will be released for mac at the same time. This way the versions are equal.
Also, has anyone tested the mac version of the tool yet? I do not own a mac. So I cannot test it obviously.
Thanks.
~Haxman12
EDIT: Temporarily removed Mac Download, it was confirmed that v0.2.1 for mac didn't work. Tarun1998 is converting the newest version now. Well see how it goes.
OMG Perfect!
Thank you soo much! did exactly what i wanted! last month i looked up something like "schematic to java minecraft mod" on google and didnt find anything.... (forum wasn't up yet obviously)
Then just now i looked up "minecraft mod generate schematics in map" and found this third from the top... (actually the tutorial thread)
I just converted a schematic and im soo happy i didnt have to type out 6500 lines
Btw, i'd suggest making stairs and all that stuff face the way it was placed in the schematic...
Other than that, this is AWESOME!!!
Also: I found somebody that made a tool like this, which has metadata support!
You can find that tool here: http://www.minecraft...file-converter/
Note: My tool does not have metadata support yet, as I keep running it bugs.
Mac Download is not available!
Welcome to the SchematicToJava thread.
Here's some info:
This tool is made for modders that mod minecraft.
they can import any .schematic file and it will convert to java code used for structure generation.
Modders no longer need to work endless hours to code a simple little house.
This tool does the work for you.
This tool will save modders hours and hours of coding.
How easy it is to use this tool:
Build a structure in Minecraft... export it to a .schematic (use MCedit or SPC Mod with WorldEdit)
Use my tool to convert your schematic and you just saved days of coding.
Right now the tool is in its beta stages, but its pretty stable.
Stuff like setting metadata is not available yet, I'm working on that.
The tool support 20,000 blocks at its best.
The is normally set around 19500, but it can do 20,000 blocks.
Here's some pictures...
Pictures:
Mac version:
This is what it looks like in minecraft:
Note: I did not make that building, I downloaded it from planetminecraft.
The building was used as an example. Credit to the person who made the building.
Info and warnings:
1. Schematic files that have over 19,500 blocks, will very likely crash minecraft...
(Unless you add more methods to the WorldGenStructure file, pretty easy)
2. Its simple to extend the max limit, which I will do in the next update.
3. Blocks with metadata will not work, example: doors, torches, colored wool, etc...
4. There are many bugs and missing features, do not expect the tool to give you 100% clean code.
Tutorial / Guide:
(Click Here for a longer text tutorial) <--- Click for longer tutorial.
1. Run SchematicToJava
2. Press the 'Load and Convert .schematic' Button
3. A window will popup, search for your file and click on open
4. The program will convert and load the schematic
5. Press escape to exit the program.
6. Open "WorldGenStructure.java"
7. There is your code that you can use to in your mod.
8. There is also a mod_mod file that has the generation method inside (needed to generate structures)
Download:
NOTE: This tool will work for minecraft 1.2.5 schematics and lower.
If you're using a new version of minecraft it can cause problems.
After every minecraft update, I'll update this tool.
SchematicToJava v0.2 : Windows | Direct Download | MediaFire Download
SchematicToJava v0.2.1 : Mac | Download Taken Down Temporarily due to it not running.
Note: I'm sorry, but I won't be working on the mac version for a while.
Note: Please notify me if there's any bugs and such. specially for the mac version.
Updates:
V0.2 ChangeLog:
Limit is now 19,500 lines / blocks
Cleaned the interface.
_______________
Expect Metadata support for the next version, meaning... doors, colored wool..etc will work to generate without problem.
_______________
Virus Scan:
2012-04-23 Found nothing
2012-04-22 Found nothing
2012-04-22 Found nothing
2012-04-22 Found nothing
2012-04-22 Found nothing
2012-04-23 Found nothing
2012-04-22 Found nothing
2012-04-23 Found nothing
2012-04-22 Found nothing
2012-04-23 Found nothing
2012-04-22 Found nothing
2012-04-22 Found nothing
2012-04-23 Found nothing
2012-04-20 Found nothing
2012-04-23 Found nothing
2012-04-22 Found nothing
2012-04-23 Found nothing
2012-04-22 Found nothing
2012-04-22 Found nothing
2012-04-22 Found nothing
Credits:
Haxman12 (Me)
Davve (Creator of Minecraft Note Block Studio)
Thanks to Davve for his awesome .schematic importer.
Copyright:
(click the link)
Now can you please make it for mac? I can you switch it to Java.
No problem, thanks for the support!
Thanks for the support, It will be converted to mac in the future.
Thank you!
----------------
I'm also working on the v0.02 update.
The 'block limit' will be set to 19,500 blocks in v0.02.
and some small interface changes will occur as well.
Thanks to everybody for the support!
Enjoy Generating Structures.
~ Haxman12
It should work now. I added a mediafire link in-case the dropbox link fails.
PS. I disabled the mediafire link for a bit, I ran into problems when uploading to mediafire. I'll retry soon.
_______________________________________________________
Updated to V0.2:
Changes Made:
Limit is now 19,500 lines / blocks
Cleaned the interface.
------
Expect Metadata support for the next version, meaning... doors, colored wool..etc will work to generate without problem.
...Thanks for all the support.
I bet there's going to be some great mods that involve structure generation using this tool.
Strange, the same thing happens if I remove the dll's, so are you sure that the tool is in the SAME directory with the 2 dll's?
You might have it in a protected folder or something as well, try moving it to the desktop or run it in admin mode.
I'll see if I can find any bugs.
Ignoring me?
Weird. The two dll files are there and it doesn't work. The .zip is on my desktop and it doesn't work. I took the folder out of the .zip and placed it on my desktop and THEN it worked. Weird.
Sorry, no I'm not.
I was busy working on my mod. Check your messages...
Ah, always unzip things to run them, specially if it has dll files.
The tool couldn't load the dll files because it was in a zip. Simple problem.
Note sure when the next version is going to be released, but I will probably add that.
By noticing air you mean, all the air blocks within the schematic?
This was actually what it did by default, but I changed it to filter out air blocks.
Reason: The file got seriously super big.
If you want it to clear everything that's inside your structure.
then you'll have to use the "Clear place / air replacement" feature which is a menu option in the next version(v0.3)
Info below:
The next version(v0.3) will have a options menu.
In that menu there will be many options to choose from, here's some of them...
Toggle Options (on / off):
• Clear place / air replacement ( before it generates the structure, it will generate a cube of air clearing the whole generation place. )
• Smart Detection
Smart Detection Explanation:
( In your WorldGen_ file, the default detection cube will fit the width, height, length from your schematic. which means that if all 4 bottom corners are grass (change-able in the options menu as well) and if all the top 4 corners are air (change-able in the options menu as well) only then it will generate your structure)
(There some more, but they will be added in another version, not v0.3)
Other Options:
None to think of at the moment, if you have any menu ideas or feature ideas. Feel free to give them to me!
I couldn't really have a date for the next version, it might take over a week.
I could design it faster but I am working on my city craft mod a lot.
This tool is for Mod Making and Modders
Its not a mod... This tool makes code to MAKE a mod
so if you want you're structure to generate, you'll have to ask a modder to make it into a mod OR you could learn how to mod yourself.
I hope that helped.
Edit:
Is it possible to do the following:
Before: world.setBlock(i + 0, j + 0, k + 9, 1);
To: world.setBlock(i + 0, j + 0, k + 9, Block.stone.blockID);
I need that way because my dimensions primary material is Metal not stone so if I use ctrl-f and change all ones to my material it will stuff up the building.
I'll do that for the mac version right away, then I'll upload it.
Thanks for converting it to mac by the way.
Edit: Its nearly finished.
I even added some pretty mac buttons.
Picture:
Wow look's epic may I ask whats in the "options".
Please notify me if it works and if there's any bugs.
Thanks for the support.
Enjoy!
____________
Its the thing you requested
(I hope I got your request right.)
Its a ID to BlockName toggle option.
The Download link for mac is in the main post. Try it.
Tell me if there's any bugs.
Haha thanks...
I hope they don't taste as wierd as those diamonds the other person gave me, lol.
I will release v0.2.2 for windows, it will have options menu as well. (with more options)
v0.2.2 will be released for mac at the same time. This way the versions are equal.
Also, has anyone tested the mac version of the tool yet? I do not own a mac. So I cannot test it obviously.
Thanks.
~Haxman12
EDIT: Temporarily removed Mac Download, it was confirmed that v0.2.1 for mac didn't work.
Tarun1998 is converting the newest version now. Well see how it goes.
I'll add the links once it works.
Thank you soo much! did exactly what i wanted! last month i looked up something like "schematic to java minecraft mod" on google and didnt find anything.... (forum wasn't up yet obviously)
Then just now i looked up "minecraft mod generate schematics in map" and found this third from the top... (actually the tutorial thread)
I just converted a schematic and im soo happy i didnt have to type out 6500 lines
Btw, i'd suggest making stairs and all that stuff face the way it was placed in the schematic...
Other than that, this is AWESOME!!!
http://halocraft.glitchyscripts.com/