Minecraft wiki entry for Arrow, associated text: Arrows stuck in a block that were originally shot by dispensers or by players in Survival without the Infinity enchantment may be collected. Arrows originally shot by skeletons, strays, illusioners, pillagers, piglins, players in Creative, players using the Infinity enchantment, or duplicate arrows created by Crossbows with the Multishot enchantment cannot be collected. Arrows cannot be retrieved when they are stuck in a player or mob, and players or mobs do not drop them when killed. Retrievable arrows have a despawn timer of 60 seconds.