How to make the player not take fall damage when riding entity?

Started by lucas_pelucas on

Topic category: Help with MCreator software

Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make the player not take fall damage when riding entity?
Sat, 03/25/2023 - 21:02 (edited)

Hello, im working on my mod, and the player takes inmense fall damage when landing the plane, are there any solutions?

Edited by lucas_pelucas on Sat, 03/25/2023 - 21:02
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There should be an 'override…
Sun, 03/26/2023 - 18:25

There should be an 'override fall distance' procedure block; you should be able to just make a procedure that triggers on playertick, checks if the player is riding your custom entity, and, if so, resets their fall damage. By default, fall damage adds up whenever the player falls downwards, and only resets upon landing, which is probably responsible for the ridiculious amount of damage.