Posted June 15, 20205 yr My aim is to make "glyphs" out of particles -- images to decorate the casting of rituals. How can I create particles of different colours if ParticleType and BasicParticleType have no colourising variables and Particles themselves (and their subclasses) cannot be registered and have a texture bound to them? Side note: The way I am planning to make the images is to read an array of bytes from a png file in the mod resources. The Glyph class will then take those bytes in groups of 4 (red, green, blue and alpha for each pixel) and apply these attributes to a particle, then add it to the world. Particle has all of these variables in it, I just can't see how to utilise them, as I said above. GitHub in signature Edited June 15, 20205 yr by GenElectrovise GitHub in signature How to ask a good coding question: https://stackoverflow.com/help/how-to-ask Give logs, code, desired effects, and actual effects. Be thorough or we can't help you. Don't post code without putting it in a code block (the <> button on the post - select "C-type Language"): syntax highlighting makes everything easier, and it keeps the post tidy. My own mod, Magiks Most Evile: GitHub (https://github.com/GenElectrovise/MagiksMostEvile) Wiki (https://magiksmostevile.fandom.com/wiki/Magiks_Most_Evile_Wiki) Edit your own signature at https://www.minecraftforge.net/forum/settings/signature/
June 15, 20205 yr Howdy I'm not sure about the vanilla way of doing things, but it's pretty straightforward to make a custom particle renderer and then render whatever texture and colour you want. Eg see here for a working example https://github.com/TheGreyGhost/MinecraftByExample/tree/master/src/main/java/minecraftbyexample/mbe50_particle -TGG
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.