Minecraft:Particle format
From SAS Gaming Wiki
More actions
Template:Exclusive When particles are spawned using the Template:Cmd command, by biomes or enchantments, they can be configured using Minecraft:NBT or Minecraft:JSON data.
Usage
When referenced from a biome or enchantment definition, a particle is defined using:
- Template:Nbt: The particle object<section begin="json format" />
- Template:Nbt: The id of the particle type, see Minecraft:Particles (Java Edition) for valid options
- Additional fields based on the type, see below<section end="json format" />
Configurations of particle types
Some particle types have configurations that need to be specified. These types and the configuration fields are:
- block, block_crumble, block_marker, dust_pillar, and falling_dust
- Template:Nbt: Contains the block state used for the particle.
- Alternative syntax:
- Template:Nbt: The Minecraft:resource location of the block to use.
- dragon_breath
- Template:Nbt: Optional, defaults to Template:Cd — Scaling of the velocity after randomness.
- dust
- Template:NbtTemplate:Nbt: Three floats representing the red, green, and blue components of the dust color. Each value must be between 0 and 1. Can alternatively be an rgb packed integer.
- Template:Nbt: Controls the size scale multiplier and lifetime multiplier of the particle. The particle's lifetime is a random integer from 8 to 40 game ticks, then multiplied by this scale value, with a minimum of 0.01 and a maximum of 4.
- dust_color_transition
- Template:Nbt: Three floats representing the red, green, and blue components of the start color. Each should be from 0 to 1. If any color value is less than 0 or higher than 1, the particle color has undefined behavior.
- Template:Nbt: Three floats representing the red, green, and blue components of the end color. Each should be from 0 to 1. If any color value is less than 0 or higher than 1, the particle color has undefined behavior.
- Template:Nbt: Controls the size scale multiplier and lifetime multiplier of the particle. The particle's lifetime is a random integer from 8 to 40 game ticks, then multiplied by this scale value, with a minimum of 0.01 and a maximum of 4.
- effect, instant_effect
- Template:Nbt: Optional, defaults to Template:Cd — Scaling of the velocity after randomness.
- Template:NbtTemplate:Nbt: Optional, defaults to white — Template:Nbt color
- entity_effect
- item
- Template:Nbt: Contains the item data used for the particle.
- Alternative syntax:
- Template:Nbt: The Minecraft:resource location of the item to use.
- sculk_charge
- Template:Nbt: The angle the particle displays at in Template:W.
- shriek
- Template:Nbt: The delay in ticks.
- trail
- Template:Nbt: The coordinates the trail particles will go to.
- Template:Nbt: The particle color, as an RGB integer.
- Template:Nbt: The number of ticks the particle will take to travel to the target.
- vibration
- Template:Nbt: The destination.
- Template:Nbt: Must be
block. - Template:Nbt: The block position.
- Template:Nbt: X
- Template:Nbt: Y
- Template:Nbt: Z
- Template:Nbt: Must be
- Template:Nbt: The duration of the move.
- Template:Nbt: The destination.
All other types don't have any configuration.
History
See also
Template:Navbox Java Edition technical Template:Navbox particles
Minecraft:de:Partikeldaten Minecraft:fr:Format de particule Minecraft:ko:입자 형식 Minecraft:pt:Formato de partícula Minecraft:uk:Формат частинок Minecraft:zh:粒子数据格式