
Create a Minecraft Java Edition DATAPACK (NOT a mod) with an accompanying resource pack, using vanilla mechanics only (functions, scoreboards, tags, predicates, advancements, particles, CustomModelData, armor stands). Target Minecraft Java Edition 26.2, using datapack pack_format 107 and a resource pack format compatible with 26.2. The theme is a cinematic, unavoidable planetary apocalypse where the world is dying and reality is collapsing, designed for challenge videos and apocalyptic survival gameplay. The datapack must simulate large-scale, progressive, and terrifying destruction rather than random explosions. The sky darkens and distorts over time, reality becomes unstable, and catastrophic cosmic events gradually destroy the planet. The longer the world exists, the worse everything becomes. There must be no permanently safe base; players are forced to keep moving and adapting. Include a nuclear explosion event that is rare or command-triggerable, featuring a massive circular destruction zone, an expanding shockwave that breaks blocks outward, intense light flashes, loud explosion sounds, screen effects (blindness, nausea), rapid fire spread, and terrain degradation where dirt turns into coarse dirt, then gravel, then air, and stone turns into cobblestone, then gravel, then air. Include a planet or giant meteor crash event with a custom model rendered in the sky that slowly descends over time. Upon impact, it creates a massive crater, triggers earthquakes, causes falling blocks and chunk collapse effects, darkens the sky, ignites fires, and permanently damages the world. Include cosmic and reality-break events such as darkened or distorted skies, massive energy beams striking from the sky to the ground, void-like or cosmic particle effects, random ground eruptions, and unstable environmental effects that escalate over time. Implement a black hole system that can be summoned by command or created by firing an object into the sun. The black hole must pull entities and blocks inward, destroy terrain near its core, use intense particles and sounds, and have a custom 3D-style model via CustomModelData. Killing the black hole or using a command should spawn a white hole, which violently pushes entities and blocks outward, spawns matter and light, emits extreme particle effects, and also has its own custom model. Implement a red giant sun event that can be triggered by command. When active, the sky turns red/orange, heat effects apply to players, fires start spontaneously, solar particle effects fill the sky, and the world feels overheated and dying. Include a reset command that fully restores the world state: sun returns to normal, sky and weather reset, effects cleared, black holes and white holes removed, and apocalypse progression stopped or reset. Include progressive world collapse mechanics where terrain and structures slowly decay over time, trees rot and fall, stone degrades, caves become unstable with cave-ins, and farming gradually fails unless actively maintained. Mining should be dangerous, and the environment should feel increasingly hostile. Provide optional controls via scoreboards or functions for destruction speed and difficulty modes (slow, normal, extreme), as well as commands to manually trigger major events like nukes, planet impact, black hole, white hole, red giant sun, and full reset. The final output must include: A clean, well-commented datapack structure A matching resource pack with pack.mcmeta, pack.png, and custom models for black hole, white hole, planet/meteor, and red giant sun Optimized logic to reduce lag Fully vanilla, no mods, no plugins Commands clearly exposed for triggering and resetting events