Skip to content

Commit

Permalink
Add Lobby effects
Browse files Browse the repository at this point in the history
  • Loading branch information
DBTDerpbox committed Jul 25, 2021
1 parent 0e0883d commit 7b121d1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ execute if score #Store 4j.plist >= #Store 4j.prec run function 4jbattle:lobby/t
##Run ready check
function 4jbattle:lobby/ready/check

##Give effects
function 4jbattle:lobby/timer/effects

##Run this function again in 1 second
schedule function 4jbattle:lobby/timer/check 1s
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
##Resistance
effect give @a resistance 2 255 true

##Saturation
effect give @a saturation 2 255 true
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ execute unless score #Store 4j.plist >= #Store 4j.prec run function 4jbattle:lob
##Count down if there are enough players
execute if score #Store 4j.plist >= #Store 4j.prec run function 4jbattle:lobby/timer/run/count

##Give effects
function 4jbattle:lobby/timer/effects

##Run ready check
function 4jbattle:lobby/ready/check

0 comments on commit 7b121d1

Please sign in to comment.