Advancement for when player empties full composter

Hi, I wanted to change the output of a composter to include dirt as well as bonemeal, but since (to my knowledge) there isn't a way to change that directly, I decided to just have the dirt spawn on the composter when it's emptied. The problem I'm having is, I can't get an advancement to detect a player interacting with a full (stage 8) composter. Anyone done something similar before?
Continue to help post