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

Started by Lcs128X on

Topic category: Help with Minecraft modding (Java Edition)

Active 13 hours ago
Joined Dec 2021
Points:
662

User statistics:

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

Active 6 hours ago
Joined Apr 2023
Points:
692

User statistics:

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

Active 13 hours ago
Joined Dec 2021
Points:
662

User statistics:

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

Active 6 hours ago
Joined Apr 2023
Points:
692

User statistics:

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

Active 13 hours ago
Joined Dec 2021
Points:
662

User statistics:

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

Active 13 hours ago
Joined Dec 2021
Points:
662

User statistics:

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

Active 13 hours ago
Joined Dec 2021
Points:
662

User statistics:

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

So back to coding I guess

Active 13 hours ago
Joined Dec 2021
Points:
662

User statistics:

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

Active 13 hours ago
Joined Dec 2021
Points:
662

User statistics:

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

Active 13 hours ago
Joined Dec 2021
Points:
662

User statistics:

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

Found the solution on a different forum topic:

Active 6 hours ago
Joined Apr 2023
Points:
692

User statistics:

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

I'm glad you got it working in the end

Active 13 hours ago
Joined Dec 2021
Points:
662

User statistics:

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

Thank you for the help!