add difd target to build file + update script
save stored tileentity data to file

* all the patches in this commit were updated with a new header too