Skip to content

Commit

Permalink
Fixed difficulty having a chance to be no difficulty
Browse files Browse the repository at this point in the history
  • Loading branch information
Frustrated-Programmer committed Dec 23, 2024
1 parent 196f6fe commit 8c39313
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ fill -549 106 1970 -549 106 1971 minecraft:cyan_concrete replace
data modify block -549 106 1972 Items[6].Count set value 0
data modify block -549 106 1972 Items[7].Count set value 0
data merge block -561 114 1984 {front_text:{has_glowing_text:1b,color:"cyan",is_waxed:1b,messages:['{"text":"§fFind all §b20"}','{"text":"§f§oEaster Eggs"}','{"text":"§fto unlock"}','{"text":"§fDeepfrost"}']}}
execute if score @s[tag=do2.received_shulker] do2.config.dungeonDifficulty matches 5 run scoreboard players set @s[tag=do2.received_shulker] do2.config.dungeonDifficulty 4
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ execute if score $dungeon do2.config.eggsUnlockDeepfrost matches 1 run function
execute if score $dungeon do2.config.eggsUnlockDeepfrost matches 1 if entity @s[advancements={do2:hidden/adventuring/find_all_eggs=true}] run function do2:dungeon_setup/unlock_deepfrost

# Default to easy difficulty
execute unless score @s do2.config.dungeonDifficulty matches 0 run data merge block -557 113 1988 {Items:[]}
execute unless score @s do2.config.dungeonDifficulty matches 0 run data merge block -557 113 1987 {Items:[{Slot:0b,id:"minecraft:stone",Count:1b}]}
execute unless score @s do2.config.dungeonDifficulty matches 1..5 run data merge block -557 113 1988 {Items:[]}
execute unless score @s do2.config.dungeonDifficulty matches 1..5 run data merge block -557 113 1987 {Items:[{Slot:0b,id:"minecraft:stone",Count:1b}]}

execute if score @s do2.config.dungeonDifficulty matches 1 run data merge block -557 113 1988 {Items:[]}
execute if score @s do2.config.dungeonDifficulty matches 1 run data merge block -557 113 1987 {Items:[{Slot:0b,id:"minecraft:stone",Count:1b}]}
Expand Down

0 comments on commit 8c39313

Please sign in to comment.