spawnEntityOnEntityFace函数式这样定义的: modpeAPI.spawnEntityOnEntityFace=function(ce,s,dd){ var ay=(getYaw(s)%360)*Math.PI/180; var bx=getPitch(s)*Math.PI/180; var xv,yv,zv; xvel=-Math.sin(ay)*Math.cos(bx); yvel=-Math.sin(bx); zvel=Math.cos(ay)*Math.cos(bx); var zidan=Level.spawnMob(Entity.getX(s)+xvel*2.1,Entity.getY(s)+yvel*2.1,Entity.getZ(s)+zvel*2.1,dd); setVelX(zidan,xvel*ce); setVelY(zidan,yvel*ce); setVelZ(zidan,zvel*ce); return ce }