Started by
Lcs128X
on
Topic category: Help with Minecraft modding (Java Edition)
It is supposed to prevent fall damage when riding a certain vehicle but it just crashes the game when loading a world
Topic category: Help with Minecraft modding (Java Edition)
It is supposed to prevent fall damage when riding a certain vehicle but it just crashes the game when loading a world
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.
ok so now it does not crash the game but it still does not work
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.
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
ok so this "solution" of mine just causes more problems lol because it makes it so you can get damaged in creative etc.
So back to coding I guess
So I did what you said but it is still not working
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
Found the solution on a different forum topic:
I'm glad you got it working in the end
Thank you for the help!