{"id":16378192,"url":"https://github.com/redned235/levelparser","last_synced_at":"2025-10-26T10:30:45.757Z","repository":{"id":141403836,"uuid":"583785350","full_name":"Redned235/LevelParser","owner":"Redned235","description":"A Minecraft level parser.","archived":false,"fork":false,"pushed_at":"2023-06-04T00:08:11.000Z","size":84,"stargazers_count":7,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-16T19:22:06.840Z","etag":null,"topics":["anvil","java-edition","level","mca","mca-file","mcje","minecraft","minecraft-world","parser","world","world-parser"],"latest_commit_sha":null,"homepage":"","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/Redned235.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}},"created_at":"2022-12-30T23:01:19.000Z","updated_at":"2024-01-21T04:55:42.000Z","dependencies_parsed_at":"2023-10-11T07:57:30.492Z","dependency_job_id":null,"html_url":"https://github.com/Redned235/LevelParser","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":"0.16666666666666663","last_synced_commit":"3cfcf52b4dae5f83fc92cd4be9e5f249386a8bd6"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Redned235%2FLevelParser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Redned235%2FLevelParser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Redned235%2FLevelParser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Redned235%2FLevelParser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Redned235","download_url":"https://codeload.github.com/Redned235/LevelParser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236559177,"owners_count":19168523,"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":["anvil","java-edition","level","mca","mca-file","mcje","minecraft","minecraft-world","parser","world","world-parser"],"created_at":"2024-10-11T03:44:49.792Z","updated_at":"2025-10-26T10:30:45.369Z","avatar_url":"https://github.com/Redned235.png","language":"Java","readme":"# LevelParser\n\nA Minecraft level parser.\n\n**Currently Supporting: Minecraft: Java Edition 1.19.x**\n\nThis project only supports Anvil world files at the moment, but has been designed in such a way that alternative formats can also be used.\n\n## Usage\nTo start, you will need to create a `LevelParser` object like so:\n```java\nLevelParser\u003cAnvilLevel\u003e parser = LevelParser.\u003cAnvilLevel\u003ebuilder()\n        .input(Paths.get(\"input\"))\n        .output(Paths.get(\"output\"))\n        .reader(new AnvilLevelReader())\n        .writer(new AnvilLevelWriter())\n        .build();\n```\n\nAfterward, create a new `AnvilLevel` which you can do like so:\n```java\nAnvilLevel level = new AnvilLevel(\n        0, // minHeight\n        256, // maxHeight\n        0, // worldTime\n        new LevelData( // levelData\n                new LevelData.LevelVersion( // levelVersion\n                        false, // snapshot\n                        \"main\", // series\n                        3120, // dataVersion\n                        \"1.19.2\" // name\n                ),\n                \"My World Name\", // worldName\n                1, // gameType (1 = creative mode)\n                10, // spawnX\n                0, // spawnY\n                10, // spawnZ\n                System.currentTimeMillis(), // lastPlayed\n                false, // hardcore\n                true, // allowCommands\n                List.of(\"vanilla\"), // enabledDataPacks\n                List.of(), // disabledDataPacks\n                new LevelData.WorldGenSettings( // worldGenSettings\n                        false, // bonusChest\n                        0, // seed\n                        false, // generateFeatures\n                        ... // dimensions\n                )\n        )\n);\n```\n\nWith this level, you can now manipulate it in any way. Once you are done modifying your level, you can write it by doing the following using your parser:\n\n```java\nparser.writeLevel(level);\n```\n\n## Repository\n\n### Gradle\n```kotlin\nrepositories {\n    maven(\"https://jitpack.io\")\n}\n\ndependencies {\n    implementation(\"com.github.Redned235.LevelParser:anvil:master-SNAPSHOT\")\n}\n```\n\n### Maven:\n```xml\n\u003crepositories\u003e\n    \u003crepository\u003e\n        \u003cid\u003ejitpack\u003c/id\u003e\n        \u003curl\u003ehttps://jitpack.io\u003c/url\u003e\n    \u003c/repository\u003e\n\u003c/repositories\u003e\n\n\u003cdependencies\u003e\n    \u003cdependency\u003e\n        \u003cgroupId\u003ecom.github.Redned235.LevelParser\u003c/groupId\u003e\n        \u003cartifactId\u003eanvil\u003c/artifactId\u003e\n        \u003cversion\u003emaster-SNAPSHOT\u003c/version\u003e\n        \u003cscope\u003ecompile\u003c/scope\u003e\n    \u003c/dependency\u003e\n\u003c/dependencies\u003e\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredned235%2Flevelparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredned235%2Flevelparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredned235%2Flevelparser/lists"}