Quark Oddities

Quark Oddities

22M Downloads

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

Frosticle opened this issue ยท 2 comments

commented

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.

commented

Upper half slabs don't cause this issue.

commented

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.