Make peacefull mobs run away if they're hit
Fix various bugs due to changed spawnfunc signature