Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Trivial question, but how do you animate block textures? I've seen a few other threads on this, but the answers aren't definitive or aren't on the thread at all. I've figured out about the TextureFX, but for one thing, where do you even tie a specific instance with your block? Peeking around in the vanilla code that uses this seems like you don't... :/ Please help!

I like to make mods, just like you. Here's one worth checking out

Animated block/item textures are fairly simple. They require no code at all. To animate a texture, you have to make a image that has all the frames for the animation in it.

 

Example image:

ExampleAnimatedTexture.png

 

then, in the textures folder, you have a text file under the same name as the texture you want animated. So say my image was called awesomeSword.png, i would call the text file awesomeSword.txt. Now if you left it blank, the frames would be played through one after the other, with no breaks.

 

Look at this quote to see more about changing the speed of the animation:

http://www.minecraftforum.net/topic/1722368-15-icons-and-block-textures/page__st__140#entry21778101

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

  • Author

Hmm... I just tried this but it still treats it as a whole texture sheet and doesn't animate it. I've got the .txt file (it's named correctly); is this all I need or do I need to do something else as well to tell it it's an animated vertical sheet?

I like to make mods, just like you. Here's one worth checking out

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.