Non3t Posted May 14, 2023 Posted May 14, 2023 Hello I am new to this forum and programming I am just starting. Would it be possible for my food to have the animation of an arc and not the conventional one of eating, for example? Quote
warjort Posted May 14, 2023 Posted May 14, 2023 https://forge.gemwire.uk/wiki/Custom_Item_Animations Quote 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.
Non3t Posted May 14, 2023 Author Posted May 14, 2023 1 hour ago, warjort said: https://forge.gemwire.uk/wiki/Custom_Item_Animations thanks for the documentation, but how could I use the bow animation already existing? I don't want to create a custom one, that one already exists by default, I think. Quote
warjort Posted May 14, 2023 Posted May 14, 2023 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. Quote 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.
Non3t Posted May 14, 2023 Author Posted May 14, 2023 I understand and thank you for taking the time and trouble to respond. Quote
Recommended Posts
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.