Es muss in der Event funktion heißen:
IF (EVENT_TYPE == EVENT_BLOCK && jumping == 0) {
jumping = 1;
}