Inventory

Terraria is programmed in C#, which can be easily reverse-engineered. Player files are Rijndeal-encrypted serialized data with the password "h3y_gUyZ".

The file format is as follows: An inventory editor is available at https://tyler.menez.es/TerrariaEditor.exe.
 * 4-byte header
 * 7-byte length of character name
 * n-byte character name
 * 4-byte hair
 * 4-byte health
 * 4-byte health max
 * 4-byte mana
 * 4-byte mana max
 * 3-byte hair R,G,B
 * 3-byte skin R,G,B
 * 3-byte eye R,G,B
 * 3-byte shirt R,G,B
 * 3-byte undershirt R,G,B
 * 3-byte pants R,G,B
 * 3-byte shoe R,G,B
 * 4 armor slots, each:
 * 7-byte armor name length
 * n-byte armor name
 * 44 inventory slots, each:
 * 7-byte item name length
 * n-byte item name