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

Hello!

 

When porting my crossbow mod to SMP, I've been relatively successful except for one problem. The problem is shown in the video below, but I'll explain it anyway. Seems to be a problem with RotationYaw, although I have tried sending my own packets from the server to update it client-side with no success.

 

[embed=650,480]

[/embed]

 

Any help would be greatly appreciated. Thanks for your time.

Are you ussing default arrows?

Default arrows dont have many ticks.

Make custom arrows and put higher tick rate than default arrows.

  • Author

Are you ussing default arrows?

Default arrows dont have many ticks.

Make custom arrows and put higher tick rate than default arrows.

 

Well in the video I have the EntityTracker set to update it every 0.05s. I've also tried lower, higher, same as the default arrow, etc with no success.

 

The vanilla EntityArrow Tracker Entry:

this.trackEntity(par1Entity, 64, 20, false);

 

Mine (currently):

MinecraftForge.registerEntity(net.minecraft.src.EntityWoodBolt.class, this, 0, 64, 5, true);

  • Author

Might want to provide your own interpolation in the renderer for it.

 

The actual entity position would still be buggy though would it not?

Yeah, but for an arrow it does not matter much as long as it 'looks' decent, the server will handle where it actually hits and such.  Just use interpolation to try to be as accurate as possible while lacking priority data.

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.