NotJustJson

Quick rating

NotJustJson

No reviews yet

This mod allows the usage of toml, xml, yaml, nbt and snbt file formats for datapacks

Mod Loaders
Forge
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Unsupported
Server Required

About

Project Details

Type
Mod
License
Mozilla Public License 2.0
Authors

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

Modrinth ID

Resources

External Links

About

Description

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.

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Downloads
Last Updated
CurseForge
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works