{"id":27938284,"url":"https://github.com/miniminelp/dart-mc-launcher","last_synced_at":"2025-07-29T17:06:06.688Z","repository":{"id":56834537,"uuid":"204039095","full_name":"MinimineLP/dart-mc-launcher","owner":"MinimineLP","description":"a library to launch minecraft clients and servers using dart","archived":false,"fork":false,"pushed_at":"2019-09-08T20:38:03.000Z","size":398,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-17T19:15:48.580Z","etag":null,"topics":["client","dart","dart-mc-launcher","launcher","minecraft","minecraft-api","minecraft-launcher","minecraft-server","server"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MinimineLP.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-23T17:05:22.000Z","updated_at":"2023-10-08T08:15:27.000Z","dependencies_parsed_at":"2022-09-07T20:00:57.994Z","dependency_job_id":null,"html_url":"https://github.com/MinimineLP/dart-mc-launcher","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/MinimineLP%2Fdart-mc-launcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MinimineLP%2Fdart-mc-launcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MinimineLP%2Fdart-mc-launcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MinimineLP%2Fdart-mc-launcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MinimineLP","download_url":"https://codeload.github.com/MinimineLP/dart-mc-launcher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252846676,"owners_count":21813432,"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":["client","dart","dart-mc-launcher","launcher","minecraft","minecraft-api","minecraft-launcher","minecraft-server","server"],"created_at":"2025-05-07T08:46:40.760Z","updated_at":"2025-05-07T08:46:42.153Z","avatar_url":"https://github.com/MinimineLP.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dart-mc-launcher v0.0.1\n\ndart-mc-launcher is a framework for starting minecraft clients and servers from dart\n\n## Installation\n\n```yaml\nname: [unique_namespace]\ndependencies:  \n  mc_launcher: ^0.0.1\n```\n\nAlso remember to replace the `[unique_namespace]` with your own project name and run\n\n```shell\n$ pub get\n```\n\nif you are using a clever editor like `vscode`, you can propably you can propably skip this step\n\n## Getting started\n\n### **Base**\n\nFirst import the package\n\n```dart\nimport 'package:mc_launcher/core.dart';\n```\n\nThe hole package is written asynchronously, so we will use an async main method to demonstarte the package functionality.\n\n```dart\nvoid main(List\u003cString\u003e args) async {\n}\n```\n\n### **Server**\n\nInside of it we will create a simple vanilla server the subdirectory server. This directory will be created automatically. Also we will set the default eula value to true, so we can start the server. It is defaultly false, so we have to accept it manually, but with this, our server is directly ready to start.\nI set the version to 1.14.4 here, if you do not set the version, it will automatically use the latest version\n\n```dart\nMinecraftServer server = await VanillaServer.create(\"./server\", defaultEula: true, version: \"1.14.4\");\n```\n\nNow we start the server\n\n```dart\nserver.start();\n```\n\nWe can execute Commands using\n\n```dart\nserver.executeCommand(\"say hello world :)\");\n```\n\nAnd stop it using\n\n```dart\nserver.stop();\n```\n\nmore configurations you can set like this:\n\n```dart\nserver.properties.mar\n```\n\n### **Client**\n\nTo create clients also is really easy. You just have to specify the version, the root directory. If you want you can also specify maximum *(default: 1024)* and minimum *(default 512)* ram. *It will take some time for the client to download the assets at this point on the first start*\n\n```dart\nMinecraftClient client = await VanillaClient.createClient(rootDir: \"./client\", version: \"1.14.4\", maxRam: 6000, minRam: 4000);\n```\n\nTo start the clients just use client.start.\n\n```dart\nclient.start()\n```\n\nyou can **not** use .stop() on the clients, you can just kill them via client.kill. The problem with killing the client is, that it saves no worlds, etc when you kill them, so be carefull with this function\n\n```dart\nclient.kill()\n```\n\n## License\n\nThis package is licensed under the [BSD2-Clause](https://github.com/MinimineLP/dart-mc-launcher/blob/master/LICENSE)\n\n## Authors\n\n- **Minimine** - *Initial work* - [Minimine](https://github.com/MinimineLP)\n\n## Issues\n\nPlease report bugs, issues, feature request and stuff like that on the [github issue tracker](https://github.com/MinimineLP/dart-mc-launcher/issues)\n\nIf you are coding yourself and have a fix for my code feel free do send a [pull request](https://github.com/MinimineLP/dart-mc-launcher/pulls)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminiminelp%2Fdart-mc-launcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminiminelp%2Fdart-mc-launcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminiminelp%2Fdart-mc-launcher/lists"}