Uploaded August 2021 | Updated November 2026, 3 hours ago
Melee Tin on top
Discord: discord.gg/FMqnBQ5j6C
Patreon: patreon.com/0x26e
Github: github.com/0x26e
Melee Tin on top
Discord: discord.gg/FMqnBQ5j6C
Patreon: patreon.com/0x26e
Github: github.com/0x26e

![Raycasting with Minecraft Bots using Mineflayer in Python [10]
In this video we cover how to implement more advanced head movements (looking at players, coords, and in any direction) and basic raycasting for Minecraft bots using Mineflayer in Python.
My Code:
https://github.com/0x26e/MineflayerPython/blob/main/scripts/11-raycast-bot.py
References:
bot.look(): https://github.com/PrismarineJS/mineflayer/blob/master/docs/api.md#botlookyaw-pitch-force
bot.blockAtCursor(): https://github.com/PrismarineJS/mineflayer/blob/master/docs/api.md#botblockatcursormaxdistance256
My Discord: https://discord.com/invite/FMqnBQ5j6C
Mineflayer Discord: https://discord.com/invite/PXbmVHkKXh
This video is an intermediate tutorial part of my Mineflayer in Python tutorial series. You can find the full playlist here: https://www.youtube.com/playlist?list=PL8Uh 5X0ZE5t_yy29GFsX5U1bFyX7oUB
Timestamps:
0:00 Intro
0:30 Code
2:16 Demonstration Raycasting with Minecraft Bots using Mineflayer in Python [10]](https://i.ytimg.com/vi/ps7B7zPIpQE/mqdefault.jpg)








