Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.0] Knockback calculation and entity damaging generally is broken #14

Open
KCodeYT opened this issue Feb 11, 2020 · 2 comments
Open

Comments

@KCodeYT
Copy link
Contributor

KCodeYT commented Feb 11, 2020

Entity knockback:
Player1 hits Player2 and Player2 is getting knockback in the same direction everytime even the Player1 isnt looking in the direction.

Entity Damaging:
You cant damage entitys (not players) if you are standing 2 blocks or more away from them


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@joserobjr
Copy link
Contributor

Additionally, you might get invulnerable to all damages when you are standing on a slime block, i think the if slime check should be inside the if damage cause is fall, I was going to test it yesterday but I ran out of time.

https://github.com/NukkitX/Nukkit/blob/abd10c1c7ce8a4cbdb5e0c6bef0813f7248956e0/src/main/java/cn/nukkit/player/Player.java#L3631-L3639

@joserobjr
Copy link
Contributor

Entity Damaging:
You cant damage entitys (not players) if you are standing 2 blocks or more away from them

I think I found the issue:
image
(That was only a spare click, I guess attackTime isn't updating due to the entity not ticking)

@GingerGeek GingerGeek transferred this issue from CloudburstMC/Nukkit Jul 3, 2020
Kazzuk pushed a commit that referenced this issue May 28, 2023
BlockCategory for ground blocks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants