"Push [] with dx: [] dy: [] dz: []" block not working on the player.

Started by sunlitHorizon on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
"Push [] with dx: [] dy: [] dz: []" block not working on the player.

Hello everyone!
I'm pretty new to minecraft modding.
I have this pretty peculiar issue, where the block described in the title does not work on the player, for some strange reason!
I've tried to make the block push a diffirent entity [Event/target entity]... And it worked!
It does not work with [Entity Iterator] OR [Get nearest entity at x: [] y: [] z: [] in square cube of size [] of type []].
Does anyone perhaps know why this may be happening?
Oh, if this could be affecting something, i'm doing it in a separate procedure, that i activate when conditions are met, if that makes any diffirence.
I've appended an image of the faulty code. https://media.discordapp.net/attachments/1319731696735883287/1327709869733711892/image.png?ex=67840dac&is=6782bc2c&hm=7e4e5d35efa54226b771ade6f353bf17cece214d7864a84620094e2bb7f0ec6c&=
Everything besides the push block works.

Thank you for reading this,
sunlitHorizon

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh! I'm on 1.20.1, if anyone…
Sat, 01/11/2025 - 18:46

Oh! I'm on 1.20.1, if anyone wants to know.

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
   I've had the same problem…
Thu, 08/28/2025 - 18:41

   I've had the same problem with a few caveats. If the player is wearing an elytra they may take damage (and usually very much die) from kinetic energy. The other main caveat is that the player WILL be pushed correctly when taking damage. whether its fall damage, an arrow, or being directly hit, the player always gets pushed with the correct amount of force, however that force often starts a chain reaction of being flung into the air, falling and taking damage, and being flung again.. 

   If anyone knows any workarounds with pushing players, I would be grateful for the lesson. Currently "Push [] with dx:[] dy:[] dz:[]" and "Attempt to override motion vector of [] to vx:[] vy:[] vz:[]" Have the same issues listed, ie. neither of them work.