mojira.dev
MC-1079

Killing animals with fire aspect on the first hit does not cook the drops

I killed a pig with a fire aspect sword on the first hit.

What I expected to happen was...:

I expected it to drop cooked pork.

What actually happened was...:

Instead, it droped raw pork.

Steps to Reproduce:

1. Get a fire aspect sword.

2. Spawn a pig/cow/chicken.
3. Poison the animal (so you can do a one hit kill).
4. Wait till the animal has only 1/2 a heart.
5. Kill it with the sword.

Video: http://www.youtube.com/watch?v=cSFhVL_ES3M#t=1m39s

The problem is that the damage of the sword applies before the entity gets set on fire. By simply first setting it on fire and then calculating the damage (like it is with burning arrows) this problem chould be solved.

Linked issues

Comments 1

Just to add, this is inconsistent with that of the bow. A bow with Flame will actually cook any dropped meat. This behaviour should apply to swords too.

Panda4994

Erik Broes

Unconfirmed

animal, cooked, drop, enchantment, fire_aspect, item, meat, raw

Minecraft 1.4.2

Minecraft 1.4.4

Retrieved