2
Any One Know How To Execute A Command On Jump?help
I Am Making A Sonic Map For 1.19.2
But I Am Not sure How To Execute A Command On Jump?
But I Am Not sure How To Execute A Command On Jump?
Create an account or sign in to comment.
9
/scoreboard objectives add Jumps minecraft.custom:minecraft.jump
then put a repeating command block: execute as @r at @s if entity @s[scores={Jumps=1..}] run {insert command}
place another repeating command block: scoreboard players reset @r[scores={Jumps=1..}] Jumps
make the first command block always active
then make the second one always active
edit: while doing this make sure not to jump
then put a repeating command block: execute as @r at @s if entity @s[scores={Jumps=1..}] run {insert command}
place another repeating command block: scoreboard players reset @r[scores={Jumps=1..}] Jumps
make the first command block always active
then make the second one always active
edit: while doing this make sure not to jump
could shorten the execute command to execute as @a[scores={Jumps=1..}] at @s run ...
wouldn't work exactly the same, but yeah, technically yeah.
how would it work differently?
okay, so, long story short, the shortened one may mess up if the game lags slightly, making it break way easily, also may not totally break, altough could, remove the ability to spam jump, and get a delay
It would be more efficient I think