2 releases

0.1.1 Mar 4, 2024
0.1.0 Aug 10, 2023

#978 in Encoding

41 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.4–4MB
~76K SLoC