Posted August 4, 20205 yr I'm trying to get a simple particle to work with a custom sprite animation, but when the particle gets spawned in it looks like this. I've made a particle before that uses an item texture as its visual, which works perfectly. But it seems like this one isn't using the right texture atlas or something like that? I'm not sure what's going wrong. Particle class: https://github.com/tessa19950/TheBigBang_1.14.4/blob/master/src/main/java/com/homebrewCult/TheBigBang/particles/MagicClawParticle.java Particle type registry: https://github.com/tessa19950/TheBigBang_1.14.4/blob/master/src/main/java/com/homebrewCult/TheBigBang/init/ModParticleTypes.java Edited August 4, 20205 yr by Tessa
August 4, 20205 yr 7 minutes ago, Tessa said: Particle class: https://github.com/tessa19950/TheBigBang_1.14.4/blob/master/src/main/java/com/homebrewCult/TheBigBang/particles/MagicClawParticle.java Particle type registry: https://github.com/tessa19950/TheBigBang_1.14.4/blob/master/src/main/java/com/homebrewCult/TheBigBang/init/ModParticleTypes.java Repo is private or does not exist. Everything said above may be absolutely wrong. No rights reserved.
August 4, 20205 yr Author So after some fiddling around I noticed in the screenshot that my custom sprites were added to the Texture Atlas you see, It just wasn't showing the right part of that image which was because I had overwritten the getMinU, getMaxU, getMinV and getMaxV functions. The reason I'd overwritten them in the first place was because I had an issue before where the game crashed if i didn't overwrite them, but it appears that something else was causing that first problem, I fixed it somewhere along the way, but now the overwrites were breaking the sprite.
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.