2

Any One Know How To Execute A Command On Jump?help

The Vileplume's Avatar The Vileplume3/9/23 8:52 pm
2 emeralds 214 9
3/13/2023 5:49 am
Juillyoom's Avatar Juillyoom
I Am Making A Sonic Map For 1.19.2
But I Am Not sure How To Execute A Command On Jump?
Posted by The Vileplume's Avatar
The Vileplume
Level 26 : Expert Button Pusher
49

Create an account or sign in to comment.

9

Juillyoom
03/10/2023 3:10 am
Level 42 : Master Skinner
history
Juillyoom's Avatar
/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
2
michaelo
03/10/2023 8:06 am
Level 32 : Artisan Chef
michaelo's Avatar
could shorten the execute command to execute as @a​[scores={Jumps=1..}] at @s run ...
3
Juillyoom
03/10/2023 8:54 am
Level 42 : Master Skinner
Juillyoom's Avatar
wouldn't work exactly the same, but yeah, technically yeah.
1
michaelo
03/10/2023 1:08 pm
Level 32 : Artisan Chef
michaelo's Avatar
how would it work differently?
1
Juillyoom
03/13/2023 5:49 am
Level 42 : Master Skinner
Juillyoom's Avatar
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
1
Spuduking
03/10/2023 2:43 pm
Level 32 : Artisan Procrastinator
Spuduking's Avatar
It would be more efficient I think
1
Juillyoom
03/10/2023 1:54 pm
Level 42 : Master Skinner
Juillyoom's Avatar
it's complicated
1
michaelo
03/12/2023 3:55 pm
Level 32 : Artisan Chef
michaelo's Avatar
i just realised you're using @r not @a lol. i'd be interested if you could explain :)
2
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome