1- THIS PROJECT IS NO OFFICIAL [ MINECRAFT] ( https://minecraft.net/ ) PRODUCT - NOT AUTHORIZED OR ASSOCIATED BY [ MOJANG] ( https://mojang.com/ )
1+ THIS PROJECT IS NO OFFICIAL MINECRAFT] PRODUCT - NOT AUTHORIZED OR ASSOCIATED BY MOJANG
22
33---
44
5- # Convert Minecraft Java texture packs to Minecraft Bedrock texture packs
5+ # Convert Minecraft Java texture packs to Bedrock texture packs
66
77Look at https://ozelot379.github.io/ConvertJavaTextureToBedrock
88
99It works directly in your browser
1010
1111It supports currently the follow Minecraft versions:
1212
13- | Minecraft | Version |
14- | -----------| --------------------- |
15- | Java | v1.13.x or v1.14.x |
16- | Bedrock | v1.13.x |
13+ | Minecraft | Version |
14+ | -----------| ---------|
15+ | Java | v1.13.x, v1.14.x or v1.15.x |
16+ | Bedrock | v1.14.x |
1717
18- Currently it supports to convert blocks, items, entities, paintings, particles, map icons and mob effects textures
18+ Currently it supports to convert blocks, items, entities, paintings, particles, map icons, mob effects and some basic ui textures
1919
2020Some conversions of HD texture packs may takes a while
2121
@@ -38,11 +38,11 @@ You can now convert your texture packs like
3838ConvertJavaTextureToBedrock -i input/java_texture_pack.zip -o output/bedrock_texture_pack.mcpack
3939```
4040
41- | Parameter | Description |
42- | --------------- | ------------------ -------------|
43- | -i (Required) | Input folder or zip path |
41+ | Parameter | Description |
42+ | -----------| -------------|
43+ | -i (Required) | Input folder or zip path |
4444| -o (Required) | Output folder or zip path |
45- | -l | Show log (Default ` true ` ) |
45+ | -l | Show log (Default ` true ` ) |
4646
4747## Known issues
4848- Convert horse textures is very tricky and may buggy
@@ -60,35 +60,32 @@ For instance for textures, that can not be converted or are not converted correc
6060
6161This files are applied additionally before output
6262
63- # Debug and build
64- First clone this repo and install the dependencies
65-
63+ # Debug
64+ First clone this repo
6665``` bash
67- yarn
66+ git clone https://github.com/ozelot379/ConvertJavaTextureToBedrock
67+ cd ConvertJavaTextureToBedrock
6868```
6969
70- Then you can start the debug
71-
72- cli:
70+ Then install the dependencies
7371``` bash
74- yarn debug:cli
72+ yarn
7573```
7674
77- webapp:
75+ ## WebApp
7876``` bash
79- yarn debug:webapp
77+ NODE_ENV=development yarn debug:webapp
8078```
8179
82- You can create a build
83-
80+ ## CLI
8481``` bash
85- yarn build
82+ NODE_ENV=development yarn debug:cli
8683```
8784
8885# How this work
8986This project uses the follow main features or external libraries:
9087
91- - [ Web Worker] ( https://developer.mozilla.org/docs/Web/API/Web_Workers_API ) for convert it in the background to not freeze the gui
88+ - [ Web Worker] ( https://developer.mozilla.org/docs/Web/API/Web_Workers_API ) for convert it in the background to not freeze the ui
9289- [ jszip] ( https://www.npmjs.com/package/jszip ) for read, modify and write zip files
9390- [ jimp] ( https://www.npmjs.com/package/jimp ) for graphic manipulation
9491- [ file-saver] ( https://www.npmjs.com/package/file-saver ) for deliver the converted pack to download
@@ -106,12 +103,8 @@ Import it in your code, if you use webpack
106103``` javascript
107104import ConvertJavaTextureToBedrock , {ConsoleLog , Input , LocalFileInputEntry , LocalFileOutput } from " @ozelot379/convert-minecraft-java-texture-to-bedrock" ;
108105```
109- or require it if you use native NodeJs
110- ``` javascript
111- const {default: ConvertJavaTextureToBedrock , ConsoleLog , Input , LocalFileInputEntry , LocalFileOutput } = require (" @ozelot379/convert-minecraft-java-texture-to-bedrock" );
112- ```
113106
114- You can now convert your texture packs in an ` async function `
107+ You can now convert your texture packs
115108``` javascript
116109let output;
117110try {
@@ -120,45 +113,41 @@ try {
120113
121114}
122115```
123- or self handle the ` Promise `
124- ``` javascript
125- new ConvertJavaTextureToBedrock (input, output, log).convert ().then ((output ) => {}).catch ((err ) => {});
126- ```
127116
128117## Input
129- | Import | Description |
130- | ----------------- | -------------|
131- | ` Input ` | The input consists on one input entry (Common) |
132- | ` ArrayInput ` | The input consists on multiple input entries (For instance a selected folder with multiple ` FileInputEntry ` ) |
133- | ` AbstractInput ` | Base input |
118+ | Import | Description |
119+ | --------| -------------|
120+ | ` Input ` | The input consists on one input entry (Common) |
121+ | ` ArrayInput ` | The input consists on multiple input entries (For instance a selected folder with multiple ` FileInputEntry ` ) |
122+ | ` AbstractInput ` | Base input |
134123
135124## Input entry
136- | Import | For type |
137- | ------------------------- | ---------- ----------|
138- | ` BufferInputEntry ` | < ul >< li > ` ArrayBuffer ` </ li >< li > ` Blob ` </ li >< li > ` Buffer ` </ li >< li > ` Uint8Array ` </ li ></ ul > |
139- | ` FileInputEntry ` | ` File ` |
140- | ` LocalFileInputEntry ` | Local file |
141- | ` LocalFolderInputEntry ` | Local folder |
142- | ` AbstractInputEntry ` | Base input entry |
125+ | Import | For type |
126+ | --------| ----------|
127+ | ` BufferInputEntry ` | - ` ArrayBuffer ` <br >- ` Blob ` <br >- ` Buffer ` <br >- ` Uint8Array ` |
128+ | ` FileInputEntry ` | ` File ` |
129+ | ` LocalFileInputEntry ` | Local file |
130+ | ` LocalFolderInputEntry ` | Local folder |
131+ | ` AbstractInputEntry ` | Base input entry |
143132
144133## Output
145- | Import | For type |
146- | --------------------- | ----- ----------|
134+ | Import | For type |
135+ | --------| ----------|
147136| ` ArrayBufferOutput ` | ` ArrayBuffer ` |
148- | ` BlobOutput ` | ` Blob ` |
149- | ` BufferOutput ` | ` Buffer ` |
150- | ` FileBlobOutput ` | ` File ` |
151- | ` LocalFileOutput ` | Local file |
152- | ` LocalFolderOutput ` | Local folder |
153- | ` Uint8ArrayOutput ` | ` Uint8Array ` |
154- | ` AbstractOutput ` | Base output |
137+ | ` BlobOutput ` | ` Blob ` |
138+ | ` BufferOutput ` | ` Buffer ` |
139+ | ` FileBlobOutput ` | ` File ` |
140+ | ` LocalFileOutput ` | Local file |
141+ | ` LocalFolderOutput ` | Local folder |
142+ | ` Uint8ArrayOutput ` | ` Uint8Array ` |
143+ | ` AbstractOutput ` | Base output |
155144
156145## Log
157- | Import | Description |
158- | --------------- | --- -------------|
159- | ` ConsoleLog ` | Log to console |
160- | ` SlientLog ` | Disable log |
161- | ` AbstractLog ` | Base log |
146+ | Import | Description |
147+ | --------| -------------|
148+ | ` ConsoleLog ` | Log to console |
149+ | ` SlientLog ` | Disable log |
150+ | ` AbstractLog ` | Base log |
162151
163152## Example
164153``` javascript
0 commit comments