From 50d84d07b385d046613cc602206946a4faeb81f5 Mon Sep 17 00:00:00 2001 From: Misode Date: Mon, 13 Feb 2023 16:07:34 +0100 Subject: [PATCH] Fix #338 Add damage types --- package-lock.json | 28 ++++++++++++++-------------- package.json | 4 ++-- src/config.json | 6 ++++++ src/locales/en.json | 1 + 4 files changed, 23 insertions(+), 16 deletions(-) diff --git a/package-lock.json b/package-lock.json index 256c22d8..04920f36 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,8 +18,8 @@ "@mcschema/java-1.18.2": "^0.1.17", "@mcschema/java-1.19": "^0.1.41", "@mcschema/java-1.19.3": "^0.0.3", - "@mcschema/java-1.19.4": "^0.1.1", - "@mcschema/locales": "^0.1.75", + "@mcschema/java-1.19.4": "^0.1.2", + "@mcschema/locales": "^0.1.76", "@zip.js/zip.js": "^2.4.5", "brace": "^0.11.1", "buffer": "^6.0.3", @@ -619,17 +619,17 @@ } }, "node_modules/@mcschema/java-1.19.4": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@mcschema/java-1.19.4/-/java-1.19.4-0.1.1.tgz", - "integrity": "sha512-tuuOEI5uZv0VCL1FSJLtMQp8VIJlDIMLERaTSFPEZHd03gTwucGjKTYqYvB05gamhqVxWVRoSQl1Pv0MU0U5ig==", + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@mcschema/java-1.19.4/-/java-1.19.4-0.1.2.tgz", + "integrity": "sha512-5Y6kvsjpAyessswkWYE6GSxRnjo0lvs5Qd+x9StnpKDdV4AKWfqD3CBJZfKJUBYsJbPj8WQE35A9+GnrPg9k0A==", "dependencies": { "@mcschema/core": "^0.12.38" } }, "node_modules/@mcschema/locales": { - "version": "0.1.75", - "resolved": "https://registry.npmjs.org/@mcschema/locales/-/locales-0.1.75.tgz", - "integrity": "sha512-QwAExi0/xtw8tLXhzSthgKI202tzvODPGcvxQx4TgDRCtZvArzLOVpF5mF74OVO6voCl80IrhdhayRyhzg4vZw==" + "version": "0.1.76", + "resolved": "https://registry.npmjs.org/@mcschema/locales/-/locales-0.1.76.tgz", + "integrity": "sha512-CIZG1l5udsqK9M3iYBVRtk0/mMeHZt4CGQrWu0bXutTIlnXMOJxSxRTwUTo5WVEqiiYSgMzgYzthuWwB7yMy5w==" }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", @@ -5764,17 +5764,17 @@ } }, "@mcschema/java-1.19.4": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@mcschema/java-1.19.4/-/java-1.19.4-0.1.1.tgz", - "integrity": "sha512-tuuOEI5uZv0VCL1FSJLtMQp8VIJlDIMLERaTSFPEZHd03gTwucGjKTYqYvB05gamhqVxWVRoSQl1Pv0MU0U5ig==", + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@mcschema/java-1.19.4/-/java-1.19.4-0.1.2.tgz", + "integrity": "sha512-5Y6kvsjpAyessswkWYE6GSxRnjo0lvs5Qd+x9StnpKDdV4AKWfqD3CBJZfKJUBYsJbPj8WQE35A9+GnrPg9k0A==", "requires": { "@mcschema/core": "^0.12.38" } }, "@mcschema/locales": { - "version": "0.1.75", - "resolved": "https://registry.npmjs.org/@mcschema/locales/-/locales-0.1.75.tgz", - "integrity": "sha512-QwAExi0/xtw8tLXhzSthgKI202tzvODPGcvxQx4TgDRCtZvArzLOVpF5mF74OVO6voCl80IrhdhayRyhzg4vZw==" + "version": "0.1.76", + "resolved": "https://registry.npmjs.org/@mcschema/locales/-/locales-0.1.76.tgz", + "integrity": "sha512-CIZG1l5udsqK9M3iYBVRtk0/mMeHZt4CGQrWu0bXutTIlnXMOJxSxRTwUTo5WVEqiiYSgMzgYzthuWwB7yMy5w==" }, "@nodelib/fs.scandir": { "version": "2.1.5", diff --git a/package.json b/package.json index 79cd1ed6..3fdbe7cf 100644 --- a/package.json +++ b/package.json @@ -24,8 +24,8 @@ "@mcschema/java-1.18.2": "^0.1.17", "@mcschema/java-1.19": "^0.1.41", "@mcschema/java-1.19.3": "^0.0.3", - "@mcschema/java-1.19.4": "^0.1.1", - "@mcschema/locales": "^0.1.75", + "@mcschema/java-1.19.4": "^0.1.2", + "@mcschema/locales": "^0.1.76", "@zip.js/zip.js": "^2.4.5", "brace": "^0.11.1", "buffer": "^6.0.3", diff --git a/src/config.json b/src/config.json index 94451578..3cd5cc8a 100644 --- a/src/config.json +++ b/src/config.json @@ -135,6 +135,12 @@ "schema": "text_component", "noPath": true }, + { + "id": "damage_type", + "url": "damage-type", + "schema": "damage_type", + "minVersion": "1.19.4" + }, { "id": "chat_type", "url": "chat-type", diff --git a/src/locales/en.json b/src/locales/en.json index da60dbfe..d658a722 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -25,6 +25,7 @@ "copied": "Copied!", "copy_context": "Copy context", "cutoff": "Cutoff", + "damage_type": "Damage type", "developed_by": "Developed by", "dimension_type": "Dimension Type", "dimension": "Dimension",