Skip to content

Commit 47dd3ac

Browse files
committed
🛠️ Fix Conversion to Blueprint
1 parent ce20aca commit 47dd3ac

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/blueprintFormat.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ export interface IBlueprintFormatJSON {
145145
}
146146

147147
export function convertToBlueprint() {
148-
console.error('Blueprint conversion is currently unsupported!')
148+
// Convert the current project to a Blueprint
149+
// NOTE - Nothing needs to be done here yet. The default functionality is sufficient.
149150
}
150151

151152
export function getDefaultProjectSettings(): ModelProject['animated_java'] {
@@ -539,7 +540,7 @@ export const BLUEPRINT_FORMAT = new Blockbench.ModelFormat({
539540

540541
Project.variants ??= []
541542
Project.last_used_export_namespace = Project.animated_java.export_namespace
542-
if (newModel) {
543+
if (newModel || Project.variants.length === 0) {
543544
new Variant('Default', true)
544545
}
545546
const updateBoundingBoxIntervalId = setInterval(() => {

test_blueprints/armor_stand.ajblueprint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"show_bounding_box": false,
1212
"auto_bounding_box": true,
1313
"bounding_box": [95, 32],
14-
"enable_plugin_mode": false,
14+
"enable_plugin_mode": true,
1515
"resource_pack_export_mode": "raw",
1616
"data_pack_export_mode": "raw",
1717
"display_item": "minecraft:white_dye",

0 commit comments

Comments
 (0)