Minecraft Data File to DataPack Converter
This is a simple utility that transforms a single "data file" into zipped Minecraft datapack or reverse,
make easier to edit/create.
The data file could be either JSON format or YAML format.
The structure of the data file looks like this (in JSON form, YAML is similar):
{
"pack": {
"version": 1,
"description": "Meta data written inside pack.mcmeta"
},
"functions": {
"namespace:path/to/function": [
],
"#namespace:path/to/sometag": {
"values": [
]
}
},
"advancements": {
},
"loot_tables": {
},
"predicates": {
},
"receipes": {
},
"structures": {
},
"dimension_type": {
},
"dimension": {
},
"worldgen/biome": {
},
"worldgen/configured_carver": {
},
"worldgen/configured_feature": {
},
"worldgen/configured_structure_feature": {
},
"worldgen/configured_surface_builder": {
},
"worldgen/noise_settings": {
},
"worldgen/processor_list": {
},
"worldgen/template_pool": {
},
"blocks": {
},
"entity_types": {
},
"fluids": {
},
"items": {
}
}
CLI Usage
It is pending to be submitted on to NPM, in the mean while, clone the repository, setup the npm environment and call node /path/to/repository
instead.
$ mcds pack datafile.json ~/.minecraft/saves/world/datapack/somedatapack.zip
$ mcds unpack ~/.minecraft/saves/world/datapack/somedatapack.zip datafile.yml
License
MIT