{"id":16123507,"url":"https://github.com/jlchntoz/mcds-convert","last_synced_at":"2026-01-21T14:09:17.581Z","repository":{"id":49623254,"uuid":"241696229","full_name":"JLChnToZ/mcds-convert","owner":"JLChnToZ","description":"Converts a single data file to zipped Minecraft datapack or reverse.","archived":false,"fork":false,"pushed_at":"2023-01-24T03:50:00.000Z","size":200,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T20:18:24.689Z","etag":null,"topics":["json","minecraft","minecraft-datapack","nodejs","yaml"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JLChnToZ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-19T18:38:59.000Z","updated_at":"2021-03-30T21:06:00.000Z","dependencies_parsed_at":"2023-01-24T12:31:10.665Z","dependency_job_id":null,"html_url":"https://github.com/JLChnToZ/mcds-convert","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JLChnToZ%2Fmcds-convert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JLChnToZ%2Fmcds-convert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JLChnToZ%2Fmcds-convert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JLChnToZ%2Fmcds-convert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JLChnToZ","download_url":"https://codeload.github.com/JLChnToZ/mcds-convert/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247696609,"owners_count":20981048,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["json","minecraft","minecraft-datapack","nodejs","yaml"],"created_at":"2024-10-09T21:16:59.576Z","updated_at":"2026-01-21T14:09:17.575Z","avatar_url":"https://github.com/JLChnToZ.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minecraft Data File to DataPack Converter\n\nThis is a simple utility that transforms a single \"data file\" into zipped Minecraft datapack or reverse,\nmake easier to edit/create.\nThe data file could be either JSON format or YAML format.\n\nThe structure of the data file looks like this (in JSON form, YAML is similar):\n```js\n{\n  \"pack\": {\n    \"version\": 1,\n    \"description\": \"Meta data written inside pack.mcmeta\"\n  },\n  \"functions\": {\n    \"namespace:path/to/function\": [\n      // the content of .mcfunction file here.\n      // It can be array of string (one command per entry),\n      // or plain string contents.\n    ],\n    // Any path starts with # indicates this is a tag definition\n    // (As in references of commands)\n    \"#namespace:path/to/sometag\": {\n      \"values\": [\n        // Tags can be here too\n      ]\n    }\n  },\n  // Below are all supported categories\n  // To define, just embed the JSON data as the value of the namespaced ID.\n  \"advancements\": {\n    // Advancements\n  },\n  \"loot_tables\": {\n    // Loot Tables\n  },\n  \"predicates\": {\n    // Predicates\n  },\n  \"receipes\": {\n    // Receipes\n  },\n  \"structures\": {\n    // Structures (experimental), may be one of following:\n    // - URL (can be in file/http(s)/data URI scheme)\n    // - File path (can be absolute/relative/local/remote)\n    // - Stringified NBT string (The format used in commands)\n    // - Raw binary tag (YAML only)\n  },\n  \"dimension_type\": {\n    // Dimension types (\u003e= 1.16.2)\n  },\n  \"dimension\": {\n    // Dimension data (\u003e= 1.16.2)\n  },\n  \"worldgen/biome\": {\n    // World Generator Specific Definitions (\u003e= 1.16.2)\n  },\n  \"worldgen/configured_carver\": {\n    // World Generator Specific Definitions (\u003e= 1.16.2)\n  },\n  \"worldgen/configured_feature\": {\n    // World Generator Specific Definitions (\u003e= 1.16.2)\n  },\n  \"worldgen/configured_structure_feature\": {\n    // World Generator Specific Definitions (\u003e= 1.16.2)\n  },\n  \"worldgen/configured_surface_builder\": {\n    // World Generator Specific Definitions (\u003e= 1.16.2)\n  },\n  \"worldgen/noise_settings\": {\n    // World Generator Specific Definitions (\u003e= 1.16.2)\n  },\n  \"worldgen/processor_list\": {\n    // World Generator Specific Definitions (\u003e= 1.16.2)\n  },\n  \"worldgen/template_pool\": {\n    // World Generator Specific Definitions (\u003e= 1.16.2)\n  },\n  \"blocks\": {\n    // Tag Definitions for Blocks\n  },\n  \"entity_types\": {\n    // Tag Definitions for Entity Types\n  },\n  \"fluids\": {\n    // Tag Definitions for Fluids\n  },\n  \"items\": {\n    // Tag Definitions for Item tags\n  }\n}\n```\n\n## CLI Usage\n\nIt 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.\n\n```sh\n$ mcds pack datafile.json ~/.minecraft/saves/world/datapack/somedatapack.zip\n```\n\n```sh\n$ mcds unpack ~/.minecraft/saves/world/datapack/somedatapack.zip datafile.yml\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlchntoz%2Fmcds-convert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjlchntoz%2Fmcds-convert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlchntoz%2Fmcds-convert/lists"}