{"id":18004153,"url":"https://github.com/ivorforce/mcopts","last_synced_at":"2025-03-26T10:31:08.531Z","repository":{"id":79396948,"uuid":"93787257","full_name":"Ivorforce/MCOpts","owner":"Ivorforce","description":"Shadeable command library for Minecraft","archived":false,"fork":false,"pushed_at":"2022-11-05T15:53:51.000Z","size":426,"stargazers_count":5,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T15:00:50.710Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/Ivorforce.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2017-06-08T20:03:42.000Z","updated_at":"2022-11-04T21:49:15.000Z","dependencies_parsed_at":"2023-04-14T15:34:47.960Z","dependency_job_id":null,"html_url":"https://github.com/Ivorforce/MCOpts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ivorforce%2FMCOpts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ivorforce%2FMCOpts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ivorforce%2FMCOpts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ivorforce%2FMCOpts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ivorforce","download_url":"https://codeload.github.com/Ivorforce/MCOpts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245636157,"owners_count":20647921,"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-10-30T00:13:30.777Z","updated_at":"2025-03-26T10:31:08.515Z","avatar_url":"https://github.com/Ivorforce.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# What?\n\nMCOpts is a getopt / getopt_long / cli / bash oriented minecraft command parameter management api.\n\nIn short, this means your commands may look a little like this:\n\n    /#gen Tower -msr90 --gen natural_9i249u982 -d0 -x ~2\n\nThe library especially aims to eliminate redundant data (such as the same command usage in every single language file), and shorten common command argument processes. \n\nThis greatly reduces the susceptibility to errors and should save you time in the long run.\n\n# Getting Started\n\nTo add MCOpts as a dependency to your mod, add this to your build.gradle:\n\nUp above\n\n    buildscript {\n\n        dependencies {\n            classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.0'\n        }\n    }\n\n    apply plugin: 'com.github.johnrengelman.shadow'\n\nDown below\n\n    dependencies {\n        deobfCompile 'ivorius.mcopts:MCOpts:0.9' // Change the version accordingly, obviously\n        // Find versions over at http://files.minecraftforge.net/maven/ivorius/mcopts/MCOpts/index.html\n    }\n\n    shadowJar {\n        exclude 'META-INF/*', 'META-INF/maven/**'\n        relocate 'ivorius.mcopts', project.group + '.shadow.mcopts'\n        classifier=''\n    }\n\n    reobf {\n        shadowJar { mappingType = 'SEARGE' }\n    }\n\n    tasks.build.dependsOn reobfShadowJar\n\nNow, re-setup your workspace:\n\n    gradle setupDecompWorkspace\n    \nIf you use IDEA, remember to refresh your gradle project too. You will need at least Gradle 3.0, so set up your gradle home correctly.\n\nAnd that's it! MCOpts is now included in your jar.\n\n# Using MCOpts\n\nPlease refer to [using MCOpts](https://github.com/Ivorforce/MCOpts/wiki/Using-MCOpts) and [adapting MCOpts](https://github.com/Ivorforce/MCOpts/wiki/Adapting-MCOpts).\n\n# License TL;DR\n\nYou are free to include the library using the steps above, which will automatically add all required files (license, notices) to your jar. If you modify it, you also have to include a changes file to outline roughly what you did.\n\n[Full TL;DR](https://tldrlegal.com/license/apache-license-2.0-(apache-2.0))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivorforce%2Fmcopts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivorforce%2Fmcopts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivorforce%2Fmcopts/lists"}