Posted April 19, 20205 yr I'd like to play the totem animation with a custom item. I've found this (https://www.minecraftforge.net/forum/topic/74941-solved-use-totems-animation/) answer, but I'm not sure how to implement EntityRenderer#displayItemActivation into my code. How would I go about playing this animation with a custom item? Edited April 19, 20205 yr by ketchup_god
April 19, 20205 yr 16 minutes ago, ketchup_god said: How would I go about playing this animation with a custom item? You need a custom packet. Send your packet from the server to the client and when the packet is received call Minecraft.getInstance().gameRenderer.displayItemActivation(...) VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
April 19, 20205 yr Author Thanks for the reply, all this packet stuff is new to me and I'd like to see how to use them. Do you have any resources or places where I could learn how to use these because I've looked for documentation and resources but all I found was the link in my original post.
April 19, 20205 yr 28 minutes ago, ketchup_god said: Thanks for the reply, all this packet stuff is new to me and I'd like to see how to use them. Do you have any resources or places where I could learn how to use these because I've looked for documentation and resources but all I found was the link in my original post. Here is the forge documentation. It's a good place to look for things first, but it is very sparse. VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
April 19, 20205 yr The docs are on top of this website: https://mcforge.readthedocs.io/en/latest/networking/simpleimpl/ This is a bit outdated but the overal gist of it is still relevant: http://jabelarminecraft.blogspot.com/p/minecraft-forge.html
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.