Skip to content

Latest commit

 

History

History
58 lines (44 loc) · 1.6 KB

README.md

File metadata and controls

58 lines (44 loc) · 1.6 KB

RegistryAPI

A api for access registry of minecraft, instead of use datapack.
To use this api, you should install this plugin to the server: https://github.com/Lumine1909/RegistryAPI/releases/latest
Only support minecraft 1.16.5+.

Usage

//Biome color: grass #ffffff, foliage #000000
BiomeColor bc = new BiomeColor().setGrassColor(16777215).setFoliageColor(0);
//Create and register
Biome biome = RegistryAPI.Manager.BIOME.createBiome(bc, new ResourceKey("example", "biome1"));
//Change biome of block
RegistryAPI.Manager.BIOME.setBlockBiome(block, biome);
//Send biome change to client (If the biome is created after client connect, this won't work)
RegistryAPI.Manager.BIOME.sendBiomeChange(block);

Result:

image

For more details: see "example-plugin".
This project is still developing so may be unstable.
If any problems happens during use, please feel free to submit Issues.

next feature: world height and generate


Dependency:

Maven:

<repositories>
  <id>lumine1909</id>
  <url>https://maven.pkg.github.com/Lumine1909/RegistryAPI/registry-api</url>
</repositories>

<dependency>
  <groupId>io.github.lumine1909</groupId>
  <artifactId>registry-api</artifactId>
  <version>alpha-1.1</version>
  <scope>provided</scope>
</dependency>

Gradle:

repositories {
    maven("https://maven.pkg.github.com/Lumine1909/RegistryAPI/registry-api")
}


dependencies {
    compileOnly("io.github.lumine1909:registry-api:alpha-1.1")
}