function projectileHitEntityHook(projectile, targetEntity){};
projectile: 实体
targetEntity: 被砸中的实体
当某个抛物线实体(如雪球,鸡蛋)砸中实体时触发
function projectileHitEntityHook(projectile, target) { Entity.setVelY(target, 9); } // snowballs send entities flying up
Template:ModPE