rna 0.1.0

'Loot-Table Script' interpreter
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# RNA [![Crates.io]https://img.shields.io/crates/v/rna]https://crates.io/crates/rna [![Build Status]https://travis-ci.com/oOBoomberOo/rna.svg?branch=master]https://travis-ci.com/oOBoomberOo/rna [![Discord]https://img.shields.io/discord/428791010244558850?color=blue&label=Discord&logo=discord]https://discord.gg/56ySADc

RNA is a library for interpreting "Loot Table Script" designed by [Minecraft Datapacks](https://discord.gg/56ySADc) community.

## Usage

```rust
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();
```

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