From 1fc71a34a98ab9dc95399f34a3d530c5451e784c Mon Sep 17 00:00:00 2001 From: Zacharias Date: Wed, 11 Dec 2024 20:38:10 +0100 Subject: [PATCH] pack.mcmeta: - Added `supported_formats` to make minecraft show it as compatible for newer versions ReadMe.txt: - A file added to optional resource pack root since interested people might check out the optional resource pack resourcepack.md: - Added lines to clarify the use of the schema - Added lines to suggest the use of `supported_formats` --- .../quarter_circle_speedometer/ReadMe.txt | 6 ++++++ .../quarter_circle_speedometer/pack.mcmeta | 6 +++++- resourcepack.md | 18 ++++++++++++++++-- 3 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 Resourcepack/quarter_circle_speedometer/ReadMe.txt diff --git a/Resourcepack/quarter_circle_speedometer/ReadMe.txt b/Resourcepack/quarter_circle_speedometer/ReadMe.txt new file mode 100644 index 0000000..51dbcad --- /dev/null +++ b/Resourcepack/quarter_circle_speedometer/ReadMe.txt @@ -0,0 +1,6 @@ +Hello there! + +If you're reading this I assume you might be interested in making your own! + +You're in luck, I have provided a guide. Over on GitHub on how to do it! +Please check out https://github.com/zaze06/Speedometer/blob/master/resourcepack.md for a guide to get started \ No newline at end of file diff --git a/Resourcepack/quarter_circle_speedometer/pack.mcmeta b/Resourcepack/quarter_circle_speedometer/pack.mcmeta index 60eacac..fd8def5 100644 --- a/Resourcepack/quarter_circle_speedometer/pack.mcmeta +++ b/Resourcepack/quarter_circle_speedometer/pack.mcmeta @@ -1,6 +1,10 @@ { "pack": { "pack_format": 34, - "description": "A different speedometer" + "description": "A different speedometer", + "supported_formats": { + "min_inclusive": 34, + "max_inclusive": 57 + } } } \ No newline at end of file diff --git a/resourcepack.md b/resourcepack.md index ca70502..6681870 100644 --- a/resourcepack.md +++ b/resourcepack.md @@ -9,6 +9,13 @@ This feature is supported in ## `pack.mcmeta` The mcmeta file has no differences just make sure it's a valid pack_format for the version - 1.21.x: `"pack_format": 34` +- I recommend adding this, so that you dont need to update the format since the only real requirement is using version 6.2 or newer of this mod +```json +"supported_formats": { + "min_inclusive": 34, + "max_inclusive": 57 // This needs to be the leatest pack_format +} +``` ## File Locations So the speedometer is built upon 2 main things @@ -33,7 +40,7 @@ base ``` ## `speedometer.json` example *Standard speedometer.json file* -``` +```json { "background": "speedometer:meter/speedometer.png", "start": -45, @@ -77,4 +84,11 @@ base - scale The scale of how to modify the speed as a power, this is the speed that `maxSpeed` is based of. the way the speed passed to `maxSpeed` is calculated is `baseSpeed^scale`. - name - A string that is the name of this speedometer. *This is just used to send a log message about the speedometer* \ No newline at end of file + A string that is the name of this speedometer. *This is just used to send a log message about the speedometer* + +## JSON formating help +I have created a JSON schema for this that is available at [speedometer_config_schema.json](https://github.com/zaze06/Speedometer/blob/master/schemas/speedometer_config_schema.json), please refer to your Advanced Text Editor on how to add a schema, if your editor supports the `$schema` feature then add +```json +"$schema": "https://raw.githubusercontent.com/zaze06/Speedometer/refs/heads/master/schemas/speedometer_config_schema.json", +``` +in the root object, and the schema shuld apply, else if your editor supports it you can add the schema to all `speedometer.json` files \ No newline at end of file