Skip to content

Commit 67ef373

Browse files
author
ozelot379
committed
Supports mob effects
1 parent 64781e2 commit 67ef373

6 files changed

Lines changed: 66 additions & 6 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## [1.11.0]
4+
- Supports mob effects
5+
36
## [1.10.1]
47
- Exclude webapp from npm package
58

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ It supports currently the follow Minecraft versions:
77
| Java | v1.13.x or v1.14.x |
88
| Bedrock | v1.12.x |
99

10-
Currently it supports blocks, items, entities, paintings, particles and map icons textures
10+
Currently it supports to convert blocks, items, entities, paintings, particles, map icons and mob effects textures
1111

1212
Supported formats are zip archives or folders
1313

@@ -20,7 +20,7 @@ For the graphic manipulation, it uses the [jimp library](https://www.npmjs.com/p
2020
# Usage
2121

2222
## GUI
23-
Look at http://ozelot379.github.io/ConvertMinecraftJavaTextureToBedrock in your browser
23+
Look at https://ozelot379.github.io/ConvertMinecraftJavaTextureToBedrock in your browser
2424

2525
## CLI
2626
First be sure you have installed [NodeJS](https://nodejs.org) (At least the LTS version) and install [Yarn](https://yarnpkg.com/en/docs/install)

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@ozelot379/convert-minecraft-java-texture-to-bedrock",
33
"productName": "ConvertMinecraftJavaTextureToBedrock",
4-
"version": "1.10.1",
4+
"version": "1.11.0",
55
"description": "Convert Minecraft Java texture packs to Minecraft Bedrock texture packs",
66
"keywords": [
77
"Minecraft",

‎src/converter/AbstractConverter.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class AbstractConverter {
1313
/**
1414
* AbstractConverter constructor
1515
*
16-
* @param {mixed[]} data
16+
* @param {*[]} data
1717
*
1818
* @throws {Error}
1919
*/
@@ -41,7 +41,7 @@ class AbstractConverter {
4141
*/
4242
this.log;
4343
/**
44-
* @type {mixed[]}
44+
* @type {*[]}
4545
*
4646
* @protected
4747
*/
@@ -101,7 +101,7 @@ class AbstractConverter {
101101
}
102102

103103
/**
104-
* @returns {mixed[]}
104+
* @returns {*[]}
105105
*
106106
* @protected
107107
*

‎src/converter/CopyConverter.js‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,29 @@ class CopyConverter extends AbstractConverter {
4747
// Llama
4848
["textures/entity/llama/llama_creamy.png", "textures/entity/llama/llama.png"],
4949

50+
// Mob effect
51+
["textures/ui/bad_omen_effect.png", "textures/gui/newgui/mob_effects/bad_omen_effect.png"],
52+
["textures/ui/blindness_effect.png", "textures/gui/newgui/mob_effects/blindness_effect.png"],
53+
["textures/ui/fire_resistance_effect.png", "textures/gui/newgui/mob_effects/fire_resistance_effect.png"],
54+
["textures/ui/haste_effect.png", "textures/gui/newgui/mob_effects/haste_effect.png"],
55+
["textures/ui/hunger_effect.png", "textures/gui/newgui/mob_effects/hunger_effect.png"],
56+
["textures/ui/invisibility_effect.png", "textures/gui/newgui/mob_effects/invisibility_effect.png"],
57+
["textures/ui/jump_boost_effect.png", "textures/gui/newgui/mob_effects/jump_boost_effect.png"],
58+
["textures/ui/levitation_effect.png", "textures/gui/newgui/mob_effects/levitation_effect.png"],
59+
["textures/ui/mining_fatigue_effect.png", "textures/gui/newgui/mob_effects/mining_fatigue_effect.png"],
60+
["textures/ui/nausea_effect.png", "textures/gui/newgui/mob_effects/nausea_effect.png"],
61+
["textures/ui/night_vision_effect.png", "textures/gui/newgui/mob_effects/night_vision_effect.png"],
62+
["textures/ui/poison_effect.png", "textures/gui/newgui/mob_effects/poison_effect.png"],
63+
["textures/ui/regeneration_effect.png", "textures/gui/newgui/mob_effects/regeneration_effect.png"],
64+
["textures/ui/resistance_effect.png", "textures/gui/newgui/mob_effects/resistance_effect.png"],
65+
["textures/ui/slowness_effect.png", "textures/gui/newgui/mob_effects/slowness_effect.png"],
66+
["textures/ui/speed_effect.png", "textures/gui/newgui/mob_effects/speed_effect.png"],
67+
["textures/ui/strength_effect.png", "textures/gui/newgui/mob_effects/strength_effect.png"],
68+
["textures/ui/village_hero_effect.png", "textures/gui/newgui/mob_effects/village_hero_effect.png"],
69+
["textures/ui/water_breathing_effect.png", "textures/gui/newgui/mob_effects/water_breathing_effect.png"],
70+
["textures/ui/weakness_effect.png", "textures/gui/newgui/mob_effects/weakness_effect.png"],
71+
["textures/ui/wither_effect.png", "textures/gui/newgui/mob_effects/wither_effect.png"],
72+
5073
// Pattern
5174
["textures/items/skull_banner_pattern.png", "textures/items/banner_pattern.png"],
5275

‎src/converter/RenameConverter.js‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,40 @@ class RenameConverter extends AbstractConverter {
587587
["textures/items/minecart.png", "textures/items/minecart_normal.png"],
588588
["textures/items/tnt_minecart.png", "textures/items/minecart_tnt.png"],
589589

590+
// Mob effect
591+
["textures/mob_effect/absorption.png", "textures/ui/absorption_effect.png"],
592+
["textures/mob_effect/bad_omen.png", "textures/ui/bad_omen_effect.png"],
593+
["textures/mob_effect/blindness.png", "textures/ui/blindness_effect.png"],
594+
["textures/mob_effect/conduit_power.png", "textures/ui/conduit_power_effect.png"],
595+
["textures/mob_effect/dolphins_grace.png", "textures/ui/dolphins_grace_effect.png"],
596+
["textures/mob_effect/fire_resistance.png", "textures/ui/fire_resistance_effect.png"],
597+
["textures/mob_effect/glowing.png", "textures/ui/glowing_effect.png"],
598+
["textures/mob_effect/haste.png", "textures/ui/haste_effect.png"],
599+
["textures/mob_effect/health_boost.png", "textures/ui/health_boost_effect.png"],
600+
["textures/mob_effect/hero_of_the_village.png", "textures/ui/village_hero_effect.png"],
601+
["textures/mob_effect/hunger.png", "textures/ui/hunger_effect.png"],
602+
["textures/mob_effect/instant_damage.png", "textures/ui/instant_damage_effect.png"],
603+
["textures/mob_effect/instant_health.png", "textures/ui/instant_health_effect.png"],
604+
["textures/mob_effect/invisibility.png", "textures/ui/invisibility_effect.png"],
605+
["textures/mob_effect/jump_boost.png", "textures/ui/jump_boost_effect.png"],
606+
["textures/mob_effect/levitation.png", "textures/ui/levitation_effect.png"],
607+
["textures/mob_effect/luck.png", "textures/ui/luck_effect.png"],
608+
["textures/mob_effect/mining_fatigue.png", "textures/ui/mining_fatigue_effect.png"],
609+
["textures/mob_effect/nausea.png", "textures/ui/nausea_effect.png"],
610+
["textures/mob_effect/night_vision.png", "textures/ui/night_vision_effect.png"],
611+
["textures/mob_effect/poison.png", "textures/ui/poison_effect.png"],
612+
["textures/mob_effect/regeneration.png", "textures/ui/regeneration_effect.png"],
613+
["textures/mob_effect/resistance.png", "textures/ui/resistance_effect.png"],
614+
["textures/mob_effect/saturation.png", "textures/ui/saturation_effect.png"],
615+
["textures/mob_effect/slow_falling.png", "textures/ui/slow_falling_effect.png"],
616+
["textures/mob_effect/slowness.png", "textures/ui/slowness_effect.png"],
617+
["textures/mob_effect/speed.png", "textures/ui/speed_effect.png"],
618+
["textures/mob_effect/strength.png", "textures/ui/strength_effect.png"],
619+
["textures/mob_effect/unluck.png", "textures/ui/unluck_effect.png"],
620+
["textures/mob_effect/water_breathing.png", "textures/ui/water_breathing_effect.png"],
621+
["textures/mob_effect/weakness.png", "textures/ui/weakness_effect.png"],
622+
["textures/mob_effect/wither.png", "textures/ui/wither_effect.png"],
623+
590624
// Mushroom
591625
["textures/blocks/brown_mushroom.png", "textures/blocks/mushroom_brown.png"],
592626
["textures/blocks/red_mushroom.png", "textures/blocks/mushroom_red.png"],

0 commit comments

Comments
 (0)