Motion vector not working

Started by Xboy1 on

Topic category: Help with MCreator software

Last seen on 20:59, 7. Oct 2022
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Motion vector not working
Wed, 08/04/2021 - 09:40 (edited)

I'm making a rocket and so far everything worked fine, except one thing. It's supposed to fly up into the sky, but it doesn't. It was working until I changed the procedure without changing the motion vector block at all, so I have no idea why this is happening. The link below is an image of the procedure, I added the repeat block after finding out motion vector only changes the entity for 1 tick. Please tell me the problem if you know what it is.

EDIT: I changed the item used to spawn the rocket from a regular block to a command block and it worked. Doesn't make much sense but it works now so whatever

https://ibb.co/0nSLr2b

Edited by Xboy1 on Wed, 08/04/2021 - 09:40
Last seen on 06:33, 1. May 2023
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The wait 1 tick block will…
Wed, 08/11/2021 - 04:20

The wait 1 tick block will only schedule an event,and will not block the client for 1 tick.

The client scheduled 20 same events in the next tick.

Fix:

Add local variable "i"
Change loop to:

Set i to 0
Repeat 20 times:
    Increase i by 1
    Wait i ticks then on server-side do:
        attempt to override motion vector .......