added blockBreak method (mainly copied from minecraft)