scoreboard players set min rng 2
scoreboard players set max rng 21
function rng:interval

playsound custom.lucky_egg.crack.lucky ambient @a ~ ~ ~

execute if score out rng matches 2 run function items:obj/air_field/summon
execute if score out rng matches 3 run function items:obj/area_buff/burning_rage/summon
execute if score out rng matches 4 run function items:obj/area_buff/charger/summon
execute if score out rng matches 5 run function items:obj/area_buff/fire_repelant/summon
execute if score out rng matches 6 run function items:obj/area_buff/holy_water/summon
execute if score out rng matches 7 run function items:obj/area_buff/metal_skin/summon
execute if score out rng matches 8 run function items:obj/area_buff/spring_water/summon
execute if score out rng matches 9 run function items:obj/bear_trap/summon
execute if score out rng matches 10 positioned ~ ~.7 ~ run function items:obj/bee_missile/summon
execute if score out rng matches 11 run function items:obj/electric_charge/summon
execute if score out rng matches 12 run function items:obj/fire_point/summon
execute if score out rng matches 13 run function items:obj/ice_snake/summon
execute if score out rng matches 14 run function items:obj/ice_wall/summon
execute if score out rng matches 15 run function items:obj/meteor/summon
execute if score out rng matches 16 run function items:obj/meteor_rain/summon
execute if score out rng matches 17 run function items:obj/mini_sun/summon
execute if score out rng matches 18 run function items:obj/tornado/summon
execute if score out rng matches 19 run function items:obj/venom_gass/summon
execute if score out rng matches 20 run function items:obj/void_tear/summon
execute if score out rng matches 21 run function items:obj/zeus_discharge/summon
