function projectileHitEntityHook(projectile, targetEntity){};
projectile: 實體
targetEntity: 被砸中的實體
當某個拋物線實體(如雪球,雞蛋)砸中實體時觸發
function projectileHitEntityHook(projectile, target) { Entity.setVelY(target, 9); } // snowballs send entities flying up
Template:ModPE