{"id":24056900,"url":"https://github.com/steve3184/minecraft_lua","last_synced_at":"2026-05-18T00:01:50.096Z","repository":{"id":270073987,"uuid":"909220156","full_name":"Steve3184/minecraft_lua","owner":"Steve3184","description":"Lua Compiler for Minecraft Datapacks","archived":false,"fork":false,"pushed_at":"2024-12-28T07:12:22.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-17T10:39:59.787Z","etag":null,"topics":["compiler","lua","minecraft"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Steve3184.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-12-28T04:05:01.000Z","updated_at":"2024-12-28T07:12:25.000Z","dependencies_parsed_at":"2024-12-28T08:18:49.790Z","dependency_job_id":"dc897fc6-7d7b-41b9-a5cb-a42089deaa4f","html_url":"https://github.com/Steve3184/minecraft_lua","commit_stats":null,"previous_names":["steve3184/minecraft_lua"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Steve3184/minecraft_lua","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Steve3184%2Fminecraft_lua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Steve3184%2Fminecraft_lua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Steve3184%2Fminecraft_lua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Steve3184%2Fminecraft_lua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Steve3184","download_url":"https://codeload.github.com/Steve3184/minecraft_lua/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Steve3184%2Fminecraft_lua/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33160167,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"ssl_error","status_checked_at":"2026-05-17T22:39:10.741Z","response_time":107,"last_error":"SSL_read: 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":["compiler","lua","minecraft"],"created_at":"2025-01-09T05:27:28.409Z","updated_at":"2026-05-18T00:01:50.078Z","avatar_url":"https://github.com/Steve3184.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mclua - Lua Compiler for Minecraft Datapacks\n\nUp to now, the compiler does not have full Lua language support, and there is a variable scope problem, which cannot be used for large-scale projects.\n\nIf you can help with the development, please submit a Pull Request.\n\n## features\n\n- [x] Variable defines (basic types)\n- [x] Function defines (need define types for arguments)\n- [x] Function calls\n- [x] print/command functions (use `command(\"\")` to execute Minecraft commands)\n- [x] String combines (two strings one time)\n- [x] For in/While/Repeat\n- [x] If/Else\n- [ ] advanced math functions\n- [ ] better performance\n- [ ] variable local range\n      ...\n\n## installation\n\non Linux/Mac OS:\n\n```sh\npython3 -m venv .venv\nsource .venv/bin/activate\npip install -r requirements.txt\n```\n\non Windows (PowerShell):\n\n```powershell\nSet-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser\npython -m venv .venv\n.venv\\bin\\activate.ps1\npip install -r requirements.txt\n```\n\nyou need to delete `print(val)` to remove the debug output.\n( at `.venv/lib/python3.*/site-packages/luaparser/ast.py` line 37)\n\n## usage\n\nBuild with:\n\n```sh\n# Compile *.lua to a datapack\n# This toll won't zip the datapack, it only output a directory\npython datapack.py \"input file\" \"output dir\" \"pack id\"\n\n# Compile *.lua to some mcfunction files\npython compile.py \"input file\" \"output dir\" \"pack id\" # pack id is optional\n```\n\nRun in minecraft:\n\n```mcfunction\n/function mclua:util/init_stroage\n/function mclua:util/init_score\n\n/function output:main # replace \"output\" with your pack id\n\n/function mclua:util/remove_stroage\n```\n\n## examples\n\n![Image](example.png)\n\n```lua\na = \"hello world!\"\nfunction hello( arg1__string )\n    aa = \"func:\" + arg1\n    print(aa)\n    return aa\nend\nhello(a)\nc = 123 % 5\nif c == 3 then\n    print(\"right!\")\nelse\n    print(\"wrong!\")\nend\nfor i=0,3,1 do\n    j = str(i)\n    j = \"Counter: \" + j\n    print(j)\nend\nprint(\"mclua demo end\")\n```\n\n### License: [GPL-3.0](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteve3184%2Fminecraft_lua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteve3184%2Fminecraft_lua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteve3184%2Fminecraft_lua/lists"}