How to increase or decrease a players speed

Started by CaiGuyCrafter on

Topic category: Help with modding (Java Edition)

Last seen on 13:26, 7. May 2024
Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to increase or decrease a players speed

So, I'm using DTM toolkit in my mod, and it works great for multiplying damage and defense and stuff like that, but it doesn't seem to have a speed editor... Meaning that I want to edit the player's speed on certain conditions. Say the player puts on a pair of boots, I want it to basically make the player slower without giving an effect. Then, when the player increases their speed stat to enough, the speed dampening will eventually go away. I hope I explained clearly. Is there a way to do this? Thanks!

Last seen on 23:12, 13. Aug 2023
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the only way i know how is…
Mon, 05/10/2021 - 19:36

the only way i know how is speed/slowness potions with no particles

Last seen on 13:26, 7. May 2024
Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks, but yeah, it's not…
Mon, 05/10/2021 - 21:00

Thanks, but yeah, it's not really what I'm looking for.

Last seen on 15:34, 21. Jun 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You need to change the…
Tue, 05/11/2021 - 00:34

You need to change the SharedMonsterAttributes.movementSpeed modifier and change it depending on the conditions. At the moment this is only possible by changing the code

Last seen on 13:26, 7. May 2024
Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh, thanks so much! Where…
Mon, 05/17/2021 - 15:04

Oh, thanks so much! Where can I find this in the code? Is there somewhere specific I have to go, or do I just add this in in a custom element?

Last seen on 13:26, 7. May 2024
Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Any information on where I…
Sun, 06/27/2021 - 20:52

Any information on where I can find or replicate SharedMonsterAttributes.movementSpeed?