{"id":30739248,"url":"https://github.com/phoenixr-codes/tree-sitter-mcfunction","last_synced_at":"2026-05-15T12:06:44.418Z","repository":{"id":311612937,"uuid":"1044283077","full_name":"phoenixr-codes/tree-sitter-mcfunction","owner":"phoenixr-codes","description":"Work in progress tree-sitter grammar for MCBE mcfunction syntax","archived":false,"fork":false,"pushed_at":"2025-10-06T16:52:32.000Z","size":1454,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-06T18:38:19.054Z","etag":null,"topics":["editor-plugin","mcfunction","mcfunction-language","minecraft","minecraft-bedrock","minecraft-bedrock-edition","tree-sitter"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/phoenixr-codes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","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":"2025-08-25T13:01:39.000Z","updated_at":"2025-10-06T16:52:37.000Z","dependencies_parsed_at":"2025-08-25T15:28:56.282Z","dependency_job_id":"dcb0fefe-50d2-413b-baeb-059b0246cd8a","html_url":"https://github.com/phoenixr-codes/tree-sitter-mcfunction","commit_stats":null,"previous_names":["phoenixr-codes/tree-sitter-mcfunction"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/phoenixr-codes/tree-sitter-mcfunction","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phoenixr-codes%2Ftree-sitter-mcfunction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phoenixr-codes%2Ftree-sitter-mcfunction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phoenixr-codes%2Ftree-sitter-mcfunction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phoenixr-codes%2Ftree-sitter-mcfunction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phoenixr-codes","download_url":"https://codeload.github.com/phoenixr-codes/tree-sitter-mcfunction/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phoenixr-codes%2Ftree-sitter-mcfunction/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33066157,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"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":["editor-plugin","mcfunction","mcfunction-language","minecraft","minecraft-bedrock","minecraft-bedrock-edition","tree-sitter"],"created_at":"2025-09-03T23:00:41.325Z","updated_at":"2026-05-15T12:06:44.413Z","avatar_url":"https://github.com/phoenixr-codes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003etree-sitter-mcfunction\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n    \u003cimg width=\"35%\" alt=\"Logo\" src=\"./assets/logo.png\" /\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003ccode\u003emcfunction\u003c/code\u003e grammar for \u003ca href=\"https://github.com/tree-sitter/tree-sitter\"\u003etree-sitter\u003c/a\u003e.\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"Preview\" src=\"./assets/preview.png\" /\u003e\n\u003c/p\u003e\n\n\u003e [!NOTE]\n\u003e This grammar is designed for Minecraft Bedrock Edition commands and not Java\n\u003e Edition commands.\n\n\u003e [!IMPORTANT]\n\u003e This project is still in development. The installation process will be\n\u003e simplified as soon as the grammar is considered stable.\n\n## Features\n\n- ✅ **All** commands\n- ✅ Good query highlights (e.g. `if` is highlighted as a conditional keyword,\n  `help` is highlighted as a debug keyword, ...)\n- ✅ Selectors (e.g. `@a[r=3]`)\n- ✅ JSON (used for \"raw text\" in `tellraw` and `titleraw`)\n- ✅ Comments\n- ✅ Markup/Formatting (e.g. `§a`)\n- ✅ Emojis (e.g. `:heart:`)\n\n## Editor Integration\n\n\u003e [!TIP]\n\u003e For full compability, also make sure to have Tree-sitter grammar installed for\n\u003e JSON.\n\n```sh\ngit clone https://github.com/phoenixr-codes/tree-sitter-mcfunction.git\ncd tree-sitter-mcfunction\n```\n\n### Neovim\n\n\u003e [!NOTE]\n\u003e See also: \u003chttps://github.com/nvim-treesitter/nvim-treesitter?tab=readme-ov-file#adding-parsers\u003e\n\n```lua\nlocal parsers = require(\"nvim-treesitter.parsers\").get_parser_configs()\n\nparsers.mcfunction = {\n  install_info = {\n    url = \"https://github.com/phoenixr-codes/tree-sitter-mcfunction.git\",\n    files = { \"src/parser.c\" },\n    branch = \"main\",\n  },\n}\n```\n\n```sh\nmkdir -p ~/.config/nvim/queries/mcfunction\nln queries/*.scm ~/.config/nvim/queries/mcfunction\n```\n\n### Helix\n\n\u003e [!IMPORTANT]\n\u003e Because Helix does not support language version 15, you need to use the\n\u003e `helix` branch.\n\n```toml\n# ~/.config/helix/languages.toml\n\n[[grammar]]\nname = \"mcfunction\"\nsource = { git = \"https://github.com/phoenixr-codes/tree-sitter-mcfunction\", rev = \"\u003cLATEST COMMIT HASH OF `helix` BRANCH\u003e\" }\n\n[[language]]\nscope = \"source.mcfunction\"\nname = \"mcfunction\"\nfile-types = [\"mcfunction\"]\nroots = [\"manifest.json\"]\ncomment-token = \"#\"\n```\n\n```sh\nhx --grammar fetch\nhx --grammar build\nmkdir -p ~/.config/helix/runtime/queries/mcfunction\nln queries/*.scm ~/.config/helix/runtime/queries/mcfunction\n```\n\n## References\n\n- [Official list of commands and their syntax](https://github.com/MicrosoftDocs/minecraft-creator/tree/main/creator/Commands/commands)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphoenixr-codes%2Ftree-sitter-mcfunction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphoenixr-codes%2Ftree-sitter-mcfunction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphoenixr-codes%2Ftree-sitter-mcfunction/lists"}