Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A kotlin/java lib that allows you to read and write MCA files in a clean way

License

NotificationsYou must be signed in to change notification settings

PowerNukkit/Region-Manipulator

Repository files navigation

A Kotlin/Java library that allows you to read and writemca files in a simple way.

Here you can find the library documentation:

You may also want to see thechangelog file to be aware of all changes in the tool that may impact you.

Adding to your project

The library is shared in the maven center, so you don't need to declare any custom repository.

Gradle

repositories {    mavenCentral()// or jcenter()}dependencies {    compile'br.com.gamemods:region-manipulator:2.0.0'}

Maven

<dependencies>    <dependency>      <groupId>br.com.gamemods</groupId>      <artifactId>region-manipulator</artifactId>      <version>2.0.0</version>    </dependency></dependencies>

Ivy

<dependencyorg="br.com.gamemods"name="region-manipulator"rev="2.0.0"/>

Direct JAR

Download it frommaven central.

Examples

internalfunclearEntities(from:File,to:File) {val region=RegionIO.readRegion(from)val chunk= region[ChunkPos(region.position.xPos*32, region.position.zPos*32)]?:return    chunk.level.getCompoundList("Entities").forEach {println(it.getString("id")+""+ it.getDoubleList("Pos"))    }    chunk.level["Entities"]= emptyListOf<NbtCompound>().toNbtList()RegionIO.writeRegion(to, region)}

About

A kotlin/java lib that allows you to read and write MCA files in a clean way

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp