{"id":21927807,"url":"https://github.com/christopherwk210/bedrock-typings","last_synced_at":"2025-03-22T12:17:48.470Z","repository":{"id":97883219,"uuid":"161265186","full_name":"christopherwk210/bedrock-typings","owner":"christopherwk210","description":"TypeScript definitions for the Minecraft Bedrock Edition Scripting API","archived":false,"fork":false,"pushed_at":"2018-12-11T03:42:57.000Z","size":91,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-27T11:45:22.830Z","etag":null,"topics":["api","bedrock","minecraft","typescript-definitions"],"latest_commit_sha":null,"homepage":null,"language":null,"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/christopherwk210.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":"2018-12-11T02:25:54.000Z","updated_at":"2021-04-08T18:37:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"1fd84e18-2049-442d-aad1-7668e36a9652","html_url":"https://github.com/christopherwk210/bedrock-typings","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christopherwk210%2Fbedrock-typings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christopherwk210%2Fbedrock-typings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christopherwk210%2Fbedrock-typings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christopherwk210%2Fbedrock-typings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/christopherwk210","download_url":"https://codeload.github.com/christopherwk210/bedrock-typings/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244952807,"owners_count":20537474,"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":["api","bedrock","minecraft","typescript-definitions"],"created_at":"2024-11-28T22:17:51.701Z","updated_at":"2025-03-22T12:17:48.463Z","avatar_url":"https://github.com/christopherwk210.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eBedrock Typings\u003c/h1\u003e\n\u003ch2\u003eTypeScript definitions for the Minecraft Bedrock Edition Scripting API\u003c/h2\u003e\n\nThis allows you to have code autocompletion in modern code editors (like Visual Studio Code) when working with the Minecraft Bedrock Edition Scripting language. All definitions were derived from the [official wiki](https://minecraft.gamepedia.com/Bedrock_Beta_Script_Documentation#Entity_Queries).\n\n## Usage\n\nDownload the `bedrock.d.ts` from this repo ([right click this and save-as](https://raw.githubusercontent.com/christopherwk210/bedrock-typings/master/bedrock.d.ts)) and put it into your current scripting project folder.\n\nYour project structure may look something like this:\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./scrn.png\" alt=\"project-view\" /\u003e\n\u003c/p\u003e\n\nOpen up any script you want to use these typings in, and copy this into the very top line of that script:\n\n```\n/// \u003creference path=\"../../bedrock.d.ts\" /\u003e\n```\nEach `../` represents going upwards one directory. Depending on your project structure, you may need to modify the path to correctly point to where you saved `bedrock.d.ts`.\n\nOnce that's done, add this **directly** above where you call `.registerSystem()` like this:\n```js\n/** @type {Bedrock.System} */\nvar clientSystem = client.registerSystem(0, 0);\n```\nor\n```js\n/** @type {Bedrock.System} */\nvar serverSystem = server.registerSystem(0, 0);\n```\n\nThat's it! You may have to restart your editor for the changes to take effect. Now when you type `clientSystem.` you'll see autocomplete suggestions.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./scrn2.png\" alt=\"autocomplete\" /\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristopherwk210%2Fbedrock-typings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchristopherwk210%2Fbedrock-typings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristopherwk210%2Fbedrock-typings/lists"}