playsound minecraft:entity.arrow.hit_player master @a 0 1 0 10000 0.7
tellraw @a [{"color":"gold","obfuscated":true,"text":"xx"},{"bold":false,"color":"yellow","obfuscated":false,"text":" A chest has generated in the center! "},{"color":"gold","obfuscated":true,"text":"xx"}]
setblock 0 0 0 air replace
execute if score world WaveCounter matches 0..19 run setblock 0 0 0 chest{LootTable:"kiwi2:entities/reward_chest/day_0_19_rewards"} replace
execute if score world WaveCounter matches 20..39 run setblock 0 0 0 chest{LootTable:"kiwi2:entities/reward_chest/day_20_39_rewards"} replace
execute if score world WaveCounter matches 40.. run setblock 0 0 0 chest{LootTable:"kiwi2:entities/reward_chest/day_40_59_rewards"} replace