mojira.dev
MC-96974

Armor breaking on monster does not create particles anymore

The bug

When the armor a mob wears breaks because the mob is taking damage, no breaking particles are displayed anymore.

The reason

See this comment

How to fix this

This could be fixed by having the method public void renderBrokenItemStack(ItemStack p_70669_1_) of the net.minecraft.entity.EntityLivingBase class use the method public void func_175739_a(EnumParticleTypes p_175739_1_, double p_175739_2_, double p_175739_4_, double p_175739_6_, int p_175739_8_, double p_175739_9_, double p_175739_11_, double p_175739_13_, double p_175739_15_, int ... p_175739_17_) when the method is called by the server.

How to reproduce

  1. Set the difficulty to something other than "Peaceful" (/difficulty easy)

  2. Set the time to day (/time set day)

  3. Use the following command

    /summon Zombie ~ ~ ~ {ArmorItems:[{},{},{},{id:"diamond_helmet",Count:1b,Damage:363s}]}

    There are no particles when the helmet of the Zombie breaks

Linked issues

Comments

No comments.

marcono1234

(Unassigned)

Unconfirmed

armor, break, particle

Minecraft 16w06a

Retrieved