#Get falling distance of an anvil
1 messages Β· Page 1 of 1 (latest)
do you wanne get it when the fallingblock lands ?
Save the location when it starts to fall and get location where it lands
Then calculate height difference
Yes, it results 0.0
EntityChangeBlockEvent `?
Yep
i dont think it wont work....
Humβ¦ I remember each entity have an unique idea π€
It is possible to deflect the trajectory a falping block in vanilla ??
tested it ....
dont work π
getTicksLived and calculate from the ticks how long it was falling and with that the distance ^^
asserting just falling down
for what do you need this ^^ ?
it actually has a changing falldistance
but when the event gets called its too late
@chrome kiln The solution works !
Thanks you very much π
ahmmm you should use SHIFT+WIN+S to create screenshots and not use your handy π
Windows ?? Ahaha, what is that ?? ππ
your coding on a PI ???
Yes π
tested a little bit and seems like the entity gets set on the ground before event is called and thats why falldistance is also 0
I have trouble with my computer π
@chrome kiln Yes it is what I was thinking too
Thanks you very much for your support β€οΈπ
Get falling distance of an anvil
np ... looks like there cant be an fix for this since the move tick (which sets the falldistance to 0) is called and in the next tick the entity checks for collision ... but you can try to create an bug report
Also why are you manually obfuscating method and param names
That looks like a pain to work with
Good idea, I will try π
This is not voluntary
How so?
Screen + bad angle with my phone lens = bad light render
That doesn't change method names
I'm talking about the fact that you're naming stuff a, b and param names as var2 etc..
Makes it hard for yourself to read
Just because I am not creative Β―_(γ)_/Β―