Trouble with player delta movement after striking an enemy

Started by Miru on

Topic category: Help with modding (Java Edition)

Last seen on 11:13, 12. May 2024
Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Trouble with player delta movement after striking an enemy

Hello! I'm trying to create a weapon that when hitting a entity, the player bounces a couple blocks in the air. So I made a procedure that adds to entity's Y axis, set to go when a living entity is hit with tool. However this applies the bounce to the entity being hit, not the player. So I put it on when swung, and now I can fly. Any suggestions?

Last seen on 02:06, 17. May 2024
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
use source entity instead of…
Sat, 05/04/2024 - 22:10

use source entity instead of event/target entity in the on hit procedure.