Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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

  • Author

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.

  • Author

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

  • Author

the hand's render event seems to do what I want but I'm not really sure where to go from there. Where is the held items' rendering and attack animations done?

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...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.