#UseEntityCallback after other interactions events have return ActionResult.PASS

4 messages · Page 1 of 1 (latest)

magic jetty
#

Hello, I'm trying to to execute a piece of code after right-clicking an entity.
So originally I was using the UseEntityCallback, however, I want to only execute the code, if no other event has returned an ActionResult.CONSUME beforehand.
So as an Example, if I were to right-click the entity, and nothing would've happened originally, this is when I'd want to execute the code.
If i were to right-click a sheep with shears as an example, I wouldn't want to execute anything as the interaction of shearing occurred.

Thanks in advance for any help.

#

UseEntityCallback after other interactions events have return ActionResult.PASS

indigo jasper
#

It would be cool if there was a way to check here what the minecraft code would normally do, but i dont know if theres a way to do it directly. But I know a way to have the exact same result

#

find the method or methods which handle the right click for an entity and litteraly just copy the checks