Skip to content

Commit bbb6d1c

Browse files
committed
rx: added versioning info. Issue fixed #10
1 parent a0cf930 commit bbb6d1c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,13 @@ Once you've copied `Load` into your datapack, navigate to the `#load:load` funct
200200

201201
Then, make sure you have defined an empty `#load:rx/playerdb` and in your own `#load` tag, you should define your personal load function. This will ensure PlayerDB's load will occur before yours. If PlayerDB does not exist, load will continue and you can detect this by checking the `PlayerDB load` score. For an example of all of this, checkout [EnderChest+](https://github.com/rx-modules/EnderChestPlus/tree/master/data/load) as an example of a datapack relying on PlayerDB.
202202

203+
### Versioning
204+
205+
You can detect the version of the datapack via two methods:
206+
207+
a) The version is stored in `storage`. `rx:info playerdb.version` as `major`, `minor`, and `patch`.
208+
b) As of V1.0.1, the version is also available in the `load` scoreboard under `rx.PDB.major`, `rx.PDB.minor`, `rx.PDB.patch`
209+
203210

204211
## Some examples
205212

0 commit comments

Comments
 (0)