Posted August 16, 20214 yr I was wondering how I should go about making an animated sprite for my projectile, it's just a basic 2D sprite no 3D model or anything like that. I thought it would be as easy as a .mcmeta file, but like usual nope. Anything I could reference? I don't think Minecraft itself has anything I can look at, although I am looking. Any help would be much appreciated
August 16, 20214 yr 37 minutes ago, Babelincoln1809 said: Anything I could reference? I don't think Minecraft itself has anything I can look at Maybe the Ghast fireball thing?
August 16, 20214 yr Author Is the texture animated, or are you talking about the flame effect it has?
August 16, 20214 yr 1 hour ago, Babelincoln1809 said: Is the texture animated, or are you talking about the flame effect it has? you will need the .mcmeta were you tell minecraft how to animate the texture you can look at the water .mcmeta to understand how it works the texture of an animated object will is simple extends downwards, so like the normal texture size is 64*64 and you want 4 different textures the size of the texture would be 64*256 look also for that at the water texture Edit: this is an example of mine (the blood texture) Edited August 16, 20214 yr by Luis_ST
August 16, 20214 yr Author 5 hours ago, Luis_ST said: you will need the .mcmeta were you tell minecraft how to animate the texture you can look at the water .mcmeta to understand how it works the texture of an animated object will is simple extends downwards, so like the normal texture size is 64*64 and you want 4 different textures the size of the texture would be 64*256 look also for that at the water texture Edit: this is an example of mine (the blood texture) I made an mcmeta file for my png, and I thought that it would work as intended, but that's not the case. I looked at your example and the water one, but I dunno what's wrong with it. I've done this with items before with no issue, so I dunno why it's not working this time around. My image uses 3 frames, so 96 pixels vertically since it uses 32*32 sized sprites. Could that be the issue? here's the mcmeta file Spoiler { "animation": { "frametime": 2, "frames": [ 0, 1, 2 ] } }
August 16, 20214 yr Author 2 minutes ago, Luis_ST said: how do you named the mcmeta file? the image is called "slash.png" and I named the mcmeta file "slash.png.mcmeta"
August 16, 20214 yr Author 1 minute ago, Luis_ST said: both files are in the same folder? are there errors on the log? yea both are, I'm double checking everything like crazy rn lol. I don't see any in the log appearing either
August 17, 20214 yr Author 7 hours ago, Babelincoln1809 said: Here Looking at it, it may having to do with the rendering file itself https://pastebin.com/iY6Zjv6U
August 17, 20214 yr Author 2 hours ago, Luis_ST said: do not use @OnlyIn But isn't most rendering, if not all, handled on the client side of things? I tried it out, but it didn't do anything 2 hours ago, Luis_ST said: try with other RenderTypes I tried that, but I just get some interesting results. Nothing to solve the issue
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.