Problem with motion vector

Started by Superwan on

Topic category: Help with MCreator software

Last seen on 09:15, 19. Jan 2021
Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Problem with motion vector

Hello everyone.

I did a potion that set the entity movement vector to vx : 0, vy : 1 and vz : 0 to make it jump (its an airborn potion). When the effect start, the procedure is triggered to do the airborn.
It works perfectly on everything except players. To verify my procedure, i ask MCreator to call this procedure when an entity walk on one of the block of my mod. And now... it works on entity AND players...

Can someone know why this procedure works for players when its called by "When entity walk on block" but not when its called by "When potion start/applied"
Thank you for your help :) !

 

Last seen on 11:57, 26. Apr 2024
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The only way I can think of…
Sun, 02/21/2021 - 09:27

The only way I can think of that fixes this is making the potion apply immediately, and instead of having it set the Y vector at the start of its effect, make it "while potion is active". Hope this helps.