Crate rna

Source
Expand description

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§

Structs§

  • Extension Script of MeguScript
  • A data structure representing each item in the pools field.
  • MeguScript is a data structure for loot table script
  • Namespace consist of ‘prefix’ and ‘suffix’. where ‘prefix’ is any string before : and ‘suffix’ is any string after that