Skip to content

Commit

Permalink
Move difficulty config score setting from load into start (0.12.3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bavadin authored Jun 25, 2024
1 parent 8333875 commit be27220
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,3 @@ function do2:scoreboard/config/config_lock

# Make sure that the redstone block keeping the iron door open is removed
setblock -551 119 1977 air

# Set user's preferred difficulty
execute if score $dungeon do2.run.difficulty matches 1 as @p[tag=do2.received_shulker] run scoreboard players set @s do2.config.dungeonDifficulty 1
execute if score $dungeon do2.run.difficulty matches 2 as @p[tag=do2.received_shulker] run scoreboard players set @s do2.config.dungeonDifficulty 2
execute if score $dungeon do2.run.difficulty matches 3 as @p[tag=do2.received_shulker] run scoreboard players set @s do2.config.dungeonDifficulty 3
execute if score $dungeon do2.run.difficulty matches 4 as @p[tag=do2.received_shulker] run scoreboard players set @s do2.config.dungeonDifficulty 4
execute if score $dungeon do2.run.difficulty matches 5 as @p[tag=do2.received_shulker] run scoreboard players set @s do2.config.dungeonDifficulty 5
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,10 @@ advancement revoke @a from do2:utility/root
# Make TangoCam spectator.
gamemode spectator TangoCam
gamemode spectator tangocam

# Set user's preferred difficulty
execute if score $dungeon do2.run.difficulty matches 1 as @p[tag=do2.received_shulker] run scoreboard players set @s do2.config.dungeonDifficulty 1
execute if score $dungeon do2.run.difficulty matches 2 as @p[tag=do2.received_shulker] run scoreboard players set @s do2.config.dungeonDifficulty 2
execute if score $dungeon do2.run.difficulty matches 3 as @p[tag=do2.received_shulker] run scoreboard players set @s do2.config.dungeonDifficulty 3
execute if score $dungeon do2.run.difficulty matches 4 as @p[tag=do2.received_shulker] run scoreboard players set @s do2.config.dungeonDifficulty 4
execute if score $dungeon do2.run.difficulty matches 5 as @p[tag=do2.received_shulker] run scoreboard players set @s do2.config.dungeonDifficulty 5
4 changes: 2 additions & 2 deletions Brilliance Datapack/data/do2/functions/version.mcfunction
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

# DATAPACK VERSION NUMBER: 0.12.2
# DATAPACK VERSION NUMBER: 0.12.3

tellraw @s ["",{"text":"The §o§n§aBrilliance Datapack§r's version is: [§b0.12.2§r] Check latest version "},{"text":"§o§b§nhere§r","clickEvent":{"action":"open_url","value":"https://github.com/trackedout/Brilliance/blob/main/Brilliance%20Datapack/data/do2/functions/version.mcfunction"}},{"text":"."}]
tellraw @s ["",{"text":"The §o§n§aBrilliance Datapack§r's version is: [§b0.12.3§r] Check latest version "},{"text":"§o§b§nhere§r","clickEvent":{"action":"open_url","value":"https://github.com/trackedout/Brilliance/blob/main/Brilliance%20Datapack/data/do2/functions/version.mcfunction"}},{"text":"."}]

0 comments on commit be27220

Please sign in to comment.