Skip to content

Commit

Permalink
added support for MC version 1.20.4
Browse files Browse the repository at this point in the history
  • Loading branch information
defnot001 committed Jan 2, 2024
1 parent 00a076c commit 441a7ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand All @@ -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`.
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 441a7ed

Please sign in to comment.