Minecraft Mods

Schematic2Json Converter

  • 22,936 views, 10 today
  • 2,681 downloads, 0 today
  • 31
  • 21
  • 59
MicleBrick's Avatar MicleBrick
Level 41 : Master Lego Builder
29
It is not a virus. Windows SmartScreen filters out new, unknown software. For some reason, someone probably reported it to Google as a virus rather than tell me. I've updated the download to be on GitHub. instead. If Windows Defender tells you not to run it, click "More info", then "Run Anyway". I've published the source code now, too:
github.com/Miclebrick/Schematic2Json/

Hello all. I've made a new simple utility that converts a schematic file
to a .json mesh file. For most users, you simply have to extract the
zip folder somewhere and run "Schematic2Json.exe". Then, you enter the
location of your schematic file and it will create a json model from it
in the same folder as the schematic. If you want to run it from a script
or something, you can just supply the path in the first command
argument, and put "nopause" in the second, so it doesn't pause after the
operation is complete. Example: "schematic2json
"<pathtoschematic>" nopause"

For the textures, it uses the white wool texture by default. The UV is randomly picked. If you build with wool or stained clay, it will use the wool texture of the same color as the color of the block you used. It randomly picks which pixel of the texture to use for each voxel, but you may disable this with the "nonoise" parameter.

Command line parameters:
To use command line parameters, you need to run it as a command like this in your command prompt:
schematic2json "modelschematicfile.schematic" nonoise nopause
This converts modelschematicfile.schematic to modelschematicfile.json, and since it has the parameter "nonoise" and "nopause", it will not randomly select pixels and it will close immediately after finishing.

List of parameters:
nopause - Closes right after completion
nonoise - Disables random pixel selection

Mac users:
You'll have to use Mono to run the application, as it is written in C#.
http://www.mono-project.com/download/ to get mono.
After installing mono, run "mono Schematic2Json.exe"

Libraries used:

- JSON.NET json.net
- fNbt github.com/fragmer/fNbt

If you have any suggestions, want to make a comment on something, or need any help please ask/tell me in the comments!
Progress100% complete
Game VersionMinecraft 1.10
Tags

3 Update Logs

0.0.7 : by MicleBrick 10/02/2016 6:09:54 pmOct 2nd, 2016

Added stone_slab and all of its variants. Textures not used by the model are no longer included in the model. Stained clay no longer uses wool's texture.
LOAD MORE LOGS

Create an account or sign in to comment.

1
08/08/2017 10:19 am
Level 59 : Grandmaster Hero
ThirtyFangs
ThirtyFangs's Avatar
Hello, it doesn't load textures in this model :/ and the software doesn't support more than 2 textures :/

pastebin.com/mgDpRq08
1
06/10/2017 11:27 pm
Level 1 : New Miner
PileOCraft
PileOCraft's Avatar
How am I supposed to input the command parameters? I tried "schematic2json "filename.schematic" nonoise" on the first line, but it failed...

Can you please provide a visual representation (e.g. a screenshot)?
1
05/16/2017 2:38 pm
Level 75 : Legendary Narwhal
Soggy_Mustache
Soggy_Mustache's Avatar
Wow! this seems really cool!
1
06/03/2017 3:30 am
Level 41 : Master Lego Builder
MicleBrick
MicleBrick's Avatar
Thanks!
1
05/02/2017 12:54 pm
Level 1 : New Miner
Aberforth10
Aberforth10's Avatar
Omg man, this is awesome work!
Here's what I made using your tool!
https://ibb.co/chE8mQ
1
05/14/2017 3:37 pm
Level 1 : New Miner
FreedEnder
FreedEnder's Avatar
Are you making a subnautica map?
1
06/03/2017 3:30 am
Level 41 : Master Lego Builder
MicleBrick
MicleBrick's Avatar
Wow, very nice looking!
1
12/11/2016 6:55 pm
Level 35 : Artisan Dragonborn
nikklo98
nikklo98's Avatar
No freaking way I tried it on a huge 200 block airship and it still works was laggy my pc couldn't open the json file without it not responding and crashing notepad but minecraft loaded it the textures weren't there as the blocks were wood but this is still amazing +1 diamond and favorite for me.

Next thing we need to top it off is json to schematic. XD
1
01/07/2017 9:07 am
Level 41 : Master Lego Builder
MicleBrick
MicleBrick's Avatar
Didn't see this until now :P

That's awesome! I've converted a few ~2000 block starships and it worked pretty well for a minigame which I sadly never got around to finishing....
1
02/20/2017 3:57 pm
Level 1 : New Miner
FreedEnder
FreedEnder's Avatar
so.... i wanna test this but i can't even open the program. i am on windows 10 if you wanna know. could you tell me what i am doing wrong?
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome