Jump to content

Recommended Posts

Posted

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

Posted (edited)
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 by Luis_ST
Posted
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 ] } }

 

Posted
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.

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.