This fall damage prevention procedure crashes the game for some reason (2023.4)

Started by Lcs128X on

Topic category: Help with modding (Java Edition)

Last seen on 00:22, 23. Jul 2024
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This fall damage prevention procedure crashes the game for some reason (2023.4)

It is supposed to prevent fall damage when riding a certain vehicle but it just crashes the game when loading a world

Last seen on 13:43, 23. Jul 2024
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It's probably due to the…
Tue, 07/09/2024 - 15:36

It's probably due to the null(get entity [] is riding) block you are using.

If you put the whole thing in an if block that checks if the event/target entity is riding something, it should stop crashing.

Last seen on 00:22, 23. Jul 2024
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ok so now it does not crash…
Tue, 07/09/2024 - 16:29

ok so now it does not crash the game but it still does not work

Last seen on 13:43, 23. Jul 2024
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Alright, I wondered if that…
Tue, 07/09/2024 - 16:37

Alright, I wondered if that might happen. You just need to change the global trigger to loaded entity tick update, or player tick update, depending on the scope of what can ride your certain vehicles. I'm pretty sure that the entity falls trigger only runs when you hit the ground and your fall distance is already determined, so that's why the change in global trigger.

Last seen on 00:22, 23. Jul 2024
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I fixed it in a different…
Tue, 07/09/2024 - 17:03

I fixed it in a different way I just made it so all damage gets disabled when riding the car I am pretty sure the damage was not recognized as fall damage for some reason at least I think so

Last seen on 00:22, 23. Jul 2024
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ok so this "solution" of…
Tue, 07/09/2024 - 19:36

ok so this "solution" of mine just causes more problems lol because it makes it so you can get damaged in creative etc.

Last seen on 00:22, 23. Jul 2024
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So back to coding I guess
Tue, 07/09/2024 - 19:36

So back to coding I guess

Last seen on 00:22, 23. Jul 2024
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So I did what you said but…
Tue, 07/09/2024 - 19:40

So I did what you said but it is still not working

Last seen on 00:22, 23. Jul 2024
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ok so I tried it with just…
Tue, 07/09/2024 - 19:43

ok so I tried it with just the override fall damage block and nothing else so on player tick override fall damage and not even that is working so it is the override fall damage block that is not working

Last seen on 00:22, 23. Jul 2024
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Found the solution on a…
Tue, 07/09/2024 - 19:53

Found the solution on a different forum topic:

Last seen on 13:43, 23. Jul 2024
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm glad you got it working…
Tue, 07/09/2024 - 20:18

I'm glad you got it working in the end

Last seen on 00:22, 23. Jul 2024
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you for the help! 
Tue, 07/09/2024 - 21:34

Thank you for the help!