Skip to content

Commit

Permalink
Schematic, Litematica, Structure Block!
Browse files Browse the repository at this point in the history
This was actually really simple! Turns out these are just plain NBT anyways, so I just had to add some additional tests into NBTify to ensure things were reading and writing symmetrically when working with these file types.

https://fileinfo.com/extension/schematic (didn't know there were two different extension types! Glad I double-checked this)
https://fileinfo.com/extension/schem
https://github.com/puregero/SchemToSchematic/ (yoooo!!! Going to have to look into helping to contribute to this project :D)
  • Loading branch information
Offroaders123 committed Nov 28, 2023
1 parent 899cf2c commit f720d11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<header>
<img draggable="false" src="./icon.svg" alt="">
<button onclick="fileOpener.click();">Open</button>
<input id="fileOpener" type="file" accept="application/octet-stream, .nbt, .dat, .dat_old">
<input id="fileOpener" type="file" accept="application/octet-stream, .nbt, .dat, .dat_old, .mcstructure, .litematic, .schem, .schematic">
<button id="saver" disabled>Save</button>
<button id="formatOpener" disabled>Format Options...</button>
<label style="margin-inline-start: auto;">
Expand Down
2 changes: 1 addition & 1 deletion public/manifest.webmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
{
"action": "./",
"accept": {
"application/octet-stream": [".nbt", ".dat", ".dat_old"]
"application/octet-stream": [".nbt", ".dat", ".dat_old", ".mcstructure", ".litematic", ".schem", ".schematic"]
}
}
]
Expand Down

0 comments on commit f720d11

Please sign in to comment.