Started by
PopcatCookie
on
Topic category: Help with Minecraft modding (Java Edition)
How exactly does the "attempt to override motion vector" procedure block work ? In some cases it works, in others it doesn't. I made a dash ability with a keybind and the procedure block works without any problem, but when I want to use it in a procedure executed when an entity spawns, it doesn't...
Are there any conditions for it to work ? Is that a client-side/server-side problem ? (I'm using 2023.2 and I can't upgrade to latest version because there is no 1.19.2 in 2024 version of MCreator.)
Edited by PopcatCookie on Thu, 08/14/2025 - 20:00
I think I figured it out: if it's an entity, it must be done on server-side. If it's a player, it must be done on client-side.
This block "attempts" to override, sometimes it may not be able to override
How do i make my code run server-side/client-side? i know the wait block makes it run server-side, but i have no idea how to make sure it runs client-side. my Attempt to override motion vector block runs for the user and entities, but not other players (as we've established). The block is not within a wait block (there are wait blocks in the procedure but nothing that could affect the override motion block, and it runs via a keybind press trigger. Other uses that use item right-click triggers also do not work, none of them do.
This seems like a big issue and I am very surprised it has not been fixed (or a proper solution has been found) as it affects most combat/pvp-related mods.
I'VE FOUND THE SOLUTION!
Use the Push [entity] with [dx] [dy] [dz] procedure block instead! It behaves basically identically and works way more consistently! At most you'll have to slightly tweak the values but it's almost the same. This has worked for me, hope it works for you too.