Mojira Archive
MCM-161

Killing mob via Behavior Pack differs from normal deaths

Release_662590

Summary: Sometimes we use interactions from the Behavior Pack to kill the mob. This allows the player to cause the interaction, and the death of the mob to be the result. For example, the mob I was using when I discovered this needed to be immune from damage, but I wanted to give the player a way to pick it back up after they had placed it in the world. I gave the mob a behavior which made it add a component_group with Health=0 when it was right clicked with a stick. I then added a loot table to make it drop a spawn egg for itself when it died, which the player could then pick up.

When bringing this into the game, the mob died, but did not drop the items from the loot table. It also didn't play the death sound we have associated with it.

Impact: I can't do the thing I described above.

Repro Steps:
1. Contact Quinn on Slack to receive the world I've sent to document this bug.
2. Open the world, go in creative mode, get a Sheep spawn egg, a piece of red dye, and a Stick.
3. Spawn the "Sheep"
4. Dye it red.
5. Right click the red "Sheep" with your stick.
6. Spawn another Sheep and dye it red.
7. /kill @e[type=sheep]

Observed Results:
The "Sheep" dies, but does not play the death sound or drop items when you "kill" it with the stick. It correctly plays the death sound and drops items via the /kill command.

Expected Results:
It should have the same death results regardless of the method of killing in this case.

Screenshots/Videos attached: No

Fixed

[Noxcrew] Joe Arsenault

2018-02-08, 09:40 PM

2018-03-02, 12:48 AM

2018-03-02, 12:48 AM

0

0

Future Release

-