{"id":24805313,"url":"https://github.com/macro21kgb/create-datapack","last_synced_at":"2026-02-28T22:04:37.599Z","repository":{"id":172890352,"uuid":"403056225","full_name":"macro21KGB/create-datapack","owner":"macro21KGB","description":"A very simple and easy to use CLI to create the folder structure of your datapacks and generate custom boilerplate code for you","archived":false,"fork":false,"pushed_at":"2025-03-13T19:34:41.000Z","size":896,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-13T06:32:25.146Z","etag":null,"topics":["cli","datapack","datapack-creator","datapacks","generator","mc","mc-function","minecraft","minecraft-datapack","minecraft-tools","modular","programming"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/macro21KGB.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-09-04T12:55:46.000Z","updated_at":"2025-04-19T22:49:24.000Z","dependencies_parsed_at":"2025-10-13T06:32:29.427Z","dependency_job_id":"3c274d3a-60d3-4a47-9043-72c4006766f9","html_url":"https://github.com/macro21KGB/create-datapack","commit_stats":null,"previous_names":["macro21kgb/create-datapack"],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/macro21KGB/create-datapack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macro21KGB%2Fcreate-datapack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macro21KGB%2Fcreate-datapack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macro21KGB%2Fcreate-datapack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macro21KGB%2Fcreate-datapack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/macro21KGB","download_url":"https://codeload.github.com/macro21KGB/create-datapack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macro21KGB%2Fcreate-datapack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29953212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T18:42:55.706Z","status":"ssl_error","status_checked_at":"2026-02-28T18:42:48.811Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cli","datapack","datapack-creator","datapacks","generator","mc","mc-function","minecraft","minecraft-datapack","minecraft-tools","modular","programming"],"created_at":"2025-01-30T07:18:02.230Z","updated_at":"2026-02-28T22:04:32.566Z","avatar_url":"https://github.com/macro21KGB.png","language":"JavaScript","readme":"# Create a Datapack Fast and Easily\n\nThis very simple CLI can generate a default data pack folder structure, while also generating global advancements that allow the pack to integrate with other datapacks.\n\n\u003e **NEW STRUCTURE-GENERATOR MODULE** Added to the available modules\n\n[**You can check the datapack conventions here**](https://ooboomberoo.github.io/mcdatapacks-wiki/conventions/datapack_advancement.html)\n\n## Usage\n\n[**Install nodejs**](https://nodejs.org)\n\nthen type in your **terminal** to install the CLI globally:\n\n```\nnpm i -g @macro21kgb/create-datapack\n```\n\nAfter that you can create a new datapack in the current directory with\n\n```\ncreate-datapack\n```\n\nor\n\n```\nnpx create-datapack\n```\nYou can also see more info with\n```\ncreate-datapack --help\n```\n\n# AVAILABLE MODULES\n\nNow with this command you can access different modules for any occasion\n\n- The **Structure-Generator**, It will generate a structure given from a template (see below), you simply create in the root directory of your datapack, a \"structures\" folder and the structure file (the file are with .mcs extension)\n\n- The **Auto-uninstaller**,It will scan your datapack an create an **uninstall.mcfunction** just for you, (run it in the root directory, where is the pack.mcmeta file)\n\n- The **Summon-Give Convert**, Convert your commands into **give to summon** or **summon to give** (a little bit buggy but it is ok for most thing)\n\n- The **Generator-Sites Module**, This will give you the link of some of my custom generators (floor-crafting and crafting table recipe)\n\n```\ncreate-datapack -m\n\nor \n\ncreate-datapack --modules\n```\n\n# Template System for datapacks template (.mclate)\n\nThe templates are written in a **custom language**, it is very **simple** and **easy to use**, below there is an example of everything you can do:\n\n```\n\u003c###\u003eTest Template \u003c-- name of the template, must be first line\n\n\u003c===functions:load  \u003c-- location of the file : name of the function without extension (auto-added)\nscoreboard objectives add tf_rc dummy\nscoreboard objectives add tf_detection minecraft.used:minecraft.carrot_on_a_stick\n===\u003e\n\n\u003c===functions:main\nexecute as @a[scores={tf_detection=1..}] at @s run say CLICK\nexecute as @a[scores={tf_detection=1..}] at @s run function NAMESPACE:start_raycast\nexecute as @a[scores={tf_detection=1..}] at @s run scoreboard players set @s tf_detection 0\n===\u003e\n\n\u003c===functions/test/subfolder:test  \u003c-- you can create sub-folder easily like that\nsay super duper test\n===\u003e\n\n\u003c===tags/blocks:passable_blocks  \u003c-- NOT only functions!\n{\n  \"values\":[\n    \"minecraft:air\",\n    \"minecraft:void_air\",\n    \"minecraft:cave_air\",\n    \"minecraft:water\",\n    \"minecraft:lava\",\n    \"minecraft:grass\"\n}\n===\u003e\n\n\n```\n\n### Delimiters for the custom template\n\nName of the template\n\n```\n\u003c###\u003eThis is the Name of the Template\n```\n\nFile start and end **markers** (you can obviously create multiple files in a template):\n\n```\n\u003c===file_location/folder:name_of_the_file   \u003c-- start of a file\n\n===\u003e \u003c-- end of the file\n```\n\nWhen executing function and you need the namespace of the datapack, set it like this (use **NAMESPACE**):\n\n```elixir\n\u003c===functions:main\nexecute as @a[scores={tf_detection=1..}] at @s run say CLICK\nexecute as @a[scores={tf_detection=1..}] at @s run function NAMESPACE:start_raycast \u003c-- the namespace is taken automatically\nexecute as @a[scores={tf_detection=1..}] at @s run scoreboard players set @s tf_detection 0\n===\u003e\n```\n\n# Template System for Structures (.mcs)\nThe template syntax is very simple and easy to use, you simply create your structure layer by layer.\n\nThis schematic will create a 3x3 cube of stone with an hole in the middle:\n```\nS S S \u003c-- this is the first layer\nS S S \u003c-- space between each symbol\nS S S\n---   \u003c-- three \"-\", it means to go up one level\nS S S \u003c-- this is the second layer and so on...\nS A S\nS S S\n---\nS S S\nS S S\nS S S\n===   \u003c-- it means that the schematic is finished\nS minecraft:stone \u003c-- symbol block_associated_with\nA minecraft:air\n\n```\nthe structure-generator module will create in the functions folder a new file named \"templatefilenamehere\".mcfunction\n\nAlso, yeah i can do some check and convert some commands in fill, ecc.. but for now is good enough.\n\n## Info\n\nYou can create all possible files with the template system, The **location in the datapack folder structure** part is without error handling so be careful.\n\nAll the folder paths can be found on the [wiki](https://minecraft.fandom.com/wiki/Data_Pack) and as shown in the example you can create sub folders and **extensions are added automatically**\n\n## Where can i found the templates folder?\n\nWhen you are going to use a template, the path to the templates folder will appear inside the CLI, go to the indicated path and add or modify whatever you want.\n\n\n## Bugs or something else?\n\nIf you encounter bugs or some missed features that you want, create a new issue on github, and i will check it out as soon as possible.\n[create-datapack-github](https://github.com/macro21KGB/create-datapack)\n\nIf you want, you can also message me on PMC (Planet Minecaft) website\n\n[My PMC Profile](https://www.planetminecraft.com/member/macro21kgb)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacro21kgb%2Fcreate-datapack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmacro21kgb%2Fcreate-datapack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacro21kgb%2Fcreate-datapack/lists"}