Bookshelf Raycast

Bookshelf raycasting module for casting rays that react to block and entity collisions.

887

Quick challenge

How far can you run before the mobs catch you?

Bookshelf Raycast

<picture> <source media="(prefers-color-scheme: dark)" alt="Bookshelf" srcset="https://github.com/mcbookshelf/bookshelf/raw/master/docs/_imgs/banner-dark.png" width="600px"> Bookshelf </picture>
   

🔦 Bookshelf Raycast

Cast rays and detect collisions with blocks or entities.

> "Reality only reveals itself when it is illuminated by a ray of poetry." > — Georges Braque

✨ Features

- ⚡ Custom Callbacks: Use voxel traversal algorithm for accurate collision detection. - ⚡ Custom Callbacks: Detect collisions with both blocks and entities. - ⚡ Custom Callbacks: Execute commands at collision points and on targeted objects.

📚 Read the full documentation

📖 About Bookshelf

This module is part of the Bookshelf Library, a modular collection of Minecraft datapacks built to simplify complex systems and empower mapmakers.

🧩 Find more modules in the Bookshelf organization. 📦 Get the full suite Bookshelf Suite.

🤝 Get Involved

💬 Join our Discord community. 🛠 Contribute via the contribution guide.

ADS