on rightclick on entity:
if name of entity is "Peter":
send "&8[&fPeter&8]: &7Hello there, I am Peter, but you can just call me Pete. I hope you have already talked to Gary, if you haven't go talk to him now, he wants you and then come back to me once you're done." to player
play sound "entity.villager.yes" with volume 1 and pitch 1 to player
wait 6 seconds
send "&8[&fPeter&8]: &7Now, for your first quest I want you to farm some wheat." to player
play sound "entity.villager.yes" with volume 1 and pitch 1 to player
wait 4 seconds
send "&8[&fPeter&8]: &7To be specific I want you to farm about a stack of wheat." to player
play sound "entity.villager.yes" with volume 1 and pitch 1 to player
wait 3 seconds
send "&8[&fPeter&8]: &7Here take this Hoe, its not the best but atleast it gets the job done. You can also upgrade tools at the Blacksmith." to player
play sound "entity.villager.yes" with volume 1 and pitch 1 to player
wait 1 tick
give player Wooden Hoe named "&8[&7Lvl 1&8] &fHoe"
play sound "entity.villager.yes" with volume 1 and pitch 1 to player
wait 4 seconds
send "&8[&fPeter&8]: &7Once you have gotten all the wheat i've asked for go to the Merchant, he will buy that off you for a copy of pennies." to player
play sound "entity.villager.yes" with volume 1 and pitch 1 to player
wait 3 seconds
send "&8[&fPeter&8]: &7If you ever want to do anymore quests be sure to go to the Quest Master." to player
play sound "entity.villager.yes" with volume 1 and pitch 1 to player
wait 3 seconds
send "&8[&fPeter&8]: &7Ok its time for you to go, good luck out there." to player
play sound "entity.villager.yes" with volume 1 and pitch 1 to player