{"id":18991340,"url":"https://github.com/mt-mods/soundblock","last_synced_at":"2026-04-14T10:30:17.722Z","repository":{"id":103957582,"uuid":"184018968","full_name":"mt-mods/soundblock","owner":"mt-mods","description":null,"archived":false,"fork":false,"pushed_at":"2020-12-21T10:01:16.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-03-04T00:19:56.528Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","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/mt-mods.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"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}},"created_at":"2019-04-29T07:10:57.000Z","updated_at":"2024-04-15T11:47:11.907Z","dependencies_parsed_at":null,"dependency_job_id":"56e11cd9-e65d-4180-b016-70d388e02ed7","html_url":"https://github.com/mt-mods/soundblock","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mt-mods%2Fsoundblock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mt-mods%2Fsoundblock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mt-mods%2Fsoundblock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mt-mods%2Fsoundblock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mt-mods","download_url":"https://codeload.github.com/mt-mods/soundblock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240002379,"owners_count":19732187,"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":[],"created_at":"2024-11-08T17:13:34.172Z","updated_at":"2026-04-14T10:30:17.692Z","avatar_url":"https://github.com/mt-mods.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nA soundblock that emits sounds with given interval or per mesecon signal\n\n## Api\n\nRegister custom sounds:\n\n```lua\nsoundblocks.register({\n  filename = \"default_glass_footstep.ogg\",\n  key = \"default_glass_footsteps\",\n  name = \"Glass footsteps\"\n})\n\n\nsoundblocks.register({\n  filenames = {\n    \"default_grass_footstep.1.ogg\",\n    \"default_grass_footstep.2.ogg\",\n    \"default_grass_footstep.3.ogg\"\n  },\n  key = \"default_grass_footstep\",\n  name = \"Grass footsteps\"\n})\n\n```\n\n# Digiline api\n\n```lua\nif event.type == \"program\" then\n digiline_send(\"soundblock\", {\n  command = \"play\",\n\tname = \"default_grass_footstep.1.ogg\",\n\t-- relative position (optional)\n\tpos = { x=0, y=10, z=0 },\n\t-- gain, defaults to 1\n\tgain = 1,\n\t-- max_hear_distance, defaults to 10\n\thear_distance = 32\n })\nend\n```\n\n# License\n\nSee `license.txt`\n\n## textures/soundblock_block.png\n\n* DWYWPL\n* https://github.com/minetest-mods/mysoundblocks\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmt-mods%2Fsoundblock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmt-mods%2Fsoundblock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmt-mods%2Fsoundblock/lists"}