
scoreboard players operation tmp times_appeared = blazing_sword times_appeared
scoreboard players operation tmp times_appeared -= min times_appeared
scoreboard players operation tmp times_appeared *= factor times_appeared
function rng:percentage
execute if score tmp times_appeared > out rng run kill @e[tag=4,tag=rand_item]
