Jump to content

Recommended Posts

Posted (edited)

Hello,

 

While looking at the Forge docs for 1.15 I saw the tutorial for animation with asm and armatures. However, this is slightly outdated and I cannot seem to find a good example to learn from in 1.15. By looking at this tutorial with example I have made it far enough to have an asm file and armature file complete as far as I know, but I can not figure out what methods are for sure needed in my block and tile entity classes, as well as how to bind the TileEntityRenderer to my tile entity and even if I need to create my own TileEntityRenderer class to use an asm. I have the files I currently have below if anyone would like to give me feedback, but I am mainly looking for a concrete example of how to do this. Thanks!

 

 

Currently The only way I know how to bind a TileEntityRenderer is to create your own class and extend TileEntityRenderer and then use the code:

Spoiler

image.thumb.png.5d42c580e43feef019e2602f08e8fe17.png

However, I dont know if this works with asm files.

 

Block:AnimatedShaftBlock.java

Spoiler

image.thumb.png.ab81c6265bb5267cbc7b0073f832cf08.png

Tile Entity:AnimatedShaftTileEntity.java

Spoiler

image.thumb.png.19509cb2fa14c68ea18d993896e48868.png

asm: animated_shaft.json

Spoiler

image.png.212af3fb2e95f4f41d0cd3dd847f5683.png

armature: animated_shaft.json

Spoiler

image.thumb.png.e073318b4f4546fe7df2e5fdfa8f994f.png

Model:animated_shaft.json

Spoiler

image.png.159b7245331b4fdba8b5a78b45104922.png

BlockState:

Spoiler

image.png.6e9026c0a1f5279cb55f8b6b27cb843e.png

 

Edited by FyreDay
added pictures in spoilers
  • 4 weeks later...

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.