再来点漂亮的粒子效果。太棒了!!!
为 BlanketCon 2025 制作的一系列自定义粒子!
Yippee 粒子*!当前包含的粒子有:可变色水母、可变色蜗牛、碰到方块后消失的简单云朵、彩色气泡,以及一个正在开发中的闪光粒子!
*Yippee 生物暂未包含(目前)。
粒子使用指南
关于原版粒子命令的各种操作指南。
自定义参数
在粒子 ID 后添加 {<参数名>:<参数值>}。
示例:参数名为 max_age,整数值为 50。
/particle happy:jellyfish{max_age:50} ~ ~1 ~
对于多个参数,请在每个参数之间添加逗号。
示例:额外参数 scale 的值为 5.0f
/particle happy:jellyfish{max_age:50, scale:5.0f} ~ ~1 ~
浮点数可以通过添加小数点来指定(例如 1.0 或 1.56),或者在末尾加上 "f"(例如 1f、1.56f)。
Vector3f 参数
Vector3f 参数可以通过 [<float>, <float>, <float>] 的形式添加值。
示例:参数 velocity_after_hit 的值为 [0.2, 0.3, 0.6]。
/particle happy:cloud{velocity_after_hit:[0.2, 0.3, 0.6]} ~ ~1 ~
对于使用 Vector3f 的颜色,其值预期应在 0f 到 1f 之间。
粒子文档:
除非另有说明,所有参数均可视为可选;若未提供,则使用默认值。
注意:此规则仅适用于 HAPPY 的粒子效果。Minecraft 的粒子效果几乎总是需要显式指定其参数。
水母
happy:jellyfish
scale (float):决定粒子的大小。
max_age (int):决定粒子持续的最大刻数。
bounces (int):决定水母在其最大生命周期内执行的弹跳次数。这会影响动画速度和移动距离。
color_mode (int):处理起始/结束颜色的方式 ID。
- 0:默认 - 在起始和结束颜色之间进行过渡,如所给定的起始/结束颜色所示。
- 1:随机颜色 - 如果起始/结束颜色保持默认,则从预设列表(主要是柔和色调)中选择一个随机颜色。如果不是默认值,则使用起始/结束颜色作为选择随机颜色的范围(例如,从白色到黑色将选择任意随机颜色)。
- 2:随机过渡颜色 - 如果起始/结束颜色保持默认,则从预设列表(主要是柔和色调)中选择 2 个随机颜色作为过渡颜色。如果不是默认值,则使用起始/结束颜色作为选择随机颜色的范围。
start_color (Vector3f):双色过渡的起始 RGB 颜色(注意:用法取决于颜色模式 - 见上文)。
end_color (Vector3f):双色过渡的结束 RGB 颜色(注意:用法取决于颜色模式 - 见上文)。
云
happy:cloud
scale (float):决定粒子的大小。
max_age (int):决定粒子持续的最大刻数。
max_age_random (int):粒子可能额外持续的最大刻数。将从 0 到此数字之间随机选取一个数值并加到最大年龄上。
hits_until_fade (int):粒子在开始淡出之前可以与方块接触的最大次数。每次接触之间有 10 刻的延迟,这意味着如果粒子处于角落,它会被计为撞击多个方块。
fade_amount (float):在淡出过程中每刻移除的透明度/不透明度量。Alpha 值介于 0 和 1 之间,因此使用 "0" 将导致无淡出效果,而使用 "1" 将导致瞬间消失。
velocity_after_hit (Vector3f):粒子与方块接触后添加的速度量。注意:此速度会在每次撞击方块后添加,而不仅仅是一次!
气泡
happy:bubble
scale (float):如果提供,则设置粒子的大小。否则,将选择一个均值为 0、标准差为 1 的随机三角形分布。
max_age (int):决定粒子持续的最大刻数。
max_age_random (int):粒子可能额外持续的最大刻数,从 0 到该数值之间随机选取。
蜗牛
happy:snail
scale (float): 如果添加,则设置粒子的大小。否则,默认为 0.15 加上少量数值。
max_age (int): 决定粒子持续的最大刻数(ticks)。
gravity_strength (float): 粒子的重力强度(每刻从 Y 轴速度中减去该值的二十分之一)。
speed (float): 粒子着陆后的移动速度。设置为 "0" 可使粒子着陆后不移动并立即开始缩小。
min_color (Vector3f): 在 “min_color” 和 “max_color” 之间随机选择颜色时的最小 RGB 值。
max_color (Vector3f): 在 “min_color” 和 “max_color” 之间随机选择颜色时的最大 RGB 值。
- 如果未添加
min_color 和 max_color,则会选择一个随机颜色(大多数情况下是漂亮的蓝色,但有时也是随机的饱和色)。
min_color 是否大于 max_color 实际上并不重要。
闪光(WIP)
彩色预设:
粉色闪光(ID 可能更改!):
happy:pink_sparkle
Have Another Pretty Particle. Yayyyyyyyy!!!
A collection of custom-made particles for use at BlanketCon 2025!
Yippee particles!* Current particles include a colorable jellyfish, colorable snails, simple clouds which disappear upon hitting a block, colored bubbles, and a WIP sparkle particle!
*Yippee creature not included (for now).
Particle How-To's
Various how-to's for vanilla particle commands.
Custom Parameters
Add a {<param name>:<param value>} after the particle id.
Example with param. name of max_age with an integer of 50.
/particle happy:jellyfish{max_age:50} ~ ~1 ~
For multiple parameters, add a comma between each parameter.
Example with an extra param. name of scale with a float value of 5.0f
/particle happy:jellyfish{max_age:50, scale:5.0f} ~ ~1 ~
Floats can be specified with a decimal point added(e.g. 1.0 or 1.56), or an "f' added (e.g. 1f, 1.56f).
Vector3f Paremeter
Vector3f parameters can be added with the value of [<float>, <float>, <float>]
Example with param. name of velocity_after_hit with a value of [0.2, 0.3, 0.6].
/particle happy:cloud{velocity_after_hit:[0.2, 0.3, 0.6]} ~ ~1 ~
For colors using Vector3f's, it is expected that the values are between 0f and 1f.
Particle Docs:
Unless specified otherwise, all parameters can be assumed to be optional, using a default value if not added.
Note: This only applies to HAPPY's particles. Minecraft's particles almost always require their parameters to be given.
Jellyfish
happy:jellyfish
scale (float): Determines the size of the particle.
max_age (int): Determines the max amount of ticks the particle will last.
bounces (int): Determines the amount of bounces the jellyfish will preform throughout its max age. This affects the animation speed, and distance traveled.
color_mode (int): ID of how to handle the start/end colors.
- 0: Default - Transitions between 2 colors, as given from the start/end colors.
- 1: Random color - If start/end colors are left as default, a random color from a preset list(mostly pastel colors) is chosen. If not default, the start/end colors are used as a range of where to pick the random color(e.g. white through black will choose any random color).
- 2: Random transition colors - If start/end colors are left as default, 2 random colors from a preset list(mostly pastel colors) will be chosen as the transition colors. If not default, the start/end colors are used as a range of where to pick the random colors.
start_color (Vector3f): The start RGB color of a 2 color transition (Note: usage changes based on color mode - see above).
end_color (Vector3f): The end RGB color of a 2 color transition (Note: usage changes based on color mode - see above).
Cloud
happy:cloud
scale (float): Determines the size of the particle.
max_age (int): Determines the max amount of ticks the particle will last.
max_age_random (int): The max number of extra ticks the particle may last. A random number from 0 to this number will be picked and added to the max age.
hits_until_fade (int): The max number of times the particle can make contact with a block until it begins to fade out. There is a 10 tick delay between hits, meaning that if it is in a corner, it will count as hitting many blocks.
fade_amount (float): The amount of alpha/opacity to remove each tick while fading out. Alpha is between 0 and 1, meaning that uses "0" will result in no fade out, and "1" will result in instant fadeout.
velocity_after_hit (Vector3f): The amount of velocity to add after the particles comes in contact with a block. Note: This velocity is added after EVERY block hit, not just once!
Bubble
happy:bubble
scale (float): If added, sets the size of the particle. Otherwise, a random triangular with mode 0, deviation 1 is chosen.
max_age (int): Determines the max amount of ticks the particle will last.
max_age_random (int): The max number of extra ticks the particle may last, chosen randomly from 0 to that number.
Snail
happy:snail
scale (float): If added, sets the size of the particle. Otherwise, 0.15 + a small amount is chosen.
max_age (int): Determines the max amount of ticks the particle will last.
gravity_strength (float): The strength of gravity for the particle (A 20th of this value is subtracted from the Y velocity every tick)
speed (float): The speed of the particle after landing on the ground. Set to "0" to not move and immediately start shrinking upon landing.
min_color (Vector3f): The min RGB color when choosing a random color between "min_color" and "max_color".
max_color (Vector3f): The max RGB color when choosing a random color between "min_color" and "max_color".
- If both
min_color and max_color are not added, a random color(most of the time a nice blue, but sometimes a random saturated color) is chosen instead.
- It doesn't actually matter if
min_color is greater than max_color.
Sparkle(WIP)
Colored Presets:
Pink sparkle(ID could change!):
happy:pink_sparkle
评论 0
登录后参与评分
还没有评论,来抢沙发吧