rna 0.1.0

'Loot-Table Script' interpreter
Documentation

RNA Crates.io Build Status Discord

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

Usage

let ruby = rna::interpret_file("ruby.ult").unwrap();
let draconic_ore = rna::interpret_file("draconic_ore.ult").unwrap();

let merged_loot = rna::merge(&[ruby, draconic_ore]).unwrap();
if rna::is_loot_table_script("path/to/loot_table/file.json.merge") {
    // Do something
}