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 have been experimenting with ways to slow players and entities down. I have found a tickspeed changer api that I have been using, and so far it has worked out well. However, when it comes to slowing down entities, I'm having trouble. The tickspeed changer can only change the server tickspeed. When it does this, it makes all of the entities on the server move slowly (animations, movement, updates, etc) and it creates a really good looking slow mo effect. However I only want certain entities to be slowed down, and the tickspeed changer doesn't do that. This meant I went to cancelling updates of certain entities. I only allowed entities to update every few ticks to slow them down. However, this doesn't create the nice slow mo effect that the tickspeed change had. It is all rubber band-y and jittery, and there is no interpolation between updates (well I didn't really expect to have interpolation when cancelling updates, but I want it because it looks great).

 

So, ultimately my question is, what is the best way to slow down an entity? Is there a way to change the tickspeed of certain entities that I'm overlooking? Or is there a way to make the update-cancelling look nice and have interpolation?

 

Thanks in advance.

Creator of the MyFit, MagiCraft, Tesseract gun, and Papa's Wingeria mod.

...give them a speed modifier attribute?

It's what the Speed/Slowness potions do (mechanically, they also do other things like particles).

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

  • Author

No I want them to actually update slowly, for example at 1/2 tick speed skeletons take 2x as long to shoot arrows, not just move slowly. And with the tick speed/ cancelling updates arrows will also slowdown mid air

Creator of the MyFit, MagiCraft, Tesseract gun, and Papa's Wingeria mod.

Subscribe to LivingUpdateEvent.Pre and cancel some.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

  • Author

How do I get the smooth interpolation instead of the jitteriness though?

Creator of the MyFit, MagiCraft, Tesseract gun, and Papa's Wingeria mod.

No idea.

You might be trying to do something that isn't really supported by the existing hooks.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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.