From 441a7ed2d9ffe43bca85c0559f989a4721e60fa4 Mon Sep 17 00:00:00 2001 From: defnot001 Date: Tue, 2 Jan 2024 13:14:02 +0100 Subject: [PATCH] added support for MC version 1.20.4 --- readme.md | 7 ++++--- src/main.rs | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index 3c799e1..94d6209 100644 --- a/readme.md +++ b/readme.md @@ -14,6 +14,7 @@ Currently supported versions: - 1.19.2 - 1.19.3 - 1.19.4 +- 1.20.4 If you need a datapack an unsupported version, don't hesitate to open an issue or join my [Discord server](https://discord.gg/wmJ3WBYcZF). @@ -38,7 +39,7 @@ cd mc_scoreboards Build the program: ```shell -cargo build --release --all-features +cargo build --release ``` You should now have a binary in `target/release/mc_scoreboards`. @@ -50,13 +51,13 @@ This CLI program accepts multiple arguments and flags that can be used to custom The most basic usage on Linux and Mac will look like this: ```shell -./target/release/mc-scoreboards 1.19.3 +./target/release/mc-scoreboards 1.20.4 ``` On Windows, you will need to use the `.exe` file: ```shell -./target/release/mc-scoreboards.exe 1.19.3 +./target/release/mc-scoreboards.exe 1.20.4 ``` This will create a datapack in the current directory with the name `scoreboards_1.19.3.zip`. You can then load this datapack on your server and execute the functions in it. diff --git a/src/main.rs b/src/main.rs index 3de9946..80831fe 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,7 +7,7 @@ use clap::Parser; use cli::Cli; use datapack::generate_datapack; -const SUPPORTED_VERSIONS: &[&str] = &["1.16.5", "1.17.1", "1.18.2", "1.19.2", "1.19.3", "1.19.4"]; +const SUPPORTED_VERSIONS: &[&str] = &["1.16.5", "1.17.1", "1.18.2", "1.19.2", "1.19.3", "1.19.4", "1.20.4"]; fn main() { let cli = Cli::parse();