{"id":16274977,"url":"https://github.com/sv443/computercrafthttpexample","last_synced_at":"2025-04-08T16:20:37.301Z","repository":{"id":97407409,"uuid":"327165028","full_name":"Sv443/ComputerCraftHttpExample","owner":"Sv443","description":"An example of how to communicate between the Minecraft mod ComputerCraft and a server","archived":false,"fork":false,"pushed_at":"2021-01-06T01:28:05.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T12:53:13.391Z","etag":null,"topics":["computercraft","http","lua","minecraft"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/Sv443.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2021-01-06T01:24:34.000Z","updated_at":"2021-01-06T03:04:41.000Z","dependencies_parsed_at":"2023-03-04T05:45:35.060Z","dependency_job_id":null,"html_url":"https://github.com/Sv443/ComputerCraftHttpExample","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sv443%2FComputerCraftHttpExample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sv443%2FComputerCraftHttpExample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sv443%2FComputerCraftHttpExample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sv443%2FComputerCraftHttpExample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sv443","download_url":"https://codeload.github.com/Sv443/ComputerCraftHttpExample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247877963,"owners_count":21011158,"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":["computercraft","http","lua","minecraft"],"created_at":"2024-10-10T18:31:17.389Z","updated_at":"2025-04-08T16:20:37.277Z","avatar_url":"https://github.com/Sv443.png","language":"JavaScript","readme":"### Proof of Concept - ComputerCraft HTTP Requests\nThis is a simple Node.js server and client code for the ComputerCraft Minecraft mod, which shows how they can communicate with each other.  \n\n\u003cbr\u003e\n\n## Setup:\n1. Clone this repo, then run the server code (install Node.js, then run `node index`)\n    - This has to run behind a domain and be available in the clearnet\n    - Default port is `1337`, change it at the top of `index.js`\n2. To install the client-side program in Minecraft, use this command in a computer: `pastebin get cpnZfbu2 httptest`\n3. Run `edit httptest` and change the variables at the top to match your setup\n    - Changing `reqBod` to a number will make the server return the factorial of the number\n    - Changing `reqBod` to a string will make the server encode your entered text with base64 and return it\n    - Removing `reqBod` completely or entering an invalid value will make the server respond with its current time\n4. Run the command `httptest` in game to execute the client-side program\n\n\u003cbr\u003e\n\n## License:\nThis code is licensed under the [MIT license](https://sv443.net/LICENSE)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsv443%2Fcomputercrafthttpexample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsv443%2Fcomputercrafthttpexample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsv443%2Fcomputercrafthttpexample/lists"}