Jump to content

animated block?


rex41043

Recommended Posts

How can you make a animated texture for a item and/or block?

Not too sure what is the best way to do it.

Link to comment
Share on other sites

ya that's is where i got the idea for it to... let me gess direwolf20? xD

Link to comment
Share on other sites

There's a class called ModTextureAnimation on net.minecraft.src that does that.

I'm not totally sure how to use it though...

Did I help? Hitting 'Thank You' would be appreciated.

 

Soon, the lost city will rise from the bottom of the ocean, and spread it's technology across Minecraft.

Link to comment
Share on other sites

Didn't tested it but it looks like you have to do the following:

ModTextureAnimation animatedTex  = new ModTextureAnimation(1 /* The Icon ID*/, 1, CommonProxy.TERRAIN_PNG /* Your Texture file */, img /* The Image with the custom animations */, 1 /* the tick count between two "frames" of the animation */);
animatedTex.setup();
animatedTex.bindImage(Minecraft.getMinecraft().renderEngine);

Link to comment
Share on other sites

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.