{"id":23557708,"url":"https://github.com/legopitstop/build-mcpack-action","last_synced_at":"2026-04-27T20:31:23.680Z","repository":{"id":268973442,"uuid":"906029372","full_name":"legopitstop/build-mcpack-action","owner":"legopitstop","description":"This action compiles your addon or pack into an installable file.","archived":false,"fork":false,"pushed_at":"2024-12-29T23:01:54.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-16T00:41:29.769Z","etag":null,"topics":["action","bedrock","build","mcpack","minecraft","publish"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/build-mcpack-action","language":"Python","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/legopitstop.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["legopitstop"],"patreon":"Legopitstop","open_collective":null,"ko_fi":"legopitstop","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2024-12-20T02:37:48.000Z","updated_at":"2024-12-29T23:03:39.000Z","dependencies_parsed_at":"2024-12-20T04:18:30.234Z","dependency_job_id":"6e2a0f86-141b-4bfb-86ec-e826bd6b778d","html_url":"https://github.com/legopitstop/build-mcpack-action","commit_stats":null,"previous_names":["legopitstop/build-mcpack-action"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/legopitstop/build-mcpack-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/legopitstop%2Fbuild-mcpack-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/legopitstop%2Fbuild-mcpack-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/legopitstop%2Fbuild-mcpack-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/legopitstop%2Fbuild-mcpack-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/legopitstop","download_url":"https://codeload.github.com/legopitstop/build-mcpack-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/legopitstop%2Fbuild-mcpack-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32354564,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["action","bedrock","build","mcpack","minecraft","publish"],"created_at":"2024-12-26T15:16:19.005Z","updated_at":"2026-04-27T20:31:23.663Z","avatar_url":"https://github.com/legopitstop.png","language":"Python","funding_links":["https://github.com/sponsors/legopitstop","https://patreon.com/Legopitstop","https://ko-fi.com/legopitstop"],"categories":[],"sub_categories":[],"readme":"# build mcpack action\n\nThis action compiles your addon or pack into an installable file.\n\n## Features\n\n- Customize the name of the generated artifact using patterns.\n- Automatically creates a `contents.json` file listing all files included in the pack.\n- Minifies all JSON files to reduce file size.\n- Handles behavior packs, resource packs, and skin packs.\n- Enable detailed logging for debugging purposes.\n\n## Usage\n\nYour YML file in `.github/workflows`\n\n```yml\nname: Build and Publish MCPACK\n\non:\n  # Run this workflow manually from the Actions tab\n  workflow_dispatch:\n\npermissions:\n  packages: write\n  contents: write\n  id-token: write\n\njobs:\n  # Build job\n  build:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout code\n        uses: actions/checkout@v4\n\n      - name: Bundle and create release.\n        id: custom_action\n        uses: legopitstop/build-mcpack-action@v1\n        with:\n          buildScript: \"build.py\"\n          input: src/\n          output: dist/\n          outputPattern: \"NAME_ABBR-VERSION.mcpack\"\n```\n\nWith a reposotry structed like:\n\n```txt\n📃build.py\n📁src/\n├── 📁behavior_pack/\n│   └── 📃manifest.json\n├── 📁resource_pack/\n│   └── 📃manifest.json\n└── 📁skin_pack/\n    └── 📃manifest.json\n```\n\n## Build Script\n\nAn example build script. This is where you can automate things like generating loot tables or recipes using Python with [mcaddon](https://pypi.org/project/mcaddon/).\n\n```Python\n# File: build.py\nfrom argparse import ArgumentParser\n\n\ndef build():\n    parser = ArgumentParser()\n    parser.add_argument(\"--example\", action=\"store_true\")\n\n    args = parser.parse_args()\n\n    log.info(\"Starting pack build with args: %s\", args)\n\n    # Adds output.txt to behavior pack\n    with open('behavior_pack/output.txt', 'w') as fd:\n      fd.write('Hello, World!')\n```\n\n## inputs\n\n| Name            | Type   | Description                                    |\n| --------------- | ------ | ---------------------------------------------- |\n| `buildScript`   | String | The python script to build your addon, if any. |\n| `input`         | String | The directory to look for packs.               |\n| `output`        | String | The directory to place the built artifacts     |\n| `outputPattern` | String | The name of the compiled file.                 |\n\n## outputs\n\n| Name    | Type   | Description                                             |\n| ------- | ------ | ------------------------------------------------------- |\n| `packs` | String | JSON array containing the metadata of all bundled packs |\n\n## Pack Metadata\n\n| Name      | Type   | Description                | Examples                 |\n| --------- | ------ | -------------------------- | ------------------------ |\n| `uuid`    | String | The packs UUID             |                          |\n| `version` | String | The packs version          |                          |\n| `type`    | String | The type of pack           | behavior, resource, skin |\n| `name`    | String | The packs name             |                          |\n| `abbr`    | String | The abbreviated pack type. | BP, RP, SP               |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flegopitstop%2Fbuild-mcpack-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flegopitstop%2Fbuild-mcpack-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flegopitstop%2Fbuild-mcpack-action/lists"}