How to Detect Player Jumps in Minecraft (Jump Detection)
Minecraft Java Edition 1.21+ and 26+ – Detect Jumps Using Scoreboard and Command Blocks
Want to detect when a player jumps in Minecraft?
In this tutorial you will learn how to track jumps using the scoreboard system and command blocks, allowing you to trigger events such as sounds, messages, effects, rewards, or custom abilities whenever the player jumps.
This method works in Minecraft Java Edition 1.21+ and 26+ and is perfect for parkour maps, minigames, and datapacks.
Before we begin, let's create the scoreboard that will detect jumps
scoreboard objectives add pulos minecraft.custom:minecraft.jump
Every time the player jumps, it will add 1 to their score
To start the detection, place 1 Repeat command block set to Always Active
Enter this command and replace the command after run with one of your choice
execute as @a if score @s pulos matches 1.. run say Jumping!
After the Repeat command block, place a Chain command block set to Always Active
The command below in the Chain command block will be responsible for resetting the score and stopping the execution of the previous command
execute as @a if score @s pulos matches 1.. run scoreboard players set @s pulos 0
You can place other Chain command blocks before the one that resets the score, and this way, execute more commands