Compatibility
Minecraft: Java Edition
26.2
26.1
1.21.5–1.21.11
Platforms
Tags
Creators
Details
Licensed MPL-2.0
Published last year
Bookshelf is a library datapack for Minecraft. It's modular, so mapmakers can pick only the parts they need. This helps them create complex systems more easily.
🔦 Bookshelf Raycast Module
Cast rays in Minecraft datapacks to detect block and entity hits. Voxel-accurate collision detection with customizable callbacks.
"Reality only reveals itself when it is illuminated by a ray of poetry."
— Georges Braque
✨ Features
- 🎯 Precise detection: use voxel traversal algorithm for accurate collision detection
- 🔄 Multi-target support: detect collisions with both blocks and entities
- ⚡ Custom callbacks: execute commands at collision points
📖 About Bookshelf
This module is part of the Bookshelf Library:
🧩 Find more modules in the Bookshelf organization
📦 Get the full Bookshelf Suite
🤝 Get involved
💬 Join our Discord community
🛠 Contribute via the contribution guide


