Skip to content

Commit

Permalink
Tweaks after first playtest
Browse files Browse the repository at this point in the history
  • Loading branch information
slicedlime committed Feb 9, 2021
1 parent 4b10406 commit 902907d
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 1 deletion.
2 changes: 2 additions & 0 deletions data/mob_dash/functions/end_game.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ execute if score $WinningTeams md_state matches 2.. run tellraw @a [{"text":"It'
execute if score $WinningTeams md_state matches 1 run tellraw @a ["",{"text":"Team ","color": "gold"},{"selector":"@e[type=area_effect_cloud,tag=md_winner]"},{"text":" wins!","color":"gold"}]

tellraw @a "Returning to menu in 60 seconds..."

scoreboard objectives setdisplay sidebar md_score_display
3 changes: 3 additions & 0 deletions data/mob_dash/functions/load.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ scoreboard players add $Timeout md_state 0
scoreboard players add $Scoring md_state 0
scoreboard players add $Difficulty md_state 0

execute store result score $Temp md_state run difficulty
execute if score $Temp md_state matches 1.. run scoreboard players operation $GameDifficulty md_state = $Temp md_state

function mob_dash:update_scoring_text
function mob_dash:update_difficulty_text

Expand Down
1 change: 0 additions & 1 deletion data/mob_dash/functions/reset.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

scoreboard players set $State md_state 0
scoreboard players reset * md_score
scoreboard players reset * md_score_display
scoreboard players reset * md_player_scores

tp @a ~ ~ ~
Expand Down
9 changes: 9 additions & 0 deletions data/mob_dash/functions/start_game.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,12 @@ scoreboard players set @e[type=area_effect_cloud,tag=md_team] md_score 0
scoreboard players set $Tick md_state 0
scoreboard players operation $EndTick md_state = $Timeout md_state
scoreboard players operation $EndTick md_state *= 1200 md_const

# Set appropriate difficulty
execute if score $GameDifficulty md_state matches 1 run difficulty easy
execute if score $GameDifficulty md_state matches 2 run difficulty normal
execute if score $GameDifficulty md_state matches 3 run difficulty hard

# Reset scores
scoreboard players reset * md_score_display
scoreboard objectives setdisplay sidebar
1 change: 1 addition & 0 deletions data/mob_dash/functions/tick_menu.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
gamerule doDaylightCycle false
gamerule doWeatherCycle false
gamerule doMobSpawning false
difficulty peaceful

time set noon

Expand Down

0 comments on commit 902907d

Please sign in to comment.