Hi I'm kinda rusty on my skills since I haven't modded in a long time, is there any way someone could either help me or walk me through making a drink item, this item poisons players who drink it unless they have poison immunity, but will cause regeneration far longer than the poison effect, along with a speed boost. I have a item image for the drink.
You can make a consumable that adds multiple effects. One would be "weakpoison" which is the same as when you step into liquid poison. There already is a poison immunity which acts as "blockStat" and prevents the poison from being applied. The item "antidote" applies the poison immunity effect.