Minecraft Java Edition – How to Detect a Player Jumping in Mid-Air

minecraft-commandsminecraft-java-edition

Im trying to do a command project, and I am trying to detect if someone presses space while mid air. Does anyone know how to do this with commands?
Thanks.

Best Answer

I'm pretty sure that's not possible, but you could maybe try to test if they are shifting? I am not sure how but I do know there is a scoreboard objective for that, you could probably look it up. Another option is to give them an item in which when dropped, the player receives the action by using testfor and execute commands. If you're curious how, look it up because I can't get to my world in which I did this kind of thing, but I got it so you can too.