function lobby:difficulty/visual/easy
playsound custom.note_block.pling.no_subtitle ambient @a[distance=..4] ~ ~ ~ 1 1.2

difficulty easy
scoreboard players set difficulty state 1

# lightsaber_easteregg
execute unless score pattern lsaber_easteregg matches 5 unless score pattern lsaber_easteregg matches 8 run scoreboard players set pattern lsaber_easteregg 1

execute if score pattern lsaber_easteregg matches 5 run scoreboard players add pattern lsaber_easteregg 1
execute if score pattern lsaber_easteregg matches 8 run scoreboard players add pattern lsaber_easteregg 1

execute if score generation state matches 10 run tellraw @a[distance=..4] ["",{"text":"[!] ","color":"gold","bold":true},{"translate":"msg.regenerate_floor","color":"gray"}]
scoreboard players set generation state 0
bossbar set generation visible false
