Height of fall

Started by sergeylyan on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Height of fall

How do I change the height of the fall? So that when I jump high there is no damage. But if I fall from a greater height, I will receive damage.

Joined Mar 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i didn't test this myself,…
Wed, 03/05/2025 - 21:28

i didn't test this myself, but i think it should work:

all you need is to make a global procedure with trigger "Entity Falls", make a new local variable and get the "distance" dependency from the global trigger

Joined Mar 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i just noticed, inside the …
Thu, 03/06/2025 - 01:18

i just noticed, inside the "if then else" block you should change "distance > maxfalldistance" with "distance < maxfalldistance"

Joined Mar 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
its not working. maybe…
Thu, 03/06/2025 - 11:55

its not working. maybe because the distance is determined after landing, or maybe because this condition works when falling only one tick of the player

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
its an attribute. If you…
Thu, 03/06/2025 - 15:01

its an attribute. If you search "attribute" in the search bar in the blockly procedure editor, 
you'll find the "set base attributes" (name is smth along those lines) block. 

select the one for fall damage
set it to a value higher than 4 i believe(cause ig 4 is the default fall height for fall-damage).
 

Joined Mar 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
"Override fall distance"…
Fri, 03/07/2025 - 03:29

"Override fall distance" this is the only procedure that is responsible for this, but for some reason changing it does not affect anything. The only thing is that if you assign it a value of 0, then damage from any height will disappear. I just don't understand how to use this procedure and under what conditions.

 

I don't want to completely disable fall damage. In my mod, the character's jump height increases with level.