Hey,
Can you tell me how to get the event when right-clicking on an vanilla item. Not a custom one. I don't want to create a new item, I only want to add a feature to the old one.
I tried to create this class. But I don't know how to register/add this feature to the normal/old compass.
public class Compass extends ItemCompass {
public CompassTeleporter() {
super();
}
@Override
public ActionResult<ItemStack> onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer playerIn, EnumHand hand) {
System.out.println("Test");
}
}