2 releases

0.1.1 Mar 4, 2024
0.1.0 Aug 10, 2023

#1773 in Encoding

35 downloads per month

MIT license

27KB
630 lines

nbtrock

lib.rs

https://lib.rs/crates/nbtrock

安装

cargo add nbtrock

npm包

https://www.npmjs.com/package/nbtrock

安装

yarn add nbtrock


lib.rs:

读取与生成基岩版NBT结构

Example

读取NBT并打印

use crate::*;
fn read_example() -> IResult<()> {
    println!(
        "{}",
        NBT::from_path(Path::new("res/gold_farm.mcstructure"))?
    );
    Ok(())
}

Dependencies

~1.3–4.5MB
~78K SLoC