Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.8] Animating Blocks


Sakuya is my waifu
 Share

Recommended Posts

I just want to add simple rotation to the custom block model. After digging into minecraft files, i found out that actual animated "blocks"(Ender Crystal, Chest) don't have .json models neither blockstates. I tried messing around with codes and nothing ; - ; does anyone know how to animate .json files?

~Thanks

"The cycle of life and death continues. We will live, they will die."

Link to comment
Share on other sites

Hi

 

Block animation is best done in one of two ways -

For block texture animation (like lava) - use an animated texture.

 

For others like chest - use a TileEntitySpecialRenderer.

 

Some info here

http://greyminecraftcoder.blogspot.com.au/2015/01/tileentity.html

 

A working example here (MBE21)

https://github.com/TheGreyGhost/MinecraftByExample

 

You can't use JSON models to animate a block unless you rewrite the block every tick. 

 

-TGG

Link to comment
Share on other sites

So if i use TESR I won't need Blockstate and .json model, right?

And what if I just create new .json files with y axis rotations, and make block class change model every tick, let's say 5 rotation changes per 90deg. animation won't be smooth... any ways to fix that?

"The cycle of life and death continues. We will live, they will die."

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

 Share



×
×
  • Create New...

Important Information

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