{"id":21105109,"url":"https://github.com/storycraft/mcslib","last_synced_at":"2025-10-18T18:35:53.696Z","repository":{"id":263235188,"uuid":"889756323","full_name":"storycraft/mcslib","owner":"storycraft","description":"Minecraft command script library","archived":false,"fork":false,"pushed_at":"2024-12-21T16:05:57.000Z","size":20304,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T03:47:29.925Z","etag":null,"topics":["minecraft","minecraft-commands","script"],"latest_commit_sha":null,"homepage":"","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/storycraft.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-17T06:24:47.000Z","updated_at":"2024-12-21T16:06:00.000Z","dependencies_parsed_at":"2024-12-10T08:29:48.046Z","dependency_job_id":null,"html_url":"https://github.com/storycraft/mcslib","commit_stats":null,"previous_names":["storycraft/mcslib"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/storycraft%2Fmcslib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/storycraft%2Fmcslib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/storycraft%2Fmcslib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/storycraft%2Fmcslib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/storycraft","download_url":"https://codeload.github.com/storycraft/mcslib/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248662716,"owners_count":21141620,"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":["minecraft","minecraft-commands","script"],"created_at":"2024-11-20T00:03:34.038Z","updated_at":"2025-10-18T18:35:53.648Z","avatar_url":"https://github.com/storycraft.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NPM Version (with dist tag)](https://img.shields.io/npm/v/mcslib/latest)](https://www.npmjs.com/package/mcslib)\n# `mcslib`: Minecraft command script library\n`mcslib` is structural programming language coded using javascript, compiles into minecraft datapack.\n\nAbout language guide, see [guide.md](./guide.md) (in progress)\n\nAbout language reference, see [reference.md](./reference.md) (in progress)\n\n## Template\nSee https://github.com/storycraft/mcslib-template\n\n## Project milestone\n - [x] Expression template literal lexer and parser\n - [x] Number type\n - [x] String type\n - [x] Builtin types and methods(static dispatch)\n - [ ] Reference types\n - [ ] Function, object, array types\n - [ ] Closure and coroutine\n - [x] IR lowering\n - [x] Command template literal parser\n - [x] Execute commands using variable value\n - [x] Store command result into variable\n - [ ] IR optimization (in progress)\n   - [x] Loop optimization\n   - [x] Branch prediction\n   - [x] Constant folding\n - [ ] Codegen optimization (in progress)\n   - [x] Optimized memory placement\n   - [ ] Dead code elimination (partial)\n\n## Example\nCompile example datapack using\n```bash\nnpm start --example=build\n```\nRun datapack with `intrinsics_datapack`\n\n### example:draw_star\nDemonstration of string concatenation\n\nSource code in `examples/draw-star.ts`\n![Draw star example preview](./assets/draw_star.png)\n\n### example:cube_particle\nDemonstration of running particle command using variable value\n\nSource code in `examples/cube-particle.ts`\n![Cube particle example preview](./assets/cube_particle.png)\n\n### example:poll\nDemonstration of running command using command output\n\nSource code in `examples/poll.ts`\n![poll example preview](./assets/poll.png)\n\n### example:string_methods, example:number_methods\nDemonstration of running builtin methods\n\nSource code in `examples/methods.ts`\n![poll example preview](./assets/methods.png)\n\n## License\nmcslib and project resources are licensed under MIT license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstorycraft%2Fmcslib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstorycraft%2Fmcslib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstorycraft%2Fmcslib/lists"}