Silly NuShell plugin to read Minecraft NBT
Rust 78.1%
Nix 21.9%
5 1 0

Clone this repository

https://tangled.org/bwc9876.dev/nu_plugin_nbt https://tangled.org/did:plc:x7tlupbnqot7nu6udnffnv4h/nu_plugin_nbt
git@knot.bwc9876.dev:bwc9876.dev/nu_plugin_nbt git@knot.bwc9876.dev:did:plc:x7tlupbnqot7nu6udnffnv4h/nu_plugin_nbt

For self-hosted knots, clone URLs may differ based on your setup.

Download tar.gz
README.md

nu_plugin_nbt#

Read Minecraft nbt in Nushell.

Installation#

Shell#

Build / download the plugin and run plugin add.

plugin add path/to/nu_plugin_nbt

Then to use it in your shell, run plugin use.

plugin use nu_plugin_nbt

Script#

Build / download the plugin binary. When invoking your script pass its path with --plugin.

nu --plugin path/to/nu_plugin_nbt my_script.nu

Usage#

If your file ends in .nbt, nushell will pick nu_plugin_nbt to open it.

open data.nbt

Otherwise, open it raw and pipe it to from nbt.

open --raw data.dat | from nbt

Preserve Data Types#

Passing --with-tags to from nbt will tag data with NBT types.

This is useful if you need to convert back into NBT at some point. Note that this plugin does not handle writing (yet).