execute store result storage pctf:angle input.x_dec int 1 run random value 0..55
execute store result storage pctf:angle input.y_dec int 1 run random value 1..99
execute store result storage pctf:angle input.z_dec int 1 run random value 0..55

function pctf:logic/items/lucky_block/outcomes/positive/solo/gems/summon with storage pctf:angle input

scoreboard players remove #loop temp 1
execute if score #loop temp matches 1.. run function pctf:logic/items/lucky_block/outcomes/positive/solo/gems/start