Install a sword on the first slot, and a healing potion on the third. Assign a keyboard shortcut to activate the macro. When playing, just press the set keys and easily destroy all the pits. This is a convenient solution for quick and effective obstacle avoidance.