Adjusted BaronyCraft's code for a release - check for RIGHT_CLICK_AIR event to cancel selection (requires item in hand) - changed some messages a bit - formatted the code to be more in line with my style
Check file name to make sure people don't overwrite C:\somefile or /etc/passwd Right clicking air cancels placement