Started by
Dragoncheetah
on
Topic category: Advanced modding
Hello, I am working on a mod that has armor that allows you to fly, specificly the Chestplate, but I seem not to be able to make it so that you can fly and fall WITHOUT fall damage. Can anyone tellme what I have done wrong? I am afraid I will mess something up...
You have to edit the code or add custom code to it to enable it not to give you fall damage there are a few posts about, about it, I would give you the code but I on the hunt gain myself same problem with my slime boots.
I have found my old code what might help
entity.capabilities.allowFlying = true;
entity.capabilities.isFlying = true;
entity.fallDistance = 0.0F;
Thank you LureLusten! This will be so helpful in my mod.
Try adding resistance status effect when the chestplate is worn, for no fall damage
@#4 The code I have posted will stop fall damage full stop.
entity.fallDistance = 0.0F;