added a configurable way so players can attack hostile mobs