So, for example, if i make an item like this, it's not gonna work?
@Override
public ActionResult<ItemStack> onItemRightClick(World world, EntityPlayer player, EnumHand hand)
{
ItemStack itemstack = player.getHeldItem(hand);
world.spawnEntity(new EntityItem(world, posX, posY, posZ, new ItemStack(new ExempleItem())));
return new ActionResult<ItemStack>(EnumActionResult.SUCCESS, itemstack);
}