{"id":20383450,"url":"https://github.com/staticph/pr2rp","last_synced_at":"2026-06-29T11:31:15.708Z","repository":{"id":82937526,"uuid":"193007251","full_name":"StaticPH/pr2rp","owner":"StaticPH","description":"Try to create a resource pack from a pull request","archived":false,"fork":false,"pushed_at":"2019-06-21T01:40:23.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-04T22:44:38.312Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/StaticPH.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}},"created_at":"2019-06-21T01:07:27.000Z","updated_at":"2019-06-21T01:41:07.000Z","dependencies_parsed_at":"2023-03-12T17:04:59.342Z","dependency_job_id":null,"html_url":"https://github.com/StaticPH/pr2rp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/StaticPH/pr2rp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StaticPH%2Fpr2rp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StaticPH%2Fpr2rp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StaticPH%2Fpr2rp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StaticPH%2Fpr2rp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StaticPH","download_url":"https://codeload.github.com/StaticPH/pr2rp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StaticPH%2Fpr2rp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34925718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-29T02:00:05.398Z","response_time":58,"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":[],"created_at":"2024-11-15T02:22:41.322Z","updated_at":"2026-06-29T11:31:15.689Z","avatar_url":"https://github.com/StaticPH.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pr2rp\nTry to make creating a resource pack from a pull request _less_ agonizingly tedious. Yes, you could clone the whole repository/branch and pick out the files you want, but I don't want to do that.\n\nThis is just something I threw together quickly, so don't expect anything fancy, and there is no stupid-proofing in the script.\n\nRequires Bash, wget, and ripgrep(see note on step 4)\n\n# Steps\n---\n\n1. load page manually *(Because neither curl nor wget wants to load beyond the 299th changed file. Something to do with javascript delaying loading past a certain point to keep initial page load time fast.)*\n\n2. find ```\u003cdiv id=\"files\" class=\"diff-view commentable\"\u003e```\n\n3. copy that entire element to a file and save to a file, let's say diffElem.txt  \n\u003e *I would recommend you use the script and skip to step 8(**Note that all parameters are required!**), but if for some reason you dont want to use the script, just proceed to step 4. Of course, the script makes steps 5 and 6 generic, while the steps themselves are written exactly as I did them.*  \n\u003e ex:  \n\u003e ```bash\n\u003e ./genResourcePack \"newTinkerTextures\" \"https://raw.githubusercontent.com/SlimeKnights/TinkersConstruct/4722395cefb0c793d23692578ff823bc6ab458a0/\" \"A bunch of new textures for Tinker's construct, kindly provided by RCXcrafter([https://github.com/RCXcrafter]), and constructed according to instructions/script provided by StaticPH([https://github.com/StaticPH]).\"\n\u003e ```\n\n4. *rg/ripgrep is my goto for things like this, because its sooooo much faster than grep, and doesn't require you to learn awk's grammar/syntax. If you don't want to get ripgrep, it's up to you to rewrite this using grep, or any other program of your choice.*\n```bash\nrg 'div class=\"file-header d-flex flex-items-center file-header--expandable js-file-header\\s*\" data-path=\".*?\"'| rg -o 'resources.*?\"' | tr -d '\"' \u003e\u003e assets.txt\n```\n\n5. *You could do this with curl, but I didn't feel like spending that long digging through man pages to figure it out :p*\n```bash\nwget -x -nH -i assets.txt --cut-dirs 4 -P newTinkerTextures -B \"https://raw.githubusercontent.com/SlimeKnights/TinkersConstruct/4722395cefb0c793d23692578ff823bc6ab458a0/\"\n```\n\n6.\n```bash\nfunction makeMeta(){\ncat \u003c\u003cEOF\n{\n   \"pack\":{\n      \"pack_format\":3,\n      \"description\":\"A bunch of new textures for Tinker's construct, kindly provided by RCXcrafter([https://github.com/RCXcrafter]), and constructed according to instructions/script provided by StaticPH([https://github.com/StaticPH]).\"\n   }\n}\nEOF\n}\nmakeMeta \u003e newTinkersTextures/pack.mcmeta\n```\n\n7. *Just a little cleanup*\n```bash\nrm assets.txt\n```\n\n8. *Remember that file you created in step 3? Well, now that you're done, you can delete it. Or not, its totally up to you.*\n```bash\nrm diffElem.txt\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstaticph%2Fpr2rp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstaticph%2Fpr2rp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstaticph%2Fpr2rp/lists"}