Place a block under yourself every time you jump. Remove a block every time you crouch.
Commands, Transport
delays,