Motion vector randomly not working

Started by mobcrafter731 on

Topic category: Help with modding (Java Edition)

Last seen on 17:02, 3. Dec 2022
Joined Jul 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Motion vector randomly not working

I have been using the "Attempt to override motion vector of..." procedure block, and it has been working fine for the most part.
However, randomly, without making any changes to that part of the code, it stops working.
If I run something even as simple as setting the velocity to 0, 2, 0, it refuses to work.
And then randomly later, the code works again, with no explanation.
What is happening?!

Last seen on 17:02, 3. Dec 2022
Joined Jul 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Update: I may have found the…
Sun, 08/15/2021 - 14:42

Update: I may have found the issue. The motion vector specifically doesn't work once I put it after an if statement checking if a player has a global variable. However, any other code runs fine.
(image of the code I used)
For example, if I use this code above, and set the player's test variable to aaa, the message is sent in chat, but the motion vector isn't applied to the player. However, if I remove all of this except for the "override motion vector" block, it works fine.
Does anyone know why this happens, or how to get around it?

Last seen on 18:58, 25. Jun 2023
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i am having the same issue,…
Fri, 06/16/2023 - 20:03

i am having the same issue,

hope someone replies