I'm almost done my map, but I'm having a problem with my /give
commands.
When you use @p
to select the nearest player to give items to, it selects the nearest player to the command block. The problem is, the nearest player isn't always the activating player, i.e., the player that activated the command block.
How can I make sure that the item is given to the person who triggered the command block, who may not always be the nearest player?