Jump to content

Hello i'm new, animation issue


Non3t

Recommended Posts

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

You know this question has been asked and answered "a million times" before in various forms in this forum?

Along with all the potential "gotchas" that people commonly get wrong.

 

Anyway:

For the vanilla animations there is Item.getUseAnimation().

For the bow you will also need to understand ItemProperties https://forge.gemwire.uk/wiki/Item_Properties and how they interact with model overrides.

This is the vanilla bow model: https://github.com/misode/mcmeta/blob/assets/assets/minecraft/models/item/bow.json

 

Or here's some mods on github that reference UseAnim.BOW and so might similar to whatever you are trying to do?

https://github.com/search?q=UseAnim.BOW&type=code

 

That should be enough hints on what to research?

Ultimately, you would be better off looking at ItemInHandRenderer and ItemRenderer (then following the rabbit hole) to see how all this fits together.

 

Finally, this is a support forum not a learn modding forum.

Questions like "can you tell me how to", "do you have an example", "insert question answered on wiki" will likely just get ignored.

I only answered this question because it is your first post, I very nearly didn't.

Come back when you have a problem with something you have actually tried to implement. That way you will also have a better chance at understanding any answers you do get.

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

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.