Solved How to remove particles from block

Discussion in 'Plugin Development' started by DoggyCode™, Jan 14, 2018.

Thread Status:
Not open for further replies.
  1. Offline

    DoggyCode™

    How would I go about removing particles from a block? For example, remove the flame fumes from the mob spawner? I managed to remove the spinning mob, but now need to remove the flame fumes.

    Preferred without packets, but NMS can do.
     
  2. There is no particle event... you'd have to use ProtocolLib to catch when particles are sent, or find where particles are sent in the code and inject a listener, then clean up after yourself when the plugin's disabled.

    Edit: Also, to prevent big confusion, the mob spawner thing is an effect packet, not a particle packet (all that's sent is the effect type, then the client's game adds both the flames and smoke).
     
  3. Offline

    DoggyCode™

    Well, I found the solution. With doing some debugging, I found that your could use NMS to change the RequiredPlayerRange to 0. The default value of this is 16, and I noticed when I moved 16 blocks away, the spawner deactivated (I guess), and it stopped the blazing fumes. By changing this to 0, the spawner would never "activate," meaning my problem is solved. I didn't want it spawning mobs anyways as I just wanted an empty cage.

    Thanks for your input though!
     
Thread Status:
Not open for further replies.

Share This Page