Posted September 28, 20204 yr 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, 20204 yr by Corgam
September 28, 20204 yr 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.
September 30, 20204 yr Author 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!
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.