ContentTweaker

ContentTweaker

27M Downloads

[Question]can u add potion effects

avidgamer5918 opened this issue ยท 2 comments

commented

I was wondering if there is a way u can add potion effects to a custom item?

commented

(Not a ContentTweaker dev.) You can make use of at least vanilla potion effects by using the performEffect(IEntity) method from IPotionEffect. You get an IPotionEffect from an IPotion, which in turn you get from the potion bracket handler. See IPotionEffect in the documentation.

commented

Can u show how that script would be written I cant figure out how one would write it.