xokz's Particle Effects
A collection of novel visual effects.
Quick challenge
How far can you run before the mobs catch you?
Minecraft check
Confirm your run
Complete the quick check to get your code.
xokz's Particle Effects
A collection of novel visual effects for datapack creation.
Lightning Effect
To make a bolt of lightning, execute the function `xze:effects/lightning/spawn` as 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.mcfunction` function. - To change the chance of a branch being made, change the value in the `lightning_branch_chance.json` predicate.
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!