I added a command block which tests if a player has a gold_nugget, followed by a comparator. That comparator leads to a command block which gives you 1 ladder, and also to another command block which clears 1 gold_nugget. But it won't clear it.
The command I used:
/clear @p minecraft:gold_nugget 1
Best Answer
/clear
's syntax:You have the "1" stated as the "Damage". You'll need to shift it over by specifying the "Damage" (which would be 0 for gold nuggets):