-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use match instated of constants, fix reset again
- Loading branch information
1 parent
cb7422b
commit abb7be9
Showing
5 changed files
with
12 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
#Grant players collectibles | ||
execute if score collectible stats >= Goal1 constants as @a[current_world=true,tag=!collectibles.granted-one] run function lt:milestones/grant/one | ||
execute if score collectible stats >= Goal2 constants as @a[current_world=true,tag=!collectibles.granted-two] run function lt:milestones/grant/two | ||
execute if score collectible stats >= Goal3 constants as @a[current_world=true,tag=!collectibles.granted-there] run function lt:milestones/grant/there | ||
execute if score collectible stats >= Goal4 constants as @a[current_world=true,tag=!collectibles.granted-four] run function lt:milestones/grant/four | ||
execute if score collectible stats >= Goal5 constants as @a[current_world=true,tag=!collectibles.granted-five] run function lt:milestones/grant/five | ||
execute if score collectible stats >= Goal5 constants as @a[current_world=true,tag=!collectibles.granted-five] run function lt:milestones/grant/five | ||
|
||
execute as @a[tag=collectibles.admin] run function lt:milestones/util/update_from_score |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1 @@ | ||
scoreboard objectives add stats dummy | ||
scoreboard objectives add stats constants | ||
|
||
scoreboard players set Goal1 constants 5000 | ||
scoreboard players set Goal2 constants 10000 | ||
scoreboard players set Goal3 constants 15000 | ||
scoreboard players set Goal4 constants 20000 | ||
scoreboard players set Goal5 constants 25000 | ||
scoreboard objectives add stats dummy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
6 changes: 6 additions & 0 deletions
6
data/lt/functions/milestones/util/update_from_score.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
execute if score @s stats_controller matches 5 run scoreboard objectives setdisplay sidebar.team.dark_aqua | ||
execute if score @s stats_controller matches 10 run scoreboard objectives setdisplay sidebar.team.dark_aqua stats | ||
execute if score @s stats_controller matches 15 run team join stats @s | ||
execute if score @s stats_controller matches 20 run team leave @s | ||
scoreboard players set @s stats_controller 0 | ||
scoreboard players enable @s stats_controller |