Particle
Namespace Mc.Scripting · Kind class (static)
public static class ParticleHelpers for the textual particle descriptions Player.SpawnParticle takes (the same syntax as the /particle command).
Methods
Section titled “Methods”| Member | Description |
|---|---|
static string Block(BlockState state) |
Block breaking particles of a block state. |
static string Dust(float red, float green, float blue, float scale = 1f) |
A coloured dust particle. |
static string Of(string key) |
A particle by its registry key (minecraft:flame, happy_villager, …). |
public static string Block(BlockState state)Block breaking particles of a block state.
Parameters
| Name | Type | Description |
|---|---|---|
state |
BlockState |
The block state. |
Returns string
public static string Dust(float red, float green, float blue, float scale = 1f)A coloured dust particle.
Parameters
| Name | Type | Description |
|---|---|---|
red |
float |
Red, 0-1. |
green |
float |
Green, 0-1. |
blue |
float |
Blue, 0-1. |
scale |
float = 1f |
Size, 0.01-4. |
Returns string
public static string Of(string key)A particle by its registry key (minecraft:flame, happy_villager, …).
Parameters
| Name | Type | Description |
|---|---|---|
key |
string |
The key; “minecraft:” is assumed when there is no namespace. |
Returns string