RNA Crates.io Build Status Discord

RNA is a library for interpreting "Loot Table Script" designed by Minecraft Datapacks community.

Usage

```rust let ruby = rna::interpretfile("ruby.ult", "resource").unwrap(); let draconicore = rna::interpretfile("draconicore.ult", "resource").unwrap();

let mergedloot = rna::merge(&[ruby, draconicore], "resource").unwrap(); ```

rust if rna::is_loot_table_script("path/to/loot_table/file.json.merge") { // Do something }

Installation

By default, this library will not recognized vanilla loot table. (Totally not because I can't figure out how to do it) You need to specify the base_path to tell it where to look for the loot table files.