## Function to regenerate the dragon egg, triggered when the Ender Dragon dies
advancement revoke @s only vb:technical/kill_dragon

execute in minecraft:the_end positioned 0 0 0 positioned over world_surface unless block ~ ~-1 ~ minecraft:dragon_egg run setblock ~ ~ ~ minecraft:dragon_egg