Skip to content
This repository has been archived by the owner on Apr 14, 2020. It is now read-only.

Zombie'ish entities glitching through walls on kill. #53

Closed
andrewkm opened this issue May 13, 2018 · 5 comments
Closed

Zombie'ish entities glitching through walls on kill. #53

andrewkm opened this issue May 13, 2018 · 5 comments
Assignees

Comments

@andrewkm
Copy link

Brief Description:
pig zombies, zombie villagers and regular zombies glitch through walls when killed while stacked

Instructions:
have a stack of the above mentioned and kill them close to a wall

How many times did you recreate this?:
at least 10 times

Result:
the amount of mobs die as defined in the stackmob plugin and sometimes the remaining stack glitches through a wall

Expected Result:
mobs to stay in place like any other mob does (this does infact not happen to any of the other mobs)

Evidence:
Before:
https://i.imgur.com/m1QDvFy.png
After:
https://i.imgur.com/CVAy7cx.png

@Nathat23 Nathat23 self-assigned this May 13, 2018
@Nathat23 Nathat23 added the bug label May 13, 2018
@Nathat23
Copy link
Owner

Nathat23 commented Jun 2, 2018

Not really sure why this would be happening, since there isn't any code that changes the placement of the entity, unless you're using an old version.

@andrewkm
Copy link
Author

andrewkm commented Jun 2, 2018

@Nathat23 we are using your very latest build. (Always with the very latest commit you push).

@JamieSinn
Copy link
Contributor

My theory on this is that the "safe spawn" mechanic for zombies are preventing them to be spawned in a wall, and overcorrecting into the next block over, or above.
Maybe getting the int value of the coord instead of the double would work better?

@Gluupor
Copy link
Contributor

Gluupor commented Jun 5, 2018

i would guess that @JamieSinn s theory is correct. so its like an inaccuracy or too much accuracy (double values used) that causes this issue.
also ive seen a "slight movement" parameter used in the code which appears to be adding 0.1 to one of the coordinates maybe that has an influence on it as well (im sorry if i mistake the reason for the adding, i just took glance at the code).
i also experienced that when you one hit kill a pig zombie from a stack (jump and hit it in your way down insta kills one/multiple mobs) they wont gain aggro on you and shouldnt start to move towards you (due to aggro) all of a sudden yet the entire stack is being "teleported" towards you usually.

i also experienced that with a different setup on the trap (slabs, iron bars basically less full blocks) it seems as if the glitching happens less often.
2018-06-05_17 48 01
this would actually fortify @JamieSinn s theory since half blocks or transparent blocks might be considered a "safe spawn"

@andrewkm
Copy link
Author

andrewkm commented Jun 7, 2018

Awesome, thanks for the information @Gluupor

Nathat23 added a commit that referenced this issue Jun 10, 2018
Changed exp calculation and added an option for exp scaling on multiply exp; fixed #53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants