{"id":15144158,"url":"https://github.com/jasonw4331/libcustompack","last_synced_at":"2025-07-21T20:36:35.791Z","repository":{"id":38019647,"uuid":"500070029","full_name":"jasonw4331/libCustomPack","owner":"jasonw4331","description":"A library for compiling and registering resource packs on PocketMine Servers","archived":false,"fork":false,"pushed_at":"2024-01-18T06:06:54.000Z","size":82,"stargazers_count":12,"open_issues_count":4,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-11T13:50:14.813Z","etag":null,"topics":["php","pocketmine","pocketmine-mp","poggit-virion"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jasonw4331.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":["jasonw4331"],"patreon":"jasonwynn10","custom":"https://www.buymeacoffee.com/jasonwynn10"}},"created_at":"2022-06-05T10:49:50.000Z","updated_at":"2025-06-22T22:10:38.000Z","dependencies_parsed_at":"2025-02-08T23:33:28.976Z","dependency_job_id":"457573e1-e2d1-43c5-b3c8-4a8a34b9f69f","html_url":"https://github.com/jasonw4331/libCustomPack","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jasonw4331/libCustomPack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonw4331%2FlibCustomPack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonw4331%2FlibCustomPack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonw4331%2FlibCustomPack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonw4331%2FlibCustomPack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jasonw4331","download_url":"https://codeload.github.com/jasonw4331/libCustomPack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonw4331%2FlibCustomPack/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266375712,"owners_count":23919612,"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","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["php","pocketmine","pocketmine-mp","poggit-virion"],"created_at":"2024-09-26T10:22:07.486Z","updated_at":"2025-07-21T20:36:35.735Z","avatar_url":"https://github.com/jasonw4331.png","language":"PHP","funding_links":["https://github.com/sponsors/jasonw4331","https://patreon.com/jasonwynn10","https://www.buymeacoffee.com/jasonwynn10"],"categories":[],"sub_categories":[],"readme":"# libCustomPack\n\n[![Poggit-Ci](https://poggit.pmmp.io/ci.shield/jasonw4331/libCustomPack/libCustomPack)](https://poggit.pmmp.io/ci/jasonw4331/libCustomPack/libCustomPack)\n\nA small library for building and registering resource packs with PocketMine-MP\n## Usage\nThis viron was made for developers to build resource packs from plugin resources or from files on the disk, and allows adding new resource packs to the stack without requiring a server restart.\n*NOTE*: New resource packs are not automatically updated for previously loaded players. Only new players will see new resource packs.\n\n#### Required imports\nThe following imports are necessary to use the virion library:\n```php\nuse libCustomPack\\libCustomPack;\n```\n\n### API\n#### Building a resource pack\n2 methods are added which allow build a resource pack using the plugin's resource directory or any other given path.\n```php\nlibCustomPack::generatePackFromResources($plugin);\n//OR\nlibCustomPack::generatePackFromPath($plugin, $MyFullFolderPath);\n```\n#### Registering a resource pack\nA resource pack can be added to the resource stack using the `registerResourcePack()` method.\n```php\nlibCustomPack::registerResourcePack($resoucePackInstance);\n```\n#### Unregistering a resource pack\nDuring a plugin's onDisable() method, it is recommended to call the `unregisterResourcePack()` method to be removed from the resource stack.\n```php\nlibCustomPack::unregisterResourcePack($resoucePackInstance);\n```\n\n### SubFolders\nIf the resource pack is a folder we don't know the exact location of within the given folder, we can use the `$packFolderName` parameter to specify the name of the folder to be found.\nThe default subfolder name is the plugin's name followed by \" Pack\".\n```php\nlibCustomPack::generatePackFromResources($plugin, $packFolderName);\n//OR\nlibCustomPack::generatePackFromPath($plugin, $MyFullFolderPath, $packFolderName);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonw4331%2Flibcustompack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasonw4331%2Flibcustompack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonw4331%2Flibcustompack/lists"}