lilvortex

make me a datapck that adds a nuke like in wemmbu vids

Kodari AI
KodariSep 30 at 1:52 pm 1
NukeLauncher
Adds a craftable Nuke Launcher item that fires a powerful explosive projectile. When the projectile lands, it creates a massive explosion with a configurable radius, destroys terrain, deals significant damage, and leaves behind a distinctive crater. Includes a cooldown system to prevent spam, custom crafting recipe using rare materials, and visual/audio feedback when firing. The nuke uses a custom model and particle effects for an immersive experience. Players can arm and disarm the launcher, with safety features preventing use in protected areas. The explosion respects block destruction rules and can be tuned via a config file for server balance.
  • Add a Minecraft 1.21.4 datapack with a single launch function.

  • Make the launch create a timed, large vanilla TNT chain reaction with a warning.

  • Include install and test steps.

Created wemmbu_nuke_datapack with a wemmbu_nuke:launch function. It warns players nearby, then starts a 58-TNT chain reaction with a 5-second fuse. It can heavily damage terrain, so try it in a backup or test world.

  1. Download the ZIP using the export button.

  2. Extract it so wemmbu_nuke_datapack is inside your world’s datapacks/ folder.

  3. Run /reload.

  4. Run /datapack list to confirm it loaded.

  5. Test it with /function wemmbu_nuke:launch.

lilvortex

make it for 1.21.11 and make it so u get a fishing rod called nuke

Kodari AI
KodariSep 30 at 2:03 pm 1
  1. Update the pack metadata for Minecraft 1.21.11.

  2. Add a /function wemmbu_nuke:give command that gives the named rod.

  3. Detect casts of that rod and trigger the existing warned TNT strike at the bobber.

Updated the datapack for Minecraft 1.21.11. Get the Nuke fishing rod with /function wemmbu_nuke:give; casting it starts the existing warned TNT strike at the bobber’s location, with a 5-second fuse.

  1. Download the ZIP using the export button.

  2. Extract wemmbu_nuke_datapack into your world’s datapacks/ folder.

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

  4. Run /function wemmbu_nuke:give to get the rod, then cast it to test.

lilvortex

make it circle shaped fix the rod and make it more tnt make it about 1000 tnt

Kodari AI
KodariSep 30 at 2:13 pm 1

I’ll change the strike to a roughly 1,000-TNT circular disk, make the rod check more reliable, and initialize the scoreboard it needs on load.

Updated the nuke to spawn about 1,000 TNT in a circular disk around the bobber, all with the existing 5-second warning and fuse. I also changed the rod detection to check for the custom item data in either hand.

Warning: this blast can heavily damage terrain and cause severe lag. Test it in a backup world.

  1. Download the ZIP using the export button.

  2. Extract wemmbu_nuke_datapack into your world’s datapacks/ folder.

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

  4. Run /function wemmbu_nuke:give and cast the Nuke rod to test.

lilvortex

the rod still doesnt work and make it so i spawns where the player looks

Kodari AI
KodariSep 30 at 2:18 pm 1
  1. Fix the rod’s tick registration so the detection function actually runs.

  2. Keep the custom-rod check, but aim the strike along the player’s view instead of at the bobber.

  3. Stop the aim trace at a block or after 80 blocks, then launch the existing TNT circle there.

Fixed the rod’s tick registration so it can detect casts, and changed the strike to travel from the player’s eyes in the direction they’re looking. It detonates at the first non-air block it reaches, or at the 80-block limit if nothing is in the way. The existing roughly 1,000-TNT circle is unchanged.

  1. Download the ZIP using the export button.

  2. Extract wemmbu_nuke_datapack into your world’s datapacks/ folder.

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

  4. Run /function wemmbu_nuke:give and cast the Nuke rod to test.

The TNT strike can cause severe lag and terrain damage; test it in a backup world.

Kodari can make mistakes. Review important code before using.
Files
wemmbu_nuke_datapack
Code
15 49
wemmbu_nuke_datapack/data/wemmbu_nuke/function/circle_check.mcfunction
scoreboard players operation #x_squared wemmbu_nuke = #x wemmbu_nuke
scoreboard players operation #x_squared wemmbu_nuke *= #x wemmbu_nuke
scoreboard players operation #z_squared wemmbu_nuke = #z wemmbu_nuke
scoreboard players operation #z_squared wemmbu_nuke *= #z wemmbu_nuke
scoreboard players operation #radius_squared wemmbu_nuke = #x_squared wemmbu_nuke
scoreboard players operation #radius_squared wemmbu_nuke += #z_squared wemmbu_nuke
execute if score #radius_squared wemmbu_nuke matches ..324 run function wemmbu_nuke:circle_summon