I've decided to add a fidget spinner to my mod that spins on right click by switching through different textures to emulate a rotating fidget spinner. I've done most the work in creating the actual item, but I need help with the right click method.
@Override
public ActionResult<ItemStack> onItemRightClick(World worldIn, EntityPlayer playerIn, EnumHand handIn) {
return new ActionResult(EnumActionResult.PASS, playerIn.getHeldItem(handIn));
}
I'm assuming this will have something to do with it.(I am fairly new to programming so forgive me if its really simple)