
# -> Get how many players are online
scoreboard players set #or.player_amount_warning OverlyRealistic.General.ArbitraryData 0
execute store result score #or.player_amount_warning OverlyRealistic.General.ArbitraryData run \
    list

# -> If there are no players online then return
execute if score #or.player_amount_warning OverlyRealistic.General.ArbitraryData matches 0 run \
    return run \
        schedule function overly_realistic:main/debug/send_warning_0 15s

# -> Send warning
tellraw @a [{text:"\nWarning: Due to data changes, blocks that have been placed in your world in previous Overly Realistic versions may not work correctly, you can fix this by breaking the block and placing it back again!\n",color:"red"}]
execute as @a \
    at @s run \
        playsound entity.experience_orb.pickup player @s ~ ~ ~ 1 0
