Arch Linux - NBTUtil

1) Install mono-git from here.

git clone https://aur.archlinux.org/mono-git.git
makepkg
pacman -U mono-git-6.12.0.170.r1395.ffae74c99a7-1-x86_64.pkg.tar.zst

2) Clone the NBTExplorer repository

git clone https://github.com/jaquadro/NBTExplorer.git

Navigate to NBTExplorer/NBTUtil and build the binaries.

msbuild NBTUtil.csproj

Copy the binaries from the folder bin/Debug to any other folder and run as follows.

┬─[minecraft@minecraft:/m/s/nbtutil]─[18:11:40]
╰─>$ ll
total 504K
-rw-r--r-- 1 minecraft minecraft  63K Feb 10 17:36 NBTModel.dll
-rw-r--r-- 1 minecraft minecraft  33K Feb 10 17:36 NBTModel.pdb
-rw-r--r-- 1 minecraft minecraft  33K Feb 10 17:36 NBTUtil.exe
-rw-r--r-- 1 minecraft minecraft  151 Feb 10 17:36 NBTUtil.exe.config
-rw-r--r-- 1 minecraft minecraft  15K Feb 10 17:36 NBTUtil.pdb
-rw-r--r-- 1 minecraft minecraft 346K Feb 10 17:36 Substrate.dll
mono NBTUtil.exe
WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v4.0.30319
Error: You must specify a path
Program Options:
      --path=VALUE           Path to NBT tag from current directory
      --print                Print the value(s) of a tag
      --printtree            Print the NBT tree rooted at a tag
      --types                Show data types when printing tags
      --json=VALUE           Export the NBT tree rooted at a tag as JSON
      --setvalue=VALUE       Set a single tag value
      --setlist=VALUE        Replace a list tag's contents with one or more 
                               values.
      --help                 Print this help message

Resources

AUR (en) - nbtexplorer
PKGBUILD - aur.git - AUR Package Repositories
NBTExplorer/NBTExplorer/Windows at master · jaquadro/NBTExplorer
A graphical NBT editor for all Minecraft NBT data sources - NBTExplorer/NBTExplorer/Windows at master · jaquadro/NBTExplorer