Jump to content

Register custom particle in the vanilla ParticleManager


Shelk

Recommended Posts

Hello,

 

My idea is basically to create custom particles with custom textures and then, with a plugin, use them. However, I absolutely have no idea where to start with. 

 

There is just one thing that I can come up with.

With a plugin, you can send a packet that shows particles with a certain id to a player. I saw on the wiki that this list contains the vanilla particles with their id : https://wiki.vg/Protocol#Particle

 

My guess is that I need to create a Particle class, and then register it with an id so I can send the packet with my plugin.

I found the register way :

Minecraft.getMinecraft().effectRenderer.registerParticle(idParticle, new MyParticle.Factory())

 

So, I need to make a Particle class and give a Factory ? How can I make the factory ? How can I give a texture to my particle ?

 

Thank you very much !

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.