Working on tile entity functions.