Mojira Archive
MCM-278

Interact events don't work while riding the mob

Windows_Minecraft - Release_924386
1.5.0.4 Beta 12

Summary:

Note: Adrian Orszulak asked me to file a bug on this to determine if this is intended behavior or if this is something we should be able to do.

 

On a rideable mob with an interact component, the interact component no longer works while riding the mob. When the interact component requires an item, this happens as described. When the interact component uses an open hand, the interact event will override the ability to ride the mob. This is a separate issue to this bug, but is important to note so the test environment is set up correctly.

 

Impact:
We cannot have right click events work on entities while players are riding them. This would be especially useful for making more realistic vehicles.

Repro Steps:

  1. Make a world with a behavior pack and include the "interactbug.json" file (get this from Greg or Quinn on slack)
  1. Open the world and spawn a polar bear.
  2. Right click the polar bear with a stick. Notice it dies.
  3. Right click the polar bear with an open hand. You'll now be sitting on/in it.
  4. Right click the polar bear's hitbox with the stick while sitting on it. Notice the polar bear doesn't die.

Observed Results:
The polar bear lives.

Expected Results:
The polar bear dies.

Screenshots/Videos attached:
No

Fixed

[Noxcrew] Joe Arsenault

2018-05-21, 08:20 PM

2018-06-25, 07:51 PM

2018-06-25, 07:51 PM

0

0

Future Release

-