···1122-# nu_plugin_dbus
22+# nu_plugin_nbt
3344Read Minecraft nbt in Nushell.
5566+## Installation
77+88+### Shell
99+1010+Build / download the plugin and run `plugin add`.
1111+1212+```nu
1313+plugin add path/to/nu_plugin_nbt
1414+```
1515+1616+Then to use it in your shell, run `plugin use`.
1717+1818+```nu
1919+plugin use nu_plugin_nbt
2020+```
2121+2222+### Script
2323+2424+Build / download the plugin binary. When invoking your script pass its path with `--plugin`.
2525+2626+```nu
2727+nu --plugin path/to/nu_plugin_nbt my_script.nu
2828+```
2929+630## Usage
3131+3232+If your file ends in .nbt, nushell will pick nu_plugin_nbt to open it.
733834```nu
935open data.nbt
1010-# - or -
3636+```
3737+3838+Otherwise, open it raw and pipe it to `from nt`.
3939+4040+```nu
1141open --raw data.dat | from nbt
1242```
13434444+### Preserve Data Types
4545+4646+Passing `--with-tags` to `from nbt` will tag data with NBT types.
4747+4848+This is useful if you need to convert back into NBT at some point. Note that this plugin does not handle writing (yet).
14491550