
NotJustJson
This mod allows the usage of toml, xml, yaml, nbt and snbt file formats for datapacks
About this Mod
Not Just Jason
Not Just Jason (NotJustJson or NJJ in short) is a utility mod, which allows to use other data types then json to define new data-pack elements.
It will log an error if it detects one file being defined in different file types and is going to use the last match.
Currently, these file types are supported:
| Type | Version | Suffix |
|---|---|---|
| TOML | v1.0.0 | .toml |
| XML | 1.0 | .xml |
| YAML | 1.2 | .yaml |
| JSON | 2020-12 | .json |
| NBT | 19133 | .nbt |
| SNBT | 19133 | .snbt |
How to use NJJ?
The usage is fairly simple: One can use the other file typed just as json is used. To define a new biome,
one would add a new file called data/<namespace>/worldgen/biome/<filename><suffix>,
for example data/test/worldgen/biome/new_biome.toml or data/test/worldgen/biome/new_biome.xml.
FAQ
Which elements can I use with these file types?
All entries, except structures (the generated .nbt files in data/<namespace>/structures/), can be used with these file types.
Please report all element types, which do not work on the issue tracker
Do these file types work with other mods?
Yes, as long as they either use Forge's data-pack registries system or their ReloadableResourceListeners implement SimpleJsonReloadListener,
which should be the case for most mods.
Again, please report mods which do not work on the issue tracker.
Can I add new file types?
Yes, of course. You can either PR the new file type and they may become part of the mod, or you create an add-on mod which depends on this one.
All you have to do to add a new file type is to register a new FileType in the FileTypeRegistry. The required ResourceKey can be found in FileType#REGISTRY.
How is an ID conflict handled?
An ID Conflict might be the case if you have the same file type, but different suffixes. For example, the /data/<namespace>/worldgen/biome directory might look like this:
.../test.json
.../test.toml
.../test.xml
In case of an ID Conflict, the loader can load all of them, because all their ID would be identical. Therefore, it just uses the alphabetically last suffixed one.
It would use the .../test.xml file in this case.
Can different suffixes override each other?
Yes, you can also override a test.json file with a test.toml one, assuming they're in different data-packs.
For same data-pack handling see the above FAQ.
Where can I get help if I struggle with this mod?
Join our discord (preferred) or write a comment on CurseForge. Please do NOT use the GitHub issue tracker, it's only used for final bug reports.
Available Versions
How to Install NotJustJson on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set forge Loader
In the panel under "Egg", select the forge loader and matching Minecraft version (1.19.2).
Install Mod
Open the mod browser in the dashboard and search for "NotJustJson". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.19.2
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
NotJustJson server crashes on startup – what to do?
Most common cause: wrong forge version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.19.2). You can switch loaders with one click in the panel.
Is NotJustJson compatible with forge?
NotJustJson officially supports forge for Minecraft 1.19.2. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with NotJustJson – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if NotJustJson consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install NotJustJson with just one click on your server.