hello I am making a autominer plugin I have made all my generators, what would be the best way to detect a block under a block eg generator block onto and a gen on the bottom?
Well, first of all, you didn't need to bump a thread that was made today! Anywho, a simple math calculation using the original block's coordinate will solve your question. i.e.: PHP: Block->getX()Block->getY()Block->getZ()Level->getBlock()->(new Vector3(x, y - 0.5, z)); Refrences: https://github.com/pmmp/PocketMine-...eb24e670/src/pocketmine/level/Level.php#L1426 https://github.com/pmmp/Math/blob/stable/src/Vector3.php