Jump to content

Recommended Posts

Posted

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

Posted

Hi, there is a much better way to do this, but this is merely a suggestion - try looking into ISmartBlockModel and return various .JSON models for the block. Hope that gives you an idea. Someone might have a better suggestion, though.

Development of Plugins [2012 - 2014] Development of Mods [2012 - Current]

Posted

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

Posted

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

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.