###Randomly determines the meteor type###
execute store result score @s nitID run data get entity @s UUID[0]
scoreboard players set @s nitTemp 100
scoreboard players operation @s nitID %= @s nitTemp
execute at @s run function nitk:special/special_gen_ground

###Generates the correct meteor structure block###
execute if score @s nitID matches 0..24 at @s run place template nitk:meteor/iron ~-4 ~-5 ~-4
execute if score @s nitID matches 25..44 at @s run place template nitk:meteor/gold ~-4 ~-5 ~-4
execute if score @s nitID matches 45..59 at @s run place template nitk:meteor/redstone ~-4 ~-5 ~-4
execute if score @s nitID matches 60..79 at @s run place template nitk:meteor/slime ~-4 ~-5 ~-4
execute if score @s nitID matches 80..84 at @s run place template nitk:meteor/deep ~-4 ~-5 ~-4
execute if score @s nitID matches 85..89 at @s run place template nitk:meteor/alien ~-4 ~-5 ~-4
execute if score @s nitID matches 90..94 at @s run place template nitk:meteor/end ~-4 ~-5 ~-4
execute if score @s nitID matches 95..99 at @s run place template nitk:meteor/nether ~-4 ~-5 ~-4

###Marks the meteor as generated###
tag @s add nitGenerated