#Detect player is in a cave.
1 messages · Page 1 of 1 (latest)
use their y position value
You can be in a cave at y level 80
check the biome I guess?
I would use three heuristic methods combined:
- overhead block check
- y-level (increase weight as you go lower)
- some checks for "cave" blocks, BUT only above eye level, and ignore if it's just one or two sides!
you might have to use some other method, but that should give a pretty decent estimate