I am aware that you can execute a command when a mob is hit, and utilize that command in my map, but I would need to know the player or team that it was hit by. I am making a tennis map where the chicken is the ball and it was picked up on reddit and someone asked me to implement it on their server.
The commands in the map know what block the chicken landed on, and whether that block is in or out, but doesn't adjust the score automatically as it doesn't know who hit the ball last, and what side the ball landed on. that would require the command blocks to know who hit the chicken last, or what team they were on. and that's where i'm stumped