Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Yurihaia/mc-nbtdoc
Machine and human readable documentation for all of Minecraft's in game NBT data, written in the format described by https://github.com/Yurihaia/nbtdoc-rs
https://github.com/Yurihaia/mc-nbtdoc
Last synced: about 1 month ago
JSON representation
Machine and human readable documentation for all of Minecraft's in game NBT data, written in the format described by https://github.com/Yurihaia/nbtdoc-rs
- Host: GitHub
- URL: https://github.com/Yurihaia/mc-nbtdoc
- Owner: Yurihaia
- License: other
- Created: 2019-09-30T14:30:01.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-01T11:16:09.000Z (9 months ago)
- Last Synced: 2024-08-04T04:06:27.326Z (5 months ago)
- Language: Python
- Homepage:
- Size: 5.85 MB
- Stars: 51
- Watchers: 4
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mcc - mc-nbtdoc - partially-automatic updating repository of version-controlled history of Minecraft nbt schemas including entities, blocks, & items utilizing a generated Fabric mod & manual labor (Uncategorized / Uncategorized)
README
# MC-NBTDOC
`mc-nbtdoc` is a repository for schemas of Minecraft's NBT format,
including entities, blocks, and items.## Validation
The main point of these docs is to provide a way for language services
(such as [mcfunction-rs](https://github.com/Levertion/mcfunction-rs))
to be able to give in depth and complete information about a certain NBT tag.
Validation can be a tricky process, but should be much simpler than in
[mc-nbt-paths](https://github.com/Yurihaia/mc-nbt-paths). Each compound tag is
described in its own definition, which looks similar to Rust's struct definitions.
For values which can take only certain values, an `enum` can be used.
Doc comments, which show the description of certain objects start with `///`. Regular comments
start with `//`. Doc comments are valid before `compound` and `enum` definitions, and on their fields.
For more information on validation, the [validation.md](https://github.com/Yurihaia/nbtdoc-rs/blob/master/docs/validation.md)
file can server as a reference point.### Needed Registries
To have a complete validation, the registries specified in [REGISTRY_LIST.md](REGISTRY_LIST.md) should be included.
Any registries which cannot be accessed should just be validation as a string conforming to the resource location
format.## Versioning
All of the data in this repo is under a strict versioning scheme. For each Minecraft release, snapshot, and pre-release, a
new tag is added to the repo with the name found in the
[version_manifest.json](https://piston-meta.mojang.com/mc/game/version_manifest.json) file.
If any problems are found in the repo, the changes will not be moved under the version tag until the next version tag. The
only exception is for releases, all critical bugs found will be corrected as soon as possible, and the tag will be updated
to match. Any non-critical bugs will not trigger a new tag update, but will still be committed to `master`. While it is
discouraged to move a tag, this will happen when nescessary. Any non-data changes to this repository will never trigger an
update to a tag.## Format
The repo [nbtdoc-rs](https://github.com/Yurihaia/nbtdoc-rs)
should serve as the main reference point for any offshoots of parser,
and an official grammar definition will be put here soon.
The documentation of the format can be found [here](https://github.com/Yurihaia/nbtdoc-rs/blob/master/docs/format.md).
This is a best-effort documentation, and is not the official documentation to go by, but it *should* be accurate.### Serialized Formats
In case of users that do not have a library to parse and resolve the data, serialized forms of the data have been made
available in the [generated](https://github.com/Yurihaia/mc-nbtdoc/tree/generated) branch of this repository. The version
tags to that branch will match the version tags described [above](#versioning), with `-gen` appended on to the version from
the official version manifest. All of the generated files will be located in the `build` directory, each with the name of
`generated.`, and `generated.pretty.`, where `` is the specified extension. The `.pretty` file contains
pretty printed data when applicable.
The current extensions are:
* `.json` (with pretty printing)The format for the serialized data can be quite counterintuitive, so a TypeScript declaration file for the format can be
found at [json_format.d.ts](https://github.com/Yurihaia/nbtdoc-rs/blob/master/docs/json_format.d.ts). While this data is
especially useful for the JSON data, it should generally apply to all other serialized forms.## GitHub Workflows
| Name | Description | Status |
| ------------------ | -------------------------------------------------------------------------------------------------- | ------------------------------------ |
| Test and Serialize | Test the latest commit in `master` branch, and update `generated` branch with the serialized data. | ![Test and Serialize][test-workflow] |
| Tick | Update `master` branch for new Minecraft releases automatically. | ![Tick][spyglass-tick-workflow] |[test-workflow]: https://github.com/Yurihaia/mc-nbtdoc/workflows/Test%20and%20Serialize/badge.svg
[spyglass-tick-workflow]: https://github.com/Yurihaia/mc-nbtdoc/workflows/Tick/badge.svg## Contributing
Help on this repo is welcomed and encouraged, but make sure you follow the style guidelines at
[CONTRIBUTING](CONTRIBUTING.md).