Particles in Animation

Minecraft Particles can be used in entity animations. For example, the phantom has an animation which emits the minecraft:phantom_trail particle constantly. Let's try to add a particle to our entity's attack animation.

This piece of code is located in our resource entity file. Here we defined the shortname ("l_explosion") for the particle we are going to use, "minecraft:large_explosion".

You can test a particle in-game with the /particle <namespace:particle_id> ~ ~2 ~ command. You can view the full list of Vanilla Particles here.

Now for the Blockbench part.

1) Right click the bone were your particle will be emitted from, and choose 'Add Locator' with the anchor icon. Name it something distinct, like 'l_expl_emitter'. Now move the emitter to the desired location.

Note: you can also use locators to define where a lead will leash to, if you name your locator 'lead'.

2) In the 'Animate' section, choose 'Animate Effects' on your timeline, then click on the '+' icon near the 'Particle' object.

3) You will see this menu on your left. 'Effect' asks for your particle's shortname, and 'Locator' asks for the name of your Locator/Emitter object.

Note: you can add sounds to animations in a similar way.

Now you're good to go! Save the model and the animations. If you did everything correctly, the defined particle will spawn whenever the entity attacks. Of course you could put another particle on the walking animation's timeline (for example, hooves making dust) in the same way.

Custom Particles

Custom particles are defined in the res/particles folder. As mentioned earlier on this page, you can summon particles using the '/particle' command (e.g in Behavior Animations) or using Resource Animation emitters. The best way to learn custom particles is to play around with the example files from the Vanilla Example resource pack and the Particle Example Pack, and of course, from the documentation on
Note: Skip to the end of this section for a tool to generate particle files visually.

File structure:

  • "identifier" is exactly what you'd expect: I'll use "tut:curvy_particle" and "tut_pink_hit" for the tutorial. File names do not matter.

  • "texture" defines the texture file. Not that a single image file can hold textures for many particles.

  • "material" is usually set to "particles_alpha" for particles.

That is the texture I'm going to use, it's size is 16*16. (res/particles/tut_particles.png). As you can see, it has 4 different textures in it, each of them being a 8*8. The upper row (starting/top left corner at at 0, 0) is the flipbook texture for "tut:curvy_particle" and the bottom row (top left corner at/starting at 0, 8). We'll define this in the "billboard_texture" component.

Here's the code for our first particle, "tut:curvy_particle". Our texture file is defined.

The components are quite complicated here, but they're explained well on the Particle doc. Let's move forward to the "minecraft:particle_appearance_billboard" component for now.

  • "texture_width" and "texture_height" defines the size of the image file itself.

  • "base_UV" in "flipbook" defines the top-left corner of the particle texture. For this particle it's at 0, 0, which is the upper left corner of the image itself. For the second particle, "tut:pink_hit", "base_UV" will be at 0, 8, which is 8 pixels lower then the first location.

  • "size_UV" defines the size of the particle's texture(8*8) on the image file(which is 16*16).

  • "step_UV" is how far the flipbook needs to step in order to get the next particle texture. In this case it's 8, 0, which is 8 pixels to the right.

  • "frames_per_second" is quite self-explainable. "max_frame" is the total number of frames for the particle.

The second particle, "tut:pink_hit".

Done! Now you have two custom particles that can be used in animations!

It's rather tiresome to create particles that way, comparable to creating models without Blockbench. Luckily, you can use Snowstorm, a Visual Particle Generator. It's especially convenient to download the VSC Snowstorm Extension, which is going to create an interactive UI in Visual Studio Code itself for .particle.json files.

/particle tut:pink_hit ~ ~2 ~

/particle tut:curvy_particle ~ ~2 ~

Defining Custom Sounds

You can find a more in-depth tutorial on custom sounds on here.

Minecraft can read sound files in the .ogg(recommended) or .wav format. (You can look up an .mp3 to .ogg converter online). Personally, I usually get my sound effects from

Sound files are located in subfolders of the res/sounds/ folder. My skele_yaklin sound files are located under res/sounds/mob/yaklin_moo.ogg and res/sounds/mob/yaklin_moo_2.ogg. (I don't have more sound effects currently, thus I will be using same ones over and over, but ideally one would need more of those).

Sound Definition

Now to define the sound's shortnames! This process is similar to defining block texture shortnames. It's done in res/sounds/sound_definitions.json.

We have 3 sound shortnames in total:

  1. "mob.yaklin.idle", which refers to a random sound file from the "sounds": [] array.

  2. "mob.yaklin.death" can be heard from the distance of 12 blocks: "max_distance": 12.0.

  3. And, lastly, mob.yaklin.hurt.


Now we are about to call our sounds. We can do it either through the /playsound <> slash command or automatically in res/sounds.json. Once again, this resembles block resource definition.

^ the file's structure. I recommend checking out the same file in the Example Resource Pack.

let's see how the sounds of the skele_yaklin are called in the entity's object.

  • The first "volume" and "pitch" are global, they are the starting point for every other of the entity's sounds. If you want the sounds to play exactly how they are, set both of them to 1;

  • "events" include the automatic sounds to be played. There are a couple Vanilla events that will trigger automatically(you can see the whole list on the page linked bove). All of the events call a sound's shortname.

  • "ambient" plays occasionally, for example the sheep "baah" sound.

  • "hurt" plays when the entity is hurt.

  • "death" plays on death.

  • "step" is the sound of the mob walking. I used the cow step sound, already included in the base game.

That's it! Turn up your Sound volume in Settings>Audio, spawn in your mobs, and listen to the melodic cacophony of their new voices!

Your progress so far:

What you've done:

  • Learned to include Particles in Animations;

  • Created two Custom Particles and learned to create more;

  • Defined custom Sounds for your custom entity;

What are you to do next:

  • Create custom biomes;

  • Create custom generated Structures;

  • Be introduced to Scripting;