From f589c119a7a27bb0a9d129472bfb39ac236e8045 Mon Sep 17 00:00:00 2001 From: Josiah Glosson Date: Tue, 20 Aug 2024 15:03:02 -0500 Subject: [PATCH 1/2] animation_to_jsonea -> animation_to_json --- ...imation_to_jsonea.js => animation_to_json.js} | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) rename plugins/{animation_to_jsonea.js => animation_to_json.js} (85%) diff --git a/plugins/animation_to_jsonea.js b/plugins/animation_to_json.js similarity index 85% rename from plugins/animation_to_jsonea.js rename to plugins/animation_to_json.js index b87ceea5..826b6b7f 100644 --- a/plugins/animation_to_jsonea.js +++ b/plugins/animation_to_json.js @@ -2,19 +2,19 @@ (function () { var menuButton; - Plugin.register("animation_to_jsonea", { - title: "Animation to JsonEA Converter", + Plugin.register("animation_to_json", { + title: "Animation to JSON Converter", author: "Gaming32", - description: "Converts Blockbench animations to the json format for the Json Entity Animation mod", + description: "Converts Blockbench animations to the JSON format for the NeoForge mod loader", icon: "fa-cube", tags: ["Animation", "Minecraft: Java Edition"], variant: "both", version: "1.0.0", onload() { Formats.modded_entity.animation_mode = true; - menuButton = new Action("export_animation_to_jsonea", { - name: "Export Animations to JsonEA", - description: "Export Animations to Json Entity Animation format", + menuButton = new Action("export_animation_to_json", { + name: "Export Animations to JSON", + description: "Export Animations to JSON format", icon: "fa-file-export", condition: () => Format.animation_mode, click() { @@ -24,7 +24,7 @@ type: "Json Files", extensions: ["json"], name: `${animation.name.replaceAll(".", "_").replace("animation_", "")}.json`, - resource_id: "jsonea", + resource_id: "json_entity_animation", savetype: "text", content: JSON.stringify(generateJson(animation)) }); @@ -36,7 +36,7 @@ menuButton.delete(); } }); - + function generateJson(animation) { const result = { length: animation.length, From 91ba2b80c895960fe93de87fd0c30f9b840f28f2 Mon Sep 17 00:00:00 2001 From: Josiah Glosson Date: Tue, 20 Aug 2024 15:05:23 -0500 Subject: [PATCH 2/2] Bump the version and update plugins.json --- plugins.json | 8 ++++---- plugins/animation_to_json.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins.json b/plugins.json index 8d29d0ea..4de6aa8c 100644 --- a/plugins.json +++ b/plugins.json @@ -875,14 +875,14 @@ "min_version": "4.6.0", "variant": "both" }, - "animation_to_jsonea": { - "title": "Animation to JsonEA Converter", + "animation_to_json": { + "title": "Animation to JSON Converter", "author": "Gaming32", - "description": "Converts Blockbench animations to the json format for the Json Entity Animation mod", + "description": "Converts Blockbench animations to the JSON format for the NeoForge mod loader", "icon": "fa-cube", "tags": ["Animation", "Minecraft: Java Edition"], "variant": "both", - "version": "1.0.0" + "version": "1.0.1" }, "azurelib_utils": { "title": "AzureLib Animator", diff --git a/plugins/animation_to_json.js b/plugins/animation_to_json.js index 826b6b7f..50a04151 100644 --- a/plugins/animation_to_json.js +++ b/plugins/animation_to_json.js @@ -9,7 +9,7 @@ icon: "fa-cube", tags: ["Animation", "Minecraft: Java Edition"], variant: "both", - version: "1.0.0", + version: "1.0.1", onload() { Formats.modded_entity.animation_mode = true; menuButton = new Action("export_animation_to_json", {