A java api, for Minecraft: Bedrock Edition, which allows updating nbt blockstates to the latest version using the bedrock block upgrade schema provided by pmmp.
NbtMap updatedBlockState = BlockStateUpdaters.update(NbtMap.builder().
putString("name", "minecraft:stone").
putCompound("states", NbtMap.builder().
putString("stone_type", "granite").
build()).
build());
- Clone this repository for the version you want to use.
- Run
mvn clean install
to build the jar. - Add the maven dependency to your projects pom.xml.
<dependencies>
<dependency>
<groupId>ms.kevi</groupId>
<artifactId>bedrock-blockstate-updater</artifactId>
<version>YOUR_VERSION</version>
</dependency>
<dependencies>
- 1.10.0
- 1.12.0
- 1.13.0
- 1.14.0
- 1.16.0.57_beta
- 1.16.0.59_beta
- 1.16.0.68_beta
- 1.16.100
- 1.16.210
- 1.17.30
- 1.17.40
- 1.18.10
- 1.18.20.27_beta
- 1.18.30
- 1.19.0.34_beta
- 1.19.20