I'm confused from different title and the message. Maybe this would help. PHP: Player->setImmobile(true); Btw you need at least direction to check block at player's right side.