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

How to check if certain particles exist nearby a block? [1.16.5]


Recommended Posts

Hi! I have created a block that runs a check every second. In that check it should find certain particles (e.g. cloud particles) for example in 6 block radius around the block and if they exist then play a sound. I know how to check if certain entity exists in specified range, but how to check if a certain particle exists? Are particles also entities? Thanks.

Link to comment
Share on other sites

Particles are not entities. Particles are also entirely client side and controlled by the graphics options. If the user disables particles in the options you will not be able to detect them (because they do not exist). The game will also simply despawn old particles if there are too many.

That said, you can get all particles from ParticleManager#particles (it is a private field, so you need reflection to access it). 

Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

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 Terms of Use.