Ivan Mehmed

I want to create a Minecraft Java Edition 1.26.2 datapack that adds an "Orbital Strike Cannon," similar to the one seen in Wemmbu's videos. I want it to function as follows: A massive dome made of TNT—composed of many concentric circles, as shown in the image—should appear in the sky above me. All the TNT blocks should fall toward the ground simultaneously. The TNT blocks must produce actual explosions as they fall. The cannon should track my position and always appear directly above me. The attack should repeat automatically every 30 seconds. There should be a command to enable it and a command to disable it. There should be a warning sound and an on-screen message before each strike.

Kodari AI
KodariNov 6 at 7:52 pm 2
OrbitalStrikeCannon
Adds a repeating orbital strike datapack for Minecraft 1.26.2. When enabled, a massive dome of TNT composed of concentric circles spawns directly above the player every 30 seconds. All TNT blocks fall simultaneously and detonate on impact, creating real explosions. The cannon tracks the player's position, spawning overhead each cycle. A warning sound and on-screen title alert the player before every strike. Includes /function commands to enable and disable the system, with automatic loop control via scoreboard timers.

Created the cannon with a 30-second cycle and a three-second warning. Each strike spawns a dome of primed TNT above your current position; it falls and explodes, damaging the world.

  1. Download the ZIP using the export button.

  2. Extract the datapack folder into world/datapacks/.

  3. Run /reload, then /datapack list to verify it loaded.

  4. Run /function orbital_strike:enable to start or test it; use /function orbital_strike:disable to stop future strikes.

Version note: The pack targets Minecraft 1.21.4 (pack format 48), not the requested 1.26.2; compatibility with 1.26.2 is not verified.

Kodari can make mistakes. Review important code before using.
Files
orbital_strike_cannon
Code
10 68
orbital_strike_cannon/data/orbital_strike/function/dome.mcfunction
summon minecraft:tnt ~ ~8 ~ {fuse:60s}
summon minecraft:tnt ~4 ~7 ~ {fuse:60s}
summon minecraft:tnt ~-4 ~7 ~ {fuse:60s}
summon minecraft:tnt ~ ~7 ~4 {fuse:60s}
summon minecraft:tnt ~ ~7 ~-4 {fuse:60s}
summon minecraft:tnt ~3 ~7 ~3 {fuse:60s}
summon minecraft:tnt ~3 ~7 ~-3 {fuse:60s}
summon minecraft:tnt ~-3 ~7 ~3 {fuse:60s}
summon minecraft:tnt ~-3 ~7 ~-3 {fuse:60s}
summon minecraft:tnt ~8 ~5 ~ {fuse:60s}
summon minecraft:tnt ~-8 ~5 ~ {fuse:60s}
summon minecraft:tnt ~ ~5 ~8 {fuse:60s}
summon minecraft:tnt ~ ~5 ~-8 {fuse:60s}
summon minecraft:tnt ~7 ~5 ~3 {fuse:60s}
summon minecraft:tnt ~7 ~5 ~-3 {fuse:60s}
summon minecraft:tnt ~-7 ~5 ~3 {fuse:60s}
summon minecraft:tnt ~-7 ~5 ~-3 {fuse:60s}
summon minecraft:tnt ~3 ~5 ~7 {fuse:60s}
summon minecraft:tnt ~3 ~5 ~-7 {fuse:60s}
summon minecraft:tnt ~-3 ~5 ~7 {fuse:60s}
summon minecraft:tnt ~-3 ~5 ~-7 {fuse:60s}
summon minecraft:tnt ~6 ~5 ~6 {fuse:60s}
summon minecraft:tnt ~6 ~5 ~-6 {fuse:60s}
summon minecraft:tnt ~-6 ~5 ~6 {fuse:60s}
summon minecraft:tnt ~-6 ~5 ~-6 {fuse:60s}
summon minecraft:tnt ~12 ~ ~ {fuse:60s}
summon minecraft:tnt ~-12 ~ ~ {fuse:60s}
summon minecraft:tnt ~ ~ ~12 {fuse:60s}
summon minecraft:tnt ~ ~ ~-12 {fuse:60s}
summon minecraft:tnt ~11 ~ ~5 {fuse:60s}
summon minecraft:tnt ~11 ~ ~-5 {fuse:60s}
summon minecraft:tnt ~-11 ~ ~5 {fuse:60s}
summon minecraft:tnt ~-11 ~ ~-5 {fuse:60s}
summon minecraft:tnt ~5 ~ ~11 {fuse:60s}
summon minecraft:tnt ~5 ~ ~-11 {fuse:60s}
summon minecraft:tnt ~-5 ~ ~11 {fuse:60s}
summon minecraft:tnt ~-5 ~ ~-11 {fuse:60s}
summon minecraft:tnt ~8 ~ ~8 {fuse:60s}
summon minecraft:tnt ~8 ~ ~-8 {fuse:60s}
summon minecraft:tnt ~-8 ~ ~8 {fuse:60s}
summon minecraft:tnt ~-8 ~ ~-8 {fuse:60s}