How to create a node setup where collecting an item allows jumping for a limited time

Does it work like this ?
This is far from optimal setup, but a quick prototype to make sure stuff works.