Program item with nausea effect?

Si
2

I would like to have an item in Minecraft that gives a nausea effect after eating. How can I implement this?

Ke

ItemConsumeEvent