{"id":15197202,"url":"https://github.com/ancientlore/go-mcpi-api","last_synced_at":"2025-10-28T08:31:39.397Z","repository":{"id":12948389,"uuid":"15626469","full_name":"ancientlore/go-mcpi-api","owner":"ancientlore","description":"A Go library for the Minecraft Raspberry Pi edition API","archived":false,"fork":false,"pushed_at":"2023-02-04T14:04:09.000Z","size":26,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T12:51:16.792Z","etag":null,"topics":["api","golang","minecraft","minecraft-pi-edition","pi","raspberry-pi"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ancientlore.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}},"created_at":"2014-01-04T04:44:09.000Z","updated_at":"2023-02-22T08:17:35.000Z","dependencies_parsed_at":"2023-02-18T17:01:03.964Z","dependency_job_id":null,"html_url":"https://github.com/ancientlore/go-mcpi-api","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ancientlore%2Fgo-mcpi-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ancientlore%2Fgo-mcpi-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ancientlore%2Fgo-mcpi-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ancientlore%2Fgo-mcpi-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ancientlore","download_url":"https://codeload.github.com/ancientlore/go-mcpi-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238623073,"owners_count":19502977,"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","golang","minecraft","minecraft-pi-edition","pi","raspberry-pi"],"created_at":"2024-09-28T00:45:14.331Z","updated_at":"2025-10-28T08:31:39.036Z","avatar_url":"https://github.com/ancientlore.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"go-mcpi-api\n===========\n\n[![GoDoc](https://godoc.org/github.com/ancientlore/go-mcpi-api?status.svg)](https://godoc.org/github.com/ancientlore/go-mcpi-api)\n\nThis library enables you to use the [Minecraft Pi Edition](http://pi.minecraft.net/) API from [Go](http://golang.org/). Each connection uses a single socket and commands are sent over channels, making it safe to use the API from different goroutines.\n\n中文版本README: [用go語言翻轉Minecraft - go-mcpi-api](http://holacode.blogspot.tw/2016/08/go-gominecraft-go-mcpi-api.html)\n\nAlso see [FrozenKP's version](https://github.com/FrozenKP/go-mcpi-api).\n\n## FAQ\n\n**What is MCPI ?** \n\n\u003e MCPI is an API which can let you control Minecraft with code.\n\n\u003e It's original edition was written with python; you can learn it [here](https://github.com/teachthenet/TeachCraft-Challenges).\n\n**Can I using it with a normal edition Minecraft ?**\n\n\u003e Yes, you can. You can refer to [this project](https://github.com/teachthenet/TeachCraft-Server).\n\n## Example\n\n\tvar c mcpiapi.Connection\n\tc.Open(\"192.168.1.115\", \"player1\")\n\tdefer c.Close()\n\n\tgo func() { c.Chat().Post(\"Hello, World!\") }()\n\tgo func() { c.Chat().Post(\"Hello again!\") }()\n\n\terr = c.World().SetBlock(0, 0, 0, mcpiapi.GOLD_BLOCK, 0)\n\tif err != nil {\n\t\tlog.Print(err)\n\t}\n\n## Pocket Edition Information\n\nBlock types are 0-108. See the [Minecraft Wiki](http://www.minecraftwiki.net/wiki/Data_values_(Pocket_Edition)) for information on block values.\n\nBlock data is 0-15, and is used to specify extra characteristics like wool color.\n\nRegarding the coordinate system, (0,0,0) is where the world was spawned and is sea level. (X,Z) represents the ground plane while Y points to the sky.\n\nBe sure and read the [Minecraft Pi Edition](http://pi.minecraft.net/) API speificication which is included in the installation at `mcpi/api/spec/mcpi_protocol_spec.txt`.\n\nThe library includes some utility functions for shapes - more may be added over time.\n\nNOTE: Events have not been tested.\n\n## Installation\n\n    go get github.com/ancientlore/go-mcpi-api\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fancientlore%2Fgo-mcpi-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fancientlore%2Fgo-mcpi-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fancientlore%2Fgo-mcpi-api/lists"}