#Applying potion effects

29 messages · Page 1 of 1 (latest)

fathom mural
#

Hey! I'm trying to mod some potion effects into my mod (applied when hit by an arrow), but I can't find anywhere the method used for applying it.

#

Here's what im trying to fix

#

import net.minecraft.potion.Potions; is already there

buoyant owl
fathom mural
#

unless its under something other than net.minecraft.potion

#

Ahh sorry I forgot to mention this is 1.21.3

#

in case that changes it

buoyant owl
#

Alt+enter with the typing cursor over it should give you a list of options

#

!yc StausEffectInstance 1.21.3
Edit: lol didn't notice the spelling mistake

tulip glacierBOT
#

no matches for the given class name, MC version and query namespace

buoyant owl
#

Oh

#

It's gone

#

Did they dataify it?

fathom mural
#

I'm not sure

#

I couldn't find anything in the most recent changelog tho

fathom mural
buoyant owl
#

I'd expect it to be mentioned in the blog, but maybe it's just cuz there wasn't one for 1.20.3. I'd check for places where it would be used - maybe EffectCommand.

fathom mural
#

I can't figure this out haha

#

Im very much a beginner-- is there anywhere where I could find the syntax I need?

#

I know there are the changelogs but I don't want to go through every one recentely 😢

fleet delta
#

net.minecraft.entity.LivingEntity#addStatusEffect(net.minecraft.entity.effect.StatusEffectInstance) it's still there

#

did you properly import StatusEffectInstance?

fathom mural
#

I don't think so

#

importing this I get an error

fleet delta
#

do you know java?

fathom mural
#

not very well

fleet delta
#

fix that first. importing class is java 101. it's very important that you know the language basics

fathom mural
#

Fair