adapted to mineflayer 0.0.18