Jump to content

Recommended Posts

Posted (edited)

I want some of my items to have a blocking animation (like the one before 1.9) on right click. I've already implemented getItemUseAction and so on, but the animation seems to play only in third person view. The only example I've found in vanilla is the shield. It looks like I need an extra model for the blocking state. Can anyone explain the whole procedure to me? Do I have to register the blocking models too? Do I need to create a separate blocking model for every item? Can someone help me with the rotations of the model?

Edited by Melonslise
Posted

Ok it wasn't as simple as I thought. I had to add a custom property to my item. After that I needed to create a new model and specify it in the base model as a predicate or whatever. It works now. Not sure if still I need to register the model, though.

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.