Jump to content

Recommended Posts

Posted (edited)

I would like to try to change the properties of player attacks when using a sword, both in terms of 1) the sword's animation and 2) in behavior. For example, first two hits in quick succession is a slash, and the third is a jab that knocks a mob back. I don't know where to start with the first, mods like Mo Bends doesn't have an answer for that in first person view either. Although, taking a look at Mr. Crayfish's gun mod there's an interesting solution there for first person animation.

 

As for the second, I could maybe do something with the hurt and knockback events, where I'd cancel knockback on the first and second slash, and allow knockback on the third. But I'd also need to know the current status of the sword's cooldown timer, which I don't know how to get. Any suggestions? 

Edited by Turtledove
Posted

If it's not possible to replace the animations for vanilla swords, is it just worthwhile replacing them instead? Making them unobtainable and adding my own. Although even then I"m not sure how I'd go about replacing the default holding animation, much less attacks.

Posted (edited)

I guess my main two questions are these: 

 

1) If I were replacing a vanilla entity's rendering, I'd just cancel it when it spawns and render my own. It doesn't seem like I can apply anything similar to the vanilla swords. Unless I do something wonky. 

 

2) Say I register my own item that replaces the vanilla swords and their renderers. Assuming I'm mimicking the vanilla implementation as far as held items go, how are item animations handled? I'm still in the entity renderer train of thought when it comes to model animation, where everything is done in my model class. 

Edited by Turtledove

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.