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

Skull Pikes don't work if there is a block directly above it #4845

Closed
Frosticle opened this issue Jul 1, 2024 · 2 comments
Closed

Skull Pikes don't work if there is a block directly above it #4845

Frosticle opened this issue Jul 1, 2024 · 2 comments

Comments

@Frosticle
Copy link

What the title says, the skull pike doesn't work if a block is directly above the skull, and resumes function as soon as I break the block. It works fine if you leave a gap between the skull and the block.

I'm using Quark 4.0-458 & Zeta 1.0-19.

@Frosticle
Copy link
Author

Upper half slabs don't cause this issue.

@quat1024
Copy link
Collaborator

Good catch. Mobs only run from the skull pike if they can "see" it, but ever since they were added in c025223 the calculation is done from the mob's eye position to one full block above the bottom of the pike entity.

Vec3 vector3d = new Vec3(getX(), getY() + 1, getZ());

So when there's a block on top, that point ends up inside a block, and mobs can't see it.

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