{"id":22366573,"url":"https://github.com/microsoft/sound-and-music-minecraft-makecode-ext","last_synced_at":"2026-02-18T14:36:07.899Z","repository":{"id":65976197,"uuid":"537217320","full_name":"microsoft/sound-and-music-minecraft-makecode-ext","owner":"microsoft","description":"Code with Sound and Music in Minecraft: Education Edition. Adds blocks to play game sounds, music discs, and note block sounds from your code projects!","archived":false,"fork":false,"pushed_at":"2022-11-21T22:37:24.000Z","size":89,"stargazers_count":1,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-02-14T09:30:46.484Z","etag":null,"topics":["makecode","minecraft","pxt","sound"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/microsoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null}},"created_at":"2022-09-15T21:51:56.000Z","updated_at":"2023-04-19T11:59:34.000Z","dependencies_parsed_at":"2023-02-19T19:25:16.225Z","dependency_job_id":null,"html_url":"https://github.com/microsoft/sound-and-music-minecraft-makecode-ext","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/microsoft/sound-and-music-minecraft-makecode-ext","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fsound-and-music-minecraft-makecode-ext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fsound-and-music-minecraft-makecode-ext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fsound-and-music-minecraft-makecode-ext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fsound-and-music-minecraft-makecode-ext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microsoft","download_url":"https://codeload.github.com/microsoft/sound-and-music-minecraft-makecode-ext/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fsound-and-music-minecraft-makecode-ext/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29582318,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T13:56:48.962Z","status":"ssl_error","status_checked_at":"2026-02-18T13:54:34.145Z","response_time":162,"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":["makecode","minecraft","pxt","sound"],"created_at":"2024-12-04T18:14:09.526Z","updated_at":"2026-02-18T14:36:02.891Z","avatar_url":"https://github.com/microsoft.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sound and Music MakeCode extension for Minecraft: Education Edition\n\n\u003e Open this page at [https://microsoft.github.io/sound-and-music-minecraft-makecode-ext/](https://microsoft.github.io/sound-and-music-minecraft-makecode-ext/)\n\n## Use the extension in Minecraft\n\n* open [Minecraft: Education Edition](https://education.minecraft.net/) and log in\n* create or join a world (\"Code Builder\" must be enabled under the \"Classroom\" world settings)\n* open the code builder (by default, the \"c\" key)\n* click on **New Project**\n* click on **Extensions** in the left menu\n* search for **https://github.com/microsoft/sound-and-music-minecraft-makecode-ext#main** and import\n\nThe left menu should now contain a new **Music** category!\n\n## Block documentation\n\n### `playMusic(builtInMusicDisc, musicOption)`\n\nPlay a Minecraft music disc.\n\nExamples:\n\n```ts\nplayMusic(MusicDisc.Eleven, MusicOption.Once);\nplayMusic(MusicDisc.Otherside, MusicOption.Forever);\n```\n\nAvailable `MusicDisc`s include:\n\n* Eleven\n* Thirteen\n* Blocks\n* Cat\n* Chirp\n* Far\n* Mall\n* Mellohi\n* Stal\n* Strad\n* Wait\n* Ward\n* Otherside\n* Pigstep\n\nAvailable `MusicOption`s include:\n\n* Once\n* Forever\n\n### `stopMusic()`\n\nStop the music.\n\nExample:\n```ts\nstopMusic();\n```\n\n### `playSound(sound)`\n\nPlays the specified Minecraft game sound.\n\nExamples:\n\n```ts\nplaySound(Sound.CatMeow);\nplaySound(Sound.Firework);\n```\n\nAvailable `Sound`s include:\n\n* Blaze\n* BucketSplash\n* CatHiss\n* CatMeow\n* CatPurr\n* CatPurreow\n* Chicken\n* Click\n* Cow\n* Creeper\n* Dolphin\n* Drink\n* Drowned\n* Eat\n* ElderGuardian\n* Endermen\n* Explode\n* FallDamage\n* Fire\n* Firework\n* FireworkLarge\n* FireworkTwinkle\n* Fizz\n* Fuse\n* Ghast\n* Horse\n* Hurt\n* LevelUp\n* LightningImpact\n* Llama\n* Pig\n* PlayerAttack\n* PlayerDie\n* PlayerHurt\n* Rain\n* Sheep\n* Skeleton\n* Slime\n* Spider\n* Splash\n* Thunder\n* Totem\n* Trident\n* VillagerHaggle\n* VillagerNo\n* VillagerYes\n* WolfBark\n* WolfGrowl\n* WolfWhine\n* Zombie\n\n### `playNote(note, instrument)`\n\nPlays the specified note on the specified Minecraft instrument, as if it was played on a note block.\n\nMinecraft can play notes from Low F# (`Note.FSharp3`) to High F# (`Note.FSharp5`).\n\nExamples:\n\n```ts\nplayNote(Note.E4, Instrument.Harp);\nplayNote(Note.FSharp4, Instrument.Banjo);\n```\n\nAvailable `Instrument`s include:\n\n* Harp\n* Bass\n* SnareDrum\n* HiHat\n* BassDrum\n* Bell\n* Flute\n* Chime\n* Guitar\n* Xylophone\n* Vibraphone\n* CowBell\n* Didgeridoo\n* Bit\n* Banjo\n* Pling\n\n### `setVolume(newVolume)`\n\nChanges the volume that `playSound` and `playNote` will play at.\n\nVolumes can range from 0 to 100 and starts at 100.\n\nThis is *separate* from all Minecraft audio settings. It only affects the other blocks provided by this extension.\n\nExamples:\n\n```ts\nsetVolume(0); // mute\nsetVolume(100); // max volume\n```\n\n### `volume()`\n\nReturns the volume previously set by `setVolume`.\n\nExamples:\n\n```ts\nvolume(); // returns 100 by default\nsetVolume(50);\nvolume(); // now returns 50\n```\n\n## Test the extension in a browser\n\nThis repository can be added as an **extension** in the MakeCode online editor (outside of Minecraft). *None of the functionality will work outside of Minecraft*, but this is a quick way to test out what the MakeCode blocks will look like without loading up the game.\n\n* open [https://minecraft.makecode.com/](https://minecraft.makecode.com/)\n* click on **New Project**\n* click on **Extensions** under the gearwheel menu\n* search for **https://github.com/microsoft/sound-and-music-minecraft-makecode-ext#main** and import\n\n## Edit this project\n\nTo edit this repository in MakeCode:\n\n* open [https://minecraft.makecode.com/](https://minecraft.makecode.com/)\n* click on **Import** then click on **Import URL**\n* paste **https://github.com/microsoft/sound-and-music-minecraft-makecode-ext#main** and click import\n\n## Contributing\n\nThis project welcomes contributions and suggestions.  Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.\n\nWhen you submit a pull request, a CLA bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\n## Trademarks\n\nThis project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft \ntrademarks or logos is subject to and must follow \n[Microsoft's Trademark \u0026 Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).\nUse of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.\nAny use of third-party trademarks or logos are subject to those third-party's policies.\n\n#### Metadata (used for search, rendering)\n\n* for PXT/minecraft\n\u003cscript src=\"https://makecode.com/gh-pages-embed.js\"\u003e\u003c/script\u003e\u003cscript\u003emakeCodeRender(\"{{ site.makecode.home_url }}\", \"{{ site.github.owner_name }}/{{ site.github.repository_name }}\");\u003c/script\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Fsound-and-music-minecraft-makecode-ext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrosoft%2Fsound-and-music-minecraft-makecode-ext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Fsound-and-music-minecraft-makecode-ext/lists"}