Skip to content

MAKER · BEDROCK

Make a lightning sword for Minecraft Bedrock

The prompt “a sword that strikes lightning” creates a Bedrock ability pack using a diamond sword. In the canonical example, hitting a target triggers lightning with a per-player cooldown. It is an ability attached to an existing item, rather than proof of a new item identifier, custom sword model or Java mod. Inspect the actual summary, script inventory and version requirements below before trying the effect in a copied world.

Try it right here

Free, no account — one mod a day, and a refusal never costs you one.

Actual generated output

"Storm Blade" — a diamond sword handed to you on spawn: on hit: lightning strikes your target (1s cooldown)

Format
Bedrock add-on
Edition
Minecraft Bedrock
Download
storm-blade.mcpack
Version context
Manifest minimum: 1.21.70
Included files (4)
README.txt
behavior_pack/manifest.json
behavior_pack/pack_icon.png
behavior_pack/scripts/main.js

Installation and verification

  1. Back up a Bedrock world. Open the mcpack or mcaddon with Minecraft on a device that supports local pack imports.
  2. Activate the imported behavior and resource packs on the same world when both are included.
  3. Read README and manifest.json for the minimum engine version, script dependencies and controls. Test in a copy of the world; console file-import workflows vary.

This file inventory is produced from the example prompt by the repository generator. Structural checks do not prove every gameplay interaction, performance level, device or future Minecraft version. Generated assets can conflict with other packs.

How pack validation works

How it works

  1. 1Start with “a sword that strikes lightning” in the generator. Check the resulting item, hit trigger and cooldown in its summary and scripts/main.js.
  2. 2Import the downloaded Bedrock pack on a supported device. Activate its behavior pack in a new or copied world and follow the README and script dependency declared in manifest.json.
  3. 3Enter the test world, confirm the documented sword is supplied and hit a suitable target away from important builds. Observe the lightning and cooldown, then check interaction with any other active packs.

Questions people ask

When does the lightning strike?

In the canonical example, the effect runs when the player hits a target with the supplied diamond sword. The generated summary reports a one-second cooldown. Read your own script for the actual trigger and values; changing the prompt can select a different supported item path.

Is the default sword a new custom item?

No. The first example adds a scripted ability to a vanilla diamond sword. An explicit custom-item request can use a different generator with a new identifier and resource files. The result's inventory and README tell you which output you received.

What if the pack imports but the sword does nothing?

Import success does not establish script execution. Confirm world activation, the manifest's minimum engine and script dependency, and the documented item and hit action. Keep the exact prompt, files and game version if you need to report an error.

Can I use this on Java Edition?

The canonical output is a Bedrock behavior pack. Java does not load its scripts or manifest. Use a Java creation workflow for Java Edition and inspect that output separately instead of renaming a Bedrock file.

Is the image an in-game screenshot of my sword?

The page's preview is an illustration of the subject. The actual file inventory describes what the example generates. Inspect and playtest your download to confirm its appearance and behavior; the illustration is not gameplay verification.

Capabilities and limitations

Bedrock behavior, resources and scripts are different from Java mods. Check the actual manifest minimum version and the generated README. Desktop/mobile local imports differ from console workflows. Only supported mechanics are generated; an import alone does not prove a script ran.

Generated files pass structural checks, and representative packs have automated runtime tests. Test your particular creation in a copy of the world. Read the validation methodology.

Choose a format and learn how to install it