Skip to content

Commit 76f4b3c

Browse files
committed
🚧 v1.6.3
1 parent 7aac7a2 commit 76f4b3c

File tree

3 files changed

+51
-7
lines changed

3 files changed

+51
-7
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"title": "Animated Java",
55
"icon": "icon.svg",
66
"description": "A Blockbench plugin that makes complex animation a breeze in Minecraft: Java Edition.",
7-
"version": "1.6.2",
8-
"display_version": "v1.6.2",
9-
"min_blockbench_version": "4.11.1",
7+
"version": "1.6.3",
8+
"display_version": "v1.6.3",
9+
"min_blockbench_version": "4.12.0",
1010
"variant": "desktop",
1111
"tags": [
1212
"Minecraft: Java Edition",

src/pluginPackage/changelog.json

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,15 @@
77
{
88
"title": "Changes",
99
"list": [
10+
"[BREAKING] Changed default resource pack structure: `animated_java:textures/item/export_namespace/` -> `animated_java:textures/blueprint/export_namespace/` & `animated_java:models/item/export_namespace/` -> `animated_java:models/blueprint/export_namespace/`",
1011
"Added changelog popup! (You're looking at it right now!)",
1112
"Added an export target for Minecraft 1.21.4",
13+
"Added support for item definitions (1.21.4)",
1214
"Added warning for loading Animated Java Data Packs in the wrong version.",
1315
"Improved internal MCB File compression",
1416
"Slightly improved empty JSON text rendering ([#322](https://github.com/Animated-Java/animated-java/issues/322)",
1517
"Added an Extract action to remove exported files from the Resource Pack and Data Pack",
16-
"Added 1.21.4 target MC version",
1718
"Changed missing assets and data folder for resource and data pack folder settings errors into warnings",
18-
"Added support for item definitions (1.21.4)",
19-
"Changed default resource pack structure: `animated_java:textures/item/export_namespace/` -> `animated_java:textures/blueprint/export_namespace/` & `animated_java:models/item/export_namespace/` -> `animated_java:models/blueprint/export_namespace/`",
2019
"Added a dialog and exception for exporting a blueprint with invalid cube rotations."
2120
]
2221
},
@@ -67,7 +66,7 @@
6766
"list": [
6867
"[BREAKING] Implemented improved scoreboard tag system. Please visit [this docs page](https://animated-java.dev/docs/rigs/tags) on the Animated Java website to learn more.",
6968
"[BREAKING] Removed individual variant summon functions. (`animated_java:namespace/summon/variant_name`) in favor of `animated_java:namespace/summon {args:{variant: 'variant_name'}}`.",
70-
"[BREAKING] Removed advanced folder options for Resource Packs. ",
69+
"[BREAKING] Removed advanced folder options for Resource Packs.",
7170
"Re-organized the file structure of AJ's UI files.",
7271
"Updated the model format order on the start menu to be organized alphabetically.",
7372
"Added incomptaibility warnings for installing, or having installed, plugins that are incompatible with Animated Java."
@@ -88,5 +87,25 @@
8887
]
8988
}
9089
]
90+
},
91+
"1.6.3": {
92+
"title": "v1.6.3",
93+
"author": "Titus Evans (SnaveSutit)",
94+
"date": "2025-01-15",
95+
"categories": [
96+
{
97+
"title": "Changes",
98+
"list": [
99+
"Updated to Blockbench 4.12.0",
100+
"Removed internal Transparent texture. The plugin will automatically create a transparent texture in your model's texture list if you previously used the internal one in any of your variants."
101+
]
102+
},
103+
{
104+
"title": "Fixes",
105+
"list": [
106+
"Fixed invalid JSON error when exporting into a resource pack without a block texture atlas."
107+
]
108+
}
109+
]
91110
}
92111
}

src/systems/modelDataFixerUpper.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { BoneConfig } from '../nodeConfigs'
33
import { PACKAGE } from '../constants'
44
import { openUnexpectedErrorDialog } from '../interface/dialog/unexpectedError'
55
import { NbtCompound, NbtList, NbtString, NbtTag } from 'deepslate/lib/nbt'
6+
import TransparentTexture from '../assets/transparent.png'
67

78
export function process(model: any): any {
89
console.log('Running MDFU...', JSON.parse(JSON.stringify(model)))
@@ -45,6 +46,9 @@ export function process(model: any): any {
4546
if (compareVersions('0.5.7', model.meta.format_version)) model = updateModelTo1_0pre8(model)
4647
// v1.4.0
4748
if (compareVersions('1.4.0', model.meta.format_version)) model = updateModelTo1_4_0(model)
49+
// v1.6.3
50+
if (compareVersions('1.6.3', model.meta.format_version))
51+
model = updateModelTo1_6_3(model as IBlueprintFormatJSON)
4852

4953
console.groupEnd()
5054

@@ -479,3 +483,24 @@ function updateModelTo1_4_0(model: any): IBlueprintFormatJSON {
479483

480484
return model as IBlueprintFormatJSON
481485
}
486+
487+
// region v1.6.3
488+
// eslint-disable-next-line @typescript-eslint/naming-convention
489+
function updateModelTo1_6_3(model: IBlueprintFormatJSON): IBlueprintFormatJSON {
490+
console.log('Processing model format 1.6.3', JSON.parse(JSON.stringify(model)))
491+
492+
// Automatically add a transparent texture to the model if it uses the old transparent texture in any of it's variants.
493+
for (const variant of model.variants.list) {
494+
if (Object.values(variant.texture_map).includes('797174ae-5c58-4a83-a630-eefd51007c80')) {
495+
const texture = new Texture(
496+
{ name: 'transparent' },
497+
'797174ae-5c58-4a83-a630-eefd51007c80'
498+
).fromDataURL(TransparentTexture)
499+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
500+
model.textures.push(texture.getSaveCopy())
501+
break
502+
}
503+
}
504+
505+
return model
506+
}

0 commit comments

Comments
 (0)