
#take UUID part 1, divide by 221 and take the remainder to get a random number between 0 and 220. Subtract 110 to shift the number range from -110 to +110. Then get the current X coord and subtract the random number from it.
execute at @s run execute store result score @s KyuDummy run data get entity @s UUID[0] .1
scoreboard players set @s KyuDummy2 221
scoreboard players operation @s KyuDummy %= @s KyuDummy2
scoreboard players remove @s KyuDummy 110
execute at @s run execute store result score @s PosX run data get entity @s Pos[0] 1
execute as @s run scoreboard players operation @s PosX -= @s KyuDummy
execute as @s run execute store result entity @s Pos[0] double 1 run scoreboard players get @s PosX



#same as before, but with the Z coord this time
execute at @s run execute store result score @s KyuDummy run data get entity @s UUID[2] .1
scoreboard players set @s KyuDummy2 221
scoreboard players operation @s KyuDummy %= @s KyuDummy2
scoreboard players remove @s KyuDummy 110
execute at @s run execute store result score @s PosZ run data get entity @s Pos[2] 1
execute as @s run scoreboard players operation @s PosZ -= @s KyuDummy
execute as @s run execute store result entity @s Pos[2] double 1 run scoreboard players get @s PosZ

#tp to 255y for optimal meaty-ore placement
execute at @s run tp @s ~ 255 ~

execute at @s run summon fireball ~ 255 ~ {Tags:["EventMeteor"],CustomName:"\"i\"",direction:[0.0,-0.2,0.0],power:[0.0,-0.2,0.0],ExplosionPower:2}



kill @s