Entities jump as far as needed to jump over a wall
Closed this issue ยท 30 comments
Spawned entities can not jump on 1 block high walls. Slabs and stairs are fine, but full blocks do not work at all.
That's a problem. The only time I have seen them be able to hop a 1 block was when a pig glitched 20 blocks into the air :)
Yep. Hitting them allows them to get up blocks too.
Changed title, we gotta fix this issue now :P
@Sandertv @Skull3x Comitted a change 27 minutes ago which seems to have fixed it. However it looks like the entities jumps higher than necessary. This isn't really a big problem though.
The original issue was that entities were unable to "jump on 1 block high walls" so I guess a wall with 1 block height is what we're talking about. Which seems to have been fixed by your commit @Skull3x
@tjespe Not necessarily, my commit implements jumps but for walls higher than the entity. It tends to do something known as wall walking, similar to the Vanilla Spider. Due to:
$this->motionY = 0.7;
I have not added anything to prevent that yet as of now
Yep. That's what we got left to do.
As of now, all entities jump right over fences which kind of ruins farming and stuff
@Skull3x we could fix this issue easily by checking if the entity is on the ground or not, or we could just not make the entity jump if the wall is higher than 1 block. Which one do you think is better?
Alright, let's go for the first one then :) Let's not forget to make it so spiders DO keep this capability of wall climbing.
I also think the 1st option is best becuase in "real minecraft" the animals will always try to jump over fences and stuff even though they can't.
One thing you should keep in mind (although it's not super important) is that spiders should be able to wall walking and climb even though they're not on the ground
Yes, I agree. I will attempt to help make this as similar to Vanilla as possible
At least the entities don't drown anymore, which is another issue
They don't? Do they stay on the surface now?
I'm sorry, they do drown some times. It depends on whether or not there are any solid blocks around them, so when they go in to a small water they survive but when they go out in the sea they wuickly go to the bottom, as they did before.
It's an improvement anyway though, considering that they used to always die when they go into water, but it's not fixed.
Oh of course! Sorry :P
Is this fixt?
No, I'll leave this up to @Skull3x
Bump @Skull3x, could you have a try to fix this?
If he hasn't, we can get it done tomorrow.
@kniffo80 Please you can fix that? Is very important feature.
Puh, I'm not that good in maths ๐ but i can give it a try. It's already on my list for the things next to be done.
This can be closed - as i think this is solved now in latest kniffo80-dev ...