Compatibility
Minecraft: Java Edition
1.21.x
1.20.3–1.20.6
Platforms
Creators
Details
Licensed MIT
Published last week
Updated last week
A collection of novel visual effects for datapack creation.
Lightning Effect
To make a bolt of lightning, execute the function xze:effects/lightning/spawn at the location the bolt should start, and as the entity the bolt should target. For example, the command block in the gif is running:
execute positioned ~ ~ ~ as @p run function xze:effects/lightning/spawn
- To change the lightning segment length and angles, you can change the ranges in the
generate_pitch_yaw_len.mcfunctionfunction. - To change the chance of a branch being made, change the value in the
lightning_branch_chance.jsonpredicate.
This effect uses no entities and only @s selectors, resulting in great performance.
Block Outline Effect
To do the block outline, simply run function xze:effects/block_outline/spawn at the block you want. It will automatically snap to the block grid, so don't worry about positioning it perfectly!



