I am trying to make something similar to negative knockback.

Started by BlueAwesomeDinosaur on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 weeks ago
Joined Aug 2017
Points:
947

User statistics:

  • Modifications: 1
  • Forum topics: 32
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 166
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?

Active 5 years ago
Joined May 2019
Points:
669

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
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 

Active 3 weeks ago
Joined Aug 2017
Points:
947

User statistics:

  • Modifications: 1
  • Forum topics: 32
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 166
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)
Active 8 months ago
Joined Apr 2020
Points:
702

User statistics:

  • Modifications: 0
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 56
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.

Active 3 weeks ago
Joined Aug 2017
Points:
947

User statistics:

  • Modifications: 1
  • Forum topics: 32
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 166
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.

Active 6 days ago
Joined Sep 2021
Points:
545

User statistics:

  • Modifications: 1
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 32
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