Improved readme.

This commit is contained in:
Andrew Lalis 2022-03-05 14:23:40 +01:00
parent afad438104
commit affe220bd1
2 changed files with 17 additions and 5 deletions

View File

@ -1,2 +1,18 @@
# RandomHotbar
Utility for randomizing chosen items on a minecraft hotbar.
Simply download the latest version from the [releases page](https://github.com/andrewlalis/RandomHotbar/releases), then run it like so:
```
java -jar RandomHotbar.jar <settings>
```
Where `<settings>` is a specification of how likely it should be to select each hotbar slot. Each setting is specified as `<slot>:<probability>` Here are some examples:
- I want to select slots 1, 2, and 3, all with equal probability: `1:1, 2:1, 3:1`
- I want to select 5x as much of slot 2 as slot 1: `1:1, 2:5`
- I want half as much of slot 1, as slots 2 and 3: `1:0.5, 2:1, 3:1`
For example:
```
java -jar RandomHotbar.jar 1:1, 2:1, 3:1.5, 4:0.75
```

View File

@ -11,14 +11,10 @@
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.formdev</groupId>
<artifactId>flatlaf</artifactId>
<version>2.0.2</version>
</dependency>
<dependency>
<groupId>com.github.kwhat</groupId>
<artifactId>jnativehook</artifactId>