Equips a sword, finds and kills the nearest skeleton within a 32-block radius, and then collects the dropped items by moving to the skeleton's previous position.