knock player in opposite direction

Started by Bobking2010 on

Topic category: Help with modding (Java Edition)

Last seen on 14:49, 28. Apr 2024
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
knock player in opposite direction

I want the player to get knocked back, when using an item (simular to a powerful shotgun recoil, which is used in some games).

Help would be realy much appreciated 

Last seen on 23:39, 29. Apr 2024
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
on item use, you could add a…
Thu, 04/04/2024 - 23:54

on item use, you could add a override movement block which will launch the player in the opposite direction they are looking in the x and z coordinates slots they should also be multiplied by 0.1 or a number of your choice for the strength of the knockback.

Last seen on 14:49, 28. Apr 2024
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
But if the player stands…
Fri, 04/05/2024 - 08:44

But if the player stands still nothing happens

Last seen on 23:39, 29. Apr 2024
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The block works regardless…
Mon, 04/08/2024 - 21:06

The block works regardless of whether they move or not.