{"id":18991306,"url":"https://github.com/mt-mods/spacecannon","last_synced_at":"2025-04-22T11:37:45.561Z","repository":{"id":54132669,"uuid":"152636020","full_name":"mt-mods/spacecannon","owner":"mt-mods","description":"Adds five scifi/space cannons with various projectile-speeds and explosion-strengths.","archived":false,"fork":false,"pushed_at":"2024-12-29T18:53:34.000Z","size":4506,"stargazers_count":2,"open_issues_count":6,"forks_count":4,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-17T00:17:08.641Z","etag":null,"topics":["luanti","luanti-mod","minetest","minetest-mod"],"latest_commit_sha":null,"homepage":"","language":"Lua","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/mt-mods.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,"zenodo":null}},"created_at":"2018-10-11T18:18:36.000Z","updated_at":"2024-12-29T18:31:05.000Z","dependencies_parsed_at":"2025-04-16T18:11:16.124Z","dependency_job_id":"e0797906-116b-4a78-a26c-8135ebf75dc1","html_url":"https://github.com/mt-mods/spacecannon","commit_stats":null,"previous_names":["mt-mods/spacecannon"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mt-mods%2Fspacecannon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mt-mods%2Fspacecannon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mt-mods%2Fspacecannon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mt-mods%2Fspacecannon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mt-mods","download_url":"https://codeload.github.com/mt-mods/spacecannon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250234572,"owners_count":21397027,"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":["luanti","luanti-mod","minetest","minetest-mod"],"created_at":"2024-11-08T17:13:28.579Z","updated_at":"2025-04-22T11:37:45.542Z","avatar_url":"https://github.com/mt-mods.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nSpacecannon mod\n\n[![ContentDB](https://content.minetest.net/packages/BuckarooBanzay/spacecannon/shields/downloads/)](https://content.minetest.net/packages/BuckarooBanzay/spacecannon/)\n\n# Overview\n\nAdds five scifi/space cannons with various projectile-speeds and explosion-strengths.\nThe cannons need HV-Power from a `technic` network and can be controlled via formspec/hand, mesecons or digilines.\nThey also need to charge first, which can take a couple of seconds depending on cannon-type.\n\nThe projectile detonates on impact but only in _non-protected_ areas!\n\n# Screenshots\n\n\u003cimg src=\"./screenshot_1.png\"/\u003e\n\u003cimg src=\"./screenshot_2.png\"/\u003e\n\u003cimg src=\"./screenshot_3.png\"/\u003e\n\n\n# Dependencies\n\nDepends on:\n* `technic`\n\nSupports:\n* `mesecons`\n* `digilines`\n\n# Mesecons\n\nAn \"on\" signal triggers a fire-action.\n\n# Digilines\n\nFire a cannon:\n```lua\nif event.type == \"program\" then\n digiline_send(\"cannon\", { command = \"fire\", verbose = false })\nend\n```\n\nExample response from a \"get\" request:\n```lua\n{\n        type = \"digiline\",\n        channel = \"c7\",\n        msg = {\n                HV_EU_input = 0,\n                HV_EU_demand = 0,\n                dir = {\n                        y = 0,\n                        x = 0,\n                        z = 1\n                },\n                powerstorage = 10000,\n                ready = true,\n                origin = \"c7\",\n                name = \"spacecannon:cannon_green\",\n                pos = {\n                        y = 10,\n                        x = -64,\n                        z = -53\n                }\n        }\n}\n```\n\nThe \"fire\" request can specify an optional \"verbose\" flag.  If this flag\nevaluates to true, then the following example response will be sent back.\nNote that if you have a large number of cannons, you will likely want\nto disable responses. N cannons firing and generating responses will\ncause N^2 messages to be processed, as each cannon receives the fire response\nfrom all of its peers. If N \u003e 20, your LUAC will overheat. N \u003e 900, and your\nserver admin will want to have a chat with you.\n\n```lua\n{\n        type = \"digiline\",\n        channel = \"c2\",\n        msg = {\n                pos = {\n                        y = 10,\n                        x = -59,\n                        z = -53\n                },\n                origin = \"c2\",\n                success = true\n        }\n}\n```\n\n# Api\n\nModify the ability to shoot depending on position or playername:\n```lua\nspacecannon.can_shoot = function(pos, playername)\n\treturn true\nend\n```\n\n# Contributors\n\n* @BuckarooBanzay\n* @dennisjenkins75\n* @kiedtl\n\n# License\n\nCode: MIT\nTextures: CC-BY-SA 3.0\n\n# Attributions\n\n* sounds/spacecannon_shoot.ogg https://freesound.org/people/jonccox/sounds/175261/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmt-mods%2Fspacecannon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmt-mods%2Fspacecannon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmt-mods%2Fspacecannon/lists"}