{"id":16132793,"url":"https://github.com/shacknetisp/protection_lagporter","last_synced_at":"2026-04-28T08:05:28.288Z","repository":{"id":88073617,"uuid":"47517710","full_name":"shacknetisp/protection_lagporter","owner":"shacknetisp","description":"Protection enhancement for Minetest to stop glitching through protected nodes.","archived":false,"fork":false,"pushed_at":"2016-01-31T04:11:38.000Z","size":7,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T15:15:57.772Z","etag":null,"topics":["lua","minetest","minetest-mod","mod","protection"],"latest_commit_sha":null,"homepage":null,"language":"Lua","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/shacknetisp.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}},"created_at":"2015-12-06T23:06:52.000Z","updated_at":"2022-07-03T11:18:47.000Z","dependencies_parsed_at":"2023-04-23T17:23:45.591Z","dependency_job_id":null,"html_url":"https://github.com/shacknetisp/protection_lagporter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shacknetisp/protection_lagporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shacknetisp%2Fprotection_lagporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shacknetisp%2Fprotection_lagporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shacknetisp%2Fprotection_lagporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shacknetisp%2Fprotection_lagporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shacknetisp","download_url":"https://codeload.github.com/shacknetisp/protection_lagporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shacknetisp%2Fprotection_lagporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32371711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"online","status_checked_at":"2026-04-28T02:00:07.250Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["lua","minetest","minetest-mod","mod","protection"],"created_at":"2024-10-09T22:34:08.429Z","updated_at":"2026-04-28T08:05:28.236Z","avatar_url":"https://github.com/shacknetisp.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Protection Lagporter\nThis mod will teleport players back to where they started digging if they try to dig through protection.\n\n### Known Problems\n\n* It cannot handle very long lag.\n* Occasionally players who try very hard to break through protection while in the air will jump up and down rapidly. This won't last very long though.\n\n### minetest.is_protected\n\nThis mod overrides `minetest.node_dig` and calls a third argument in `minetest.is_protected`: `digging`\nThis argument can be safely ignored, so existing mods aren't broken by this.\n\n### Usage in other mods\n\nIn a protection mod change the definition of minetest.is_protected and call `protection_lagporter.check(pos, name)` to support the digging option.\n\nA table of players being teleported is available with `protection_lagporter.glitching`, player names will either be `nil` if not teleporting or `true` if they are.\n\n\n## Protection Mods\nIn protection mods simply add `digging` to the definition of `minetest.is_protected`:\n\n`minetest.isprotected(pos, name, digging)`\n\nAnd add this line just before before returning `true`:\n\n`if digging then protection_lagporter.check(pos, name) end`\n    \n## Fast Movement Mods\nThese mods must be changed to detect `protection_lagporter.glitching` and set the speed to 0.1 if it is `true` for `protection_lagporter.glitching[playerName]`\n\n    \n#### Node Definitions\nIn node definitions you should use the digger argument, `minetest.is_protected(pos, name, true)`, if you test for protection in `on_dig`. This is only needed if the node is walkable.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshacknetisp%2Fprotection_lagporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshacknetisp%2Fprotection_lagporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshacknetisp%2Fprotection_lagporter/lists"}