this is wat i currently have, i want the chests to be regenerated like this, also any way to detect loot table of the generated loot?
set {_random} to a random integer between 20 and 64
add {_random} of baked potato named <gold>MOULDY POTATO to the loot
set {evx} to event-location's x-coordinate
set {evy} to event-location's y-coordinate
set {evz} to event-location's z-coordinate
set {_random2} to a random integer between 60 and 128
send "regenerating in {_random2} minutes"
wait {_random2} minutes
execute console command "/setblock {evx} {evy} {evz} minecraft:chest{LootTable:"minecraft:chests/dessert_pyramid"}"```
