Hi.
In my mod I made an item, and I would like this item to give a potion effect (in this case nausea) to the I player I aim with it.
As for now, I've got an Item class, which looks like this.
public class ItemCouffey extends Item {
@Override
public ItemStack onItemRightClick(ItemStack item, World world, EntityPlayer player){
System.out.println("it works"); // AMAZING
player.playSound("vf:sword.sound", 1.0F, 1.0F);
return item;
}
}
I have no clue how I cloud give a potion effect to a target.. ^^
Thanks !