xokz's Particle Effects
作者:rebot | 分类:模组
Minecraft 版本: 1.20.3 1.20.4 23w51a 23w51b 24w03a 24w03b 24w04a 24w05a 24w05b 24w06a 24w07a 24w09a 24w10a 24w11a 24w12a 24w13a 24w14a 1.20.5-pre1 1.20.5-pre2 1.20.5-pre3 1.20.5-pre4 1.20.5-rc1 1.20.5-rc2 1.20.5-rc3 1.20.5 1.20.6 24w18a 24w19a 24w19b 24w20a 24w21a 24w21b 1.21-pre1 1.21-pre2 1.21-pre3 1.21-pre4 1.21-rc1 1.21 1.21.1 24w33a 24w34a 24w35a 24w36a 24w37a 24w38a 24w39a 24w40a 1.21.2-pre1 1.21.2-pre2 1.21.2 1.21.3 24w44a 24w45a 24w46a 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8 1.21.9 1.21.10 1.21.11 26.1 26.1.1 26.1.2 26.2
平台: datapack
标签: library utility
A Collection of Novel Visual Effects
xokz's Particle Effects aims to provide several useful particle effects for datapack creation.
This datapack is purely a library, and contains no ticking function. It exists only to be called by other datapacks, or to be modified.
Effects
(Check the gallery for visuals!)
Lightning ### Functions: `xze:effects/lightning/spawn` - Must be run **at** the origin point, and **as** the entity to move towards - To target a location instead, spawn a marker there and run as that ### Examples: `execute positioned ~ ~ ~ as @p run function xze:effects/lightning/spawn` - Put this in a repeating command block and see what happens ### Notes: - 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 ### PERFORMANCE IMPACT: Low Spiral # IN BETA, USE AT YOUR OWN RISK ### Functions: `xze:effects/spiral/spawn_with {particle:"",radius:,period:}` - Must be run **at** the origin point, and **as** the entity to move towards - To target a location instead, spawn a marker there and run as that - Draws a columnal spiral between the origin point and target entity with the given particle, radius, and period - Period is the distance the spiral moves forward between each loop ### Examples: `execute positioned ~ ~ ~ as @p run function xze:effects/spawn_with {particle:"minecraft:end_rod",radius:1,period:3}` - Put this in a command block, move away, and activate it ### Notes: - Increase the gamerule `max_command_sequence_length` to a larger number like 1000000, otherwise your spiral may get cut off ### PERFORMANCE IMPACT: High - Not recommended to run every tick! Circle ### Functions: `function xze:effects/circle/spawn_with {particle:"",radius:}` - Spawns a circle of the provided particle and radius perpendicular to the execution look direction ### Examples: `execute anchored eyes positioned ^ ^ ^5 run function xze:effects/circle/spawn_with {particle:"minecraft:end_rod",radius:2.5}` ### PERFORMANCE IMPACT: Neglegible Block Edge Outline ### Functions: `function xze:effects/block_outline/spawn` - Spawns the block edge outline effect with the default end rod particle `function xze:effects/block_outline/spawn_with {particle:""}` - Spawns the block edge outline effect using the provided particle ### Examples: `function xze:effects/block_outline/spawn_with {particle:"minecraft:flame"}` ### Notes: - Automatically snaps to the block grid ### PERFORMANCE IMPACT: Neglegible Block Verticies ### Functions: `function xze:effects/block_outline/spawn_with {particle:""}` - Spawns the provided particle at the 8 corners of the block ### Examples: `function xze:effects/block_outline/spawn_with {particle:"minecraft:flame"}` ### Notes: - Automatically snaps to the block grid ### PERFORMANCE IMPACT: Neglegible Line ### Functions: `xze:effects/line/spawn_with {particle:""}` - Must be run **at** the origin point, and **as** the entity to move towards - To target a location instead, spawn a marker there and run as that - Spawns a line of particles between the origin point and target entity ### Examples: `execute positioned ^ ^ ^10 as @p run function xze:effects/line/spawn_with {particle:"minecraft:end_rod"}` ### PERFORMANCE IMPACT: LowRun /function xze:demo/laser for a demo!
请登录后举报
暂无评论,抢个沙发吧~