Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /scoreboard objectives add stamina dummy
- scoreboard players add @a stamina 0
- execute @a ~ ~ ~ detect ~ 1 ~ bedrock 0 fill ~3 1 ~3 ~-3 1 ~-3 bedrock 0 replace noteblock
- execute @a ~ ~ ~ setblock ~ 1 ~ noteblock
- execute @a ~ ~ ~ detect ~ 1 ~ bedrock 0 scoreboard players remove @s stamina 1
- execute @a ~ ~ ~ detect ~ 1 ~ noteblock 0 scoreboard players add @p stamina 1
- 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
- effect @a[scores={stamina=1}] slowness 3 3 true
- execute @a[scores={stamina=1}] ~ ~ ~ scoreboard players add @s[scores={stamina=1}] stamina 5
- effect @a[scores={stamina=2}] weakness 3 1 true
- execute @a[scores={stamina=100}] ~ ~ ~ scoreboard players remove @s[scores={stamina=100}] stamina 1
- execute @a[scores={stamina=0}] ~ ~ ~ scoreboard players add @s[scores={stamina=0}] stamina 1
- execute @a[scores={stamina=-10}] ~ ~ ~ scoreboard players add @s[scores={stamina=-10}] stamina 20
- execute @a[scores={stamina=-20}] ~ ~ ~ scoreboard players add @s[scores={stamina=-20}] stamina 30
- execute @a ~ ~ ~ execute @e[type=!armor_stand,rm=2,r=6] ~ ~ ~ detect ~ ~-.5 ~ air 0 execute @p ~ ~ ~ scoreboard players remove @s stamina 1
- execute @a ~ ~ ~ execute @e[type=!armor_stand,rm=4,r=6] ~ ~ ~ detect ~ ~-.5 ~ air 0 execute @p ~ ~ ~ scoreboard players remove @s stamina 1
- 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
- /execute @a[scores={stamina=99}] ~ ~ ~ title @s actionbar Stamina Full
- /execute @a[scores={stamina=50}] ~ ~ ~ title @s actionbar Stamina 50
- /execute @a[scores={stamina=2}] ~ ~ ~ title @s actionbar Stamina LOW Rest
Add Comment
Please, Sign In to add comment