[][src]Crate rna

This is a library for interpreting "Loot Table Script".

Loot Table Script is created by Minecraft Datapacks community to create more robust loot table syntax.

Examples

use rna::utils;
 
let loot_a = utils::interpret_file("test/loot_a.ult", "resource").unwrap();
let loot_b = utils::interpret_file("test/loot_b.ult", "resource").unwrap();
 
let merged_loot = utils::merge(&[loot_a, loot_b], "resource").unwrap();

Modules

drop

MeguDrop module

error

Module containg every errors type in this crate

extension

Extension module

namespace

Namespace module

script

MeguScript module

utils

Utility module

Structs

Extension

Extension Script of MeguScript

MeguDrop

A data structure representing each item in the pools field.

MeguScript

MeguScript is a data structure for loot table script

Namespace

Namespace consist of 'prefix' and 'suffix'. where 'prefix' is any string before : and 'suffix' is any string after that