SHOW:
|
|
- or go back to the newest paste.
1 | /scoreboard objectives add stamina dummy | |
2 | scoreboard players add @a stamina 0 | |
3 | execute @a ~ ~ ~ detect ~ 1 ~ bedrock 0 fill ~3 1 ~3 ~-3 1 ~-3 bedrock 0 replace noteblock | |
4 | execute @a ~ ~ ~ setblock ~ 1 ~ noteblock | |
5 | execute @a ~ ~ ~ detect ~ 1 ~ bedrock 0 scoreboard players remove @s stamina 1 | |
6 | execute @a ~ ~ ~ detect ~ 1 ~ noteblock 0 scoreboard players add @p stamina 1 | |
7 | execute @a ~ ~ ~ detect ~ ~-.5 ~ air 0 execute @s ~ ~ ~ detect ~-1 ~-.5 ~1 air 0 execute @s ~ ~ ~ detect ~ ~-.5 ~-1 air 0 execute @s ~ ~ ~ detect ~-1 ~-.5 ~ air 0 execute @s ~ ~ ~ detect ~1 ~-.5 ~1 air 0 execute @s ~ ~ ~ detect ~1 ~-.5 ~ air 0 execute @s ~ ~ ~ detect ~ ~-.5 ~1 air 0 execute @s ~ ~ ~ detect ~-1 ~-.5 ~-1 air 0 execute @s ~ ~ ~ detect ~1 ~-.5 ~-1 air 0 /scoreboard players remove @s stamina 3 | |
8 | effect @a[scores={stamina=1}] slowness 3 3 true | |
9 | execute @a[scores={stamina=1}] ~ ~ ~ scoreboard players add @s[scores={stamina=1}] stamina 5 | |
10 | effect @a[scores={stamina=2}] weakness 3 1 true | |
11 | execute @a[scores={stamina=100}] ~ ~ ~ scoreboard players remove @s[scores={stamina=100}] stamina 1 | |
12 | execute @a[scores={stamina=0}] ~ ~ ~ scoreboard players add @s[scores={stamina=0}] stamina 1 | |
13 | execute @a[scores={stamina=-10}] ~ ~ ~ scoreboard players add @s[scores={stamina=-10}] stamina 20 | |
14 | execute @a[scores={stamina=-20}] ~ ~ ~ scoreboard players add @s[scores={stamina=-20}] stamina 30 | |
15 | execute @a ~ ~ ~ execute @e[type=!armor_stand,rm=2,r=6] ~ ~ ~ detect ~ ~-.5 ~ air 0 execute @p ~ ~ ~ scoreboard players remove @s stamina 1 | |
16 | execute @a ~ ~ ~ execute @e[type=!armor_stand,rm=4,r=6] ~ ~ ~ detect ~ ~-.5 ~ air 0 execute @p ~ ~ ~ scoreboard players remove @s stamina 1 | |
17 | execute @a ~ ~ ~ detect ~ ~-.5 ~ water 0 execute @s ~ ~ ~ detect ~-1 ~-.5 ~1 water 0 execute @s ~ ~ ~ detect ~ ~-.5 ~-1 water 0 execute @s ~ ~ ~ detect ~-1 ~-.5 ~ water 0 execute @s ~ ~ ~ detect ~1 ~-.5 ~1 water 0 execute @s ~ ~ ~ detect ~1 ~-.5 ~ water 0 execute @s ~ ~ ~ detect ~ ~-.5 ~1 water 0 execute @s ~ ~ ~ detect ~-1 ~-.5 ~-1 water 0 execute @s ~ ~ ~ detect ~1 ~-.5 ~-1 water 0 /scoreboard players remove @s stamina 1 | |
18 | /execute @a[scores={stamina=99}] ~ ~ ~ title @s actionbar Stamina Full | |
19 | /execute @a[scores={stamina=50}] ~ ~ ~ title @s actionbar Stamina 50 | |
20 | /execute @a[scores={stamina=2}] ~ ~ ~ title @s actionbar Stamina LOW Rest |