#Need help with potion effect shenanigans

1 messages · Page 1 of 1 (latest)

paper current
#

i'm trying to make a way to extract potion effects from entities back into potion using an item for the extraction which stores the entity type and the ActiveStatusEffects and then a block which takes that item to extract the StatusEffects from it. Problem is that i'm having a lot of trouble storing the ActiveStatusEffects into nbt and into the block for the extraction. right now it just gives me an uncraftable potion every single time

frosty vapor
paper current
#

i just need some help with the code
here's what i've got so far

#

its a bit of a mess but it should give an idea of what i'm going for

left harbor
#

Uncraftable potion is correct, but you need to attach the potion data to the stack

#

See DataComponentTypes

paper current
#

noted

paper current
left harbor
left harbor
#

I don’t know how potion nbt is applied in 1.20.1

paper current
#

i thought that the setCustomPotionEffect function would do it but its still not working

left harbor
paper current
#

wait
i think i see what you mean

#

IT WORKED

#

now i just need to set the colors and stuff for the tanks and the potion and change how the effects are gotten
cuz rn instead of averaging the effects from all the needles from the tank it just takes data from the latest one