Trying and failing to learn NBT

The perks will go away the next time you log in to a server or restart
the client, NBT should solve it but the ways I''ve tried have only
crashed the game so far