execute unless score @s cooldown matches 1.. run execute store result score .random V run random value 1..100
execute unless score @s cooldown matches 1.. run execute at @s if block ~ ~-1 ~ bedrock run execute if score .random V matches 1..60 run tellraw @a [{"selector":"@s","color":"dark_purple"},{"text":" ist gestorben","color":"#DEDEDE","bold":false}]
execute unless score @s cooldown matches 1.. run execute at @s if block ~ ~-1 ~ bedrock run execute if score .random V matches 61..89 run tellraw @a [{"selector":"@s","color":"dark_purple"},{"text":" ist gestolpert","color":"#DEDEDE","bold":false}]
execute unless score @s cooldown matches 1.. run execute at @s if block ~ ~-1 ~ bedrock run execute if score .random V matches 90..99 run tellraw @a [{"selector":"@s","color":"dark_purple"},{"text":" ist auf den Boden der Tatsachen gefallen","color":"#DEDEDE","bold":false}]
execute unless score @s cooldown matches 1.. run execute at @s if block ~ ~-1 ~ bedrock run execute if score .random V matches 100 run tellraw @a [{"selector":"@s","color":"dark_purple"},{"text":" hat aufgehört zu existieren! (1%)","color":"gold","bold":false}]
execute unless score @s cooldown matches 1.. run execute at @s if block ~ ~-1 ~ blue_ice run execute if score .random V matches 1..60 run tellraw @a [{"selector":"@s","color":"dark_purple"},{"text":" ist gestorben","color":"#DEDEDE","bold":false}]
execute unless score @s cooldown matches 1.. run execute at @s if block ~ ~-1 ~ blue_ice run execute if score .random V matches 61..89 run tellraw @a [{"selector":"@s","color":"dark_purple"},{"text":" ist ausgerutscht","color":"#DEDEDE","bold":false}]
execute unless score @s cooldown matches 1.. run execute at @s if block ~ ~-1 ~ blue_ice run execute if score .random V matches 90..99 run tellraw @a [{"selector":"@s","color":"dark_purple"},{"text":" wollte zurück zum Eisfest","color":"#DEDEDE","bold":false}]
execute unless score @s cooldown matches 1.. run execute at @s if block ~ ~-1 ~ blue_ice run execute if score .random V matches 100 run tellraw @a [{"selector":"@s","color":"dark_purple"},{"text":" hat aufgehört zu existieren! (1%)","color":"gold","bold":false}]
$execute unless score @s cooldown matches 1.. run execute at @s unless block ~ ~-1 ~ bedrock unless block ~ ~-1 ~ blue_ice run tellraw @a [{"selector":"@s","color":"dark_purple"},{"text":"$(reason)","color":"#DEDEDE","bold":false}]

execute unless score @s cooldown matches 1.. run execute if score .random V matches 1 run execute store result score .random2 V run random value 1..10
execute unless score @s cooldown matches 1.. run execute if score .random V matches 1 run execute if score .random2 V matches 1 run tp @s -1 20 -32 0 0
execute unless score @s cooldown matches 1.. run execute if score .random V matches 1 run execute if score .random2 V matches 1 run effect give @s slowness 3 50 true

execute unless score @s cooldown matches 1.. run execute unless score .random2 V matches 1 unless entity @s[tag=check_active] if entity @s[tag=check] run tag @s remove check
execute unless score @s cooldown matches 1.. run execute unless score .random2 V matches 1 unless entity @s[tag=check_active] run kill @s
execute unless score @s cooldown matches 1.. run execute unless score .random2 V matches 1 if entity @s[tag=check_active] run playsound minecraft:entity.player.death player @a ~ ~ ~ 1 1
execute unless score @s cooldown matches 1.. run execute unless score .random2 V matches 1 if entity @s[tag=check_active] run scoreboard players add @s death.last_check 1
execute unless score @s cooldown matches 1.. run execute unless score .random2 V matches 1 if entity @s[tag=check_active] run scoreboard players add @s death.total 1
execute unless score @s cooldown matches 1.. run execute unless score .random2 V matches 1 if entity @s[tag=check_active] run tp @s 20 34 -59 0 10
execute unless score @s cooldown matches 1.. run execute unless score .random2 V matches 1 if entity @s[tag=check_active] run tag @s remove check_active
scoreboard players reset .random2 V
execute unless score @s cooldown matches 1.. run scoreboard players set @s cooldown 20
function system:give_book
