THIS PROJECT IS NO OFFICIAL MINECRAFT PRODUCT - NOT AUTHORIZED OR ASSOCIATED BY MOJANG
It supports the follow Minecraft versions:
| Minecraft | Version |
|---|---|
| Java | v1.13.x, v1.14.x, v1.15.x or v1.16.x |
| Bedrock | >= v1.16.20 |
webpack or babelpackage.jsonyarn add github:ModifiedCommand/ConvertJavaTextureToBedrockApi
or
yarn add @modifiedcommand/convert-minecraft-java-texture-to-bedrock-api
import {ConsoleLog, Input, LocalFileInputEntry, LocalFileOutput} from "@geekcornernpm/convert-base-api";
import {ConvertJavaTextureToBedrockApi} from "@geekcornernpm/convert-minecraft-java-texture-to-bedrock-api";
(async () => {
let output;
try {
output = await new ConvertJavaTextureToBedrockApi(new Input(new LocalFileInputEntry("input/java_texture_pack.zip")), new LocalFileOutput("output/bedrock_texture_pack.mcpack"), new ConsoleLog()).convert();
} catch (err) {
console.err(err);
return;
}
console.log(`Output: ${output}`);
})();
bedrock_uuid_header and bedrock_uuid_module files in your input, to keep the same uuid on repeating conversions - otherwise, random uuids are generated each time and you need to reselect the texture pack again in the gamebedrock_textures folder in your input.This project uses the follow main features or external libraries: