recoil to items or ranged weapons

Started by Jromo2 on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined Oct 2018
Points:
712

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 14
recoil to items or ranged weapons
Fri, 01/29/2021 - 03:06 (edited)

How do you add recoil to ranged items when used? I just want the player to be sent in the opposite direction that he's facing. I made an item in my other mod that sends you in the direction the player is facing but I do not know how to make it in the opposite direction.

Edited by Jromo2 on Fri, 01/29/2021 - 03:06
Active 4 years ago
Joined Feb 2021
Points:
663

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 135
just do teleport x -3y z i…
Thu, 02/18/2021 - 19:12

just do teleport x -3y z i wish they had a move block or something :(

Active 2 years ago
Joined Oct 2018
Points:
712

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 14
But they have "set event…
Sun, 03/07/2021 - 05:45

But they have "set event/target entity movement vector to 'x' 'y' 'z'" which i think is what you're looking for..

Active 1 year ago
Joined Feb 2023
Points:
331

User statistics:

  • Modifications: 0
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 35
i will add the file of the…
Fri, 06/02/2023 - 12:04

i will add the file of the procedure i made just set the speed variable to negative

Knockback Download