Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[ 1.16.5 ] How to cancel or replace particles of potion effects.


Recommended Posts

It may seem silly, but I just can't find how to cancel particles of potion effects or replace them, please tell me. I didn't even find a hint of calling them or drawing them

Link to post
Share on other sites

Your question is somewhat vague. Is this for your own effect or in general? Generally an effect can be set invisible (see EffectInstance#visible), which means it won't spawn any particles.

If you want to change them, you're going to have to set visibility to false (so the default particles don't spawn) and spawn your own in Effect#applyEffectTick.

Link to post
Share on other sites
7 hours ago, diesieben07 said:

If you want to change them, you're going to have to set visibility to false (so the default particles don't spawn) and spawn your own in Effect#applyEffectTick.

Forgive me if I am wrong, but wouldn't that only work for players, since potion effects are not synched to the client for other entities?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.