I am trying to make something similar to negative knockback.

Started by BlueAwesomeDinosaur on

Topic category: Help with modding (Java Edition)

Last seen on 21:55, 16. Oct 2022
Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I am trying to make something similar to negative knockback.

For a part of my mod, I was going to have a weapon that absorbs enemies. However, I found that it is not possible to make negative knockback (even if I code it in). Any suggestions on how to do this?

Last seen on 09:44, 16. Nov 2019
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
MAYBE you can do something…
Fri, 10/11/2019 - 16:46

MAYBE you can do something with a procedure on your weapon like when mob is hit by this tool move the provided entity 

Last seen on 21:55, 16. Oct 2022
Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I thought the same, but…
Sat, 10/12/2019 - 02:39

I thought the same, but there are some problems:

  • multiple players using the weapon
  • may teleport entities instead of pulling them
  • "moving" them would not be as smooth as knockback
  • teleporting them to you would cause it to be easier for them to attack you instead of the opposite (zombies and other mobs)
Last seen on 11:29, 16. Apr 2024
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello! Even though this is…
Fri, 07/17/2020 - 08:35

Hello! Even though this is an old thread, you could always change the movement vector of the mob when it's hit.

Last seen on 21:55, 16. Oct 2022
Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yeah, now since there are…
Wed, 07/22/2020 - 00:27

Yeah, now since there are source entity and target entity blocks I could do that.

Last seen on 23:16, 23. Apr 2024
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Salvador 666 i would like to…
Thu, 09/15/2022 - 07:56

Salvador 666 i would like to know procedure for the item in that video, thanks