Commands to run once:
/scoreboard objectives add timerCH dummy
/scoreboard objectives add shift stat.sneakTime
/scoreboard objectives add jump stat.jump
COLUMN 1
scoreboard players reset @a[score_timerCH_min=2] timerCH
execute @a[score_timerCH_min=2,score_timerCH=2,m=0] ~ ~ ~ gamemode 1 @p
execute @a[score_timerCH_min=1,score_timerCH=1,m=1] ~ ~ ~ gamemode 0 @p
scoreboard players reset @a[score_jump_min=1] jump
scoreboard players reset @a[score_shift_min=1] shift
scoreboard players add @a[score_jump_min=1,score_shift_min=1] timerCH 1
How it works:
See what's inside of each command block!
© Cimap. All Rights Reserved
This website is not endorsed, associated or affiliated with Mojang AB.