isRare was being written as an int to NBT.