Corgam Posted September 28, 2020 Share Posted September 28, 2020 (edited) Hi, I have an item that stores entities' EntityType inside it's NBT when used (right clicked) on some living entity, but there is a problem with Entities that can be interacted with, when you right click them with Item, the itemInteractionForEntity(...) function is not run. Is there a way to skip entities' interaction and run item's itemInteractionForEntity(...) function instead? Edited September 30, 2020 by Corgam Quote Link to comment Share on other sites More sharing options...
ChampionAsh5357 Posted September 28, 2020 Share Posted September 28, 2020 This cannot apply to all living entities. You would probably need to use an event, either PlayerInteractEvent$EntityInteract or PlayerInteractEvent$EntityInteractSpecific, to handle the logic instead. 1 Quote Link to comment Share on other sites More sharing options...
Corgam Posted September 30, 2020 Author Share Posted September 30, 2020 On 9/29/2020 at 1:20 AM, ChampionAsh5357 said: This cannot apply to all living entities. You would probably need to use an event, either PlayerInteractEvent$EntityInteract or PlayerInteractEvent$EntityInteractSpecific, to handle the logic instead. Works like a charm! Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.